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); }
public Data(Row row, DataTable dataTable) { Row = row; DataTable = dataTable; _id = GlobalId.CreateGlobalId(dataTable.GetIndex() + 1, dataTable.Count()); }