Esempio n. 1
0
    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>();
    }
Esempio n. 3
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);
    }
Esempio n. 4
0
    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>();
    }
Esempio n. 5
0
 private void InitGlobalIdDistributionChunk()
 {
     idDistributionChunk = new IdDistributionChunk();
     idDistributionChunk.Init();
 }
Esempio n. 6
0
 private void InitGlobalIdDistributionChunk()
 {
     idDistributionChunk = new IdDistributionChunk();
     idDistributionChunk.Init();
     idDistributionChunk.SetFirstId((int)GlobalDefine.UnitType.Unit);
 }
Esempio n. 7
0
 private void InitSystemComponentInfoIdDistributionChunk()
 {
     systemComponentInfoIdDistributionChunk = new IdDistributionChunk();
     systemComponentInfoIdDistributionChunk.Init();
 }
Esempio n. 8
0
 private void InitSystemIdDistributionChunk()
 {
     systemIdDistributionChunk = new IdDistributionChunk();
     systemIdDistributionChunk.Init();
     systemIdDistributionChunk.SetFirstId((int)ECSDefine.SystemType.Base);
 }