Exploration game engine design model driven architecture (b) to start modeling

First, the basic elements that make up the game world of modeling, as shown below:

The first phase, because the object-run construction management approach, my idea is:

1. Data: the search for uniform data standards, using the model of anemia way (to internal objects not give these objects behavior) of the basic structure of the object.

2. Relationship: In order to achieve a unified data relationships, scene "Scene" in the "Spirits"

Dictionary<string, string> 而非采用 Dictionary<string, Spirits>
 public Dictionary<string, string> Spirits { get; set; }

 The expression "relationship" this does not only have a "dependent" of ways.

Summary: While the idea of ​​a complete departure from the behavior of object-oriented design, but the essence is still "Object-oriented design," The difference is that, in order to build a more macro automation implementation of the program, this will have to "contribute to the study of human language." shifted to the machine.

Model Code:

 

Guess you like

Origin www.cnblogs.com/labixiaohei/p/11078322.html