Example #1
0
    public override void Init()
    {
        entityOperation = new Operation();
        entityOperation.Init();
        entityOperation.SetName("Entity");

        componentOperation = new Operation();
        componentOperation.Init();
        componentOperation.SetName("Component");

        copyComponentIdDistributionChunk = new IdDistributionChunk();
        copyComponentIdDistributionChunk.Init();
        copyComponentIdDistributionChunk.SetFirstId(-1);
        copyComponentIdDistributionChunk.SetInterval(-1);
    }
Example #2
0
 private void InitGlobalIdDistributionChunk()
 {
     idDistributionChunk = new IdDistributionChunk();
     idDistributionChunk.Init();
     idDistributionChunk.SetFirstId((int)GlobalDefine.UnitType.Unit);
 }
Example #3
0
 private void InitSystemIdDistributionChunk()
 {
     systemIdDistributionChunk = new IdDistributionChunk();
     systemIdDistributionChunk.Init();
     systemIdDistributionChunk.SetFirstId((int)ECSDefine.SystemType.Base);
 }