示例#1
0
 private int GenerateGameObjectGlobalId(Game_Object go)
 {
     var index = GameObjectsIndex[go.ClassId];
     GameObjectsIndex[go.ClassId]++;
     return go.Builder
         ? GlobalId.CreateGlobalId(go.ClassId + 493, index)
         : GlobalId.CreateGlobalId(go.ClassId + 500, index);
 }
示例#2
0
 public Data(Row row, DataTable dataTable)
 {
     Row       = row;
     DataTable = dataTable;
     _id       = GlobalId.CreateGlobalId(dataTable.GetIndex() + 1, dataTable.Count());
 }