public override void Init() { systemOperation = new Operation(); systemOperation.Init(); systemOperation.SetName("System"); functionSystemOperationDict = new Dictionary <ECSDefine.SystemFunctionType, PollingOperation>(); entityRegFunctionSystemDict = new Dictionary <int, Dictionary <ECSDefine.SystemType, BaseSystem> >(); systemComponentInfoOperation = new Operation(); systemComponentInfoOperation.Init(); systemComponentInfoOperation.SetName("SystemComponentInfo"); synchroValueRspSystemIdDistributionChunk = new IdDistributionChunk(); synchroValueRspSystemIdDistributionChunk.Init(); synchroValueRspSystemOperation = new Operation(); synchroValueRspSystemOperation.Init(); synchroValueRspSystemOperation.SetName("SynchroValueRspSystem"); InitSystemComponentInfoIdDistributionChunk(); InitSystemIdDistributionChunk(); ECSUnit = GlobalUnion.GetUnit <ECSUnit>(); }
public override void Init() { synchronizationExecutor = new SynchronizationExecutor(); synchronizationExecutor.Init(); sendIdDistributionChunk = new IdDistributionChunk(); sendIdDistributionChunk.Init(); sendIdDistributionChunk.SetInterval(2); sendSynchroValueRepList = new List <SynchroValueRep>(); receiveSynchroValueRsp = new List <SynchroValueRsp>(); executeSystemUnit = GlobalUnion.GetUnit <ExecuteSystemUnit>(); }
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); }
public override void Init() { SynchroValueRepOperation = new Operation(); SynchroValueRepOperation.Init(); SynchroValueRepOperation.SetName("SynchroValueRep"); SynchroValueRspOperation = new Operation(); SynchroValueRspOperation.Init(); SynchroValueRspOperation.SetName("SynchroValueRsp"); synchroValueIdDistributionChunk = new IdDistributionChunk(); synchroValueIdDistributionChunk.Init(); synchroValueIdDistributionChunk.SetInterval(2); InitSystemFunctionTypePriority(); InitFunction2SystemTypeDict(); executeSystemUnit = GlobalUnion.GetUnit <ExecuteSystemUnit>(); commandUnit = GlobalUnion.GetUnit <CommandUnit>(); }
private void InitGlobalIdDistributionChunk() { idDistributionChunk = new IdDistributionChunk(); idDistributionChunk.Init(); }
private void InitGlobalIdDistributionChunk() { idDistributionChunk = new IdDistributionChunk(); idDistributionChunk.Init(); idDistributionChunk.SetFirstId((int)GlobalDefine.UnitType.Unit); }
private void InitSystemComponentInfoIdDistributionChunk() { systemComponentInfoIdDistributionChunk = new IdDistributionChunk(); systemComponentInfoIdDistributionChunk.Init(); }
private void InitSystemIdDistributionChunk() { systemIdDistributionChunk = new IdDistributionChunk(); systemIdDistributionChunk.Init(); systemIdDistributionChunk.SetFirstId((int)ECSDefine.SystemType.Base); }