Exemple #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()
    {
        InitSystemFunctionTypePriority();
        InitFunction2SystemTypeDict();

        executeSystemUnit = GlobalUnion.GetUnit <ExecuteSystemUnit>();
        commandUnit       = GlobalUnion.GetUnit <CommandUnit>();
    }
Exemple #3
0
    public override void Init()
    {
        systemTypeCommandListDict = new Dictionary <ECSDefine.SystemType, List <BaseCommand> >();
        sendCommandList           = new List <BaseCommand>();
        cacheCommandList          = new List <BaseCommand>();

        InitOperation();
        InitGlobalIdDistributionChunk();

        ExecuteSystemUnit = GlobalUnion.GetUnit <ExecuteSystemUnit>();
    }
Exemple #4
0
    public GlobalUnion CreateGlobalUnion()
    {
        int             globalId        = idDistributionChunk.Pop();
        OperationObject operationObject = globalUnionPollingOperation.AddOperationObject(globalId, (int)GlobalDefine.GlobalUnionType.Global);

        if (operationObject != null)
        {
            GlobalUnion globalUnion = operationObject as GlobalUnion;
            InitGlobalUnion(globalUnion, globalId);

            globalUnionDict.Add(globalId, globalUnion);
            return(globalUnion);
        }
        return(null);
    }
    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>();
    }
Exemple #6
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>();
    }
 public void SetGlobalUnion(GlobalUnion globalUnion)
 {
     this.globalUnion = globalUnion;
 }
Exemple #8
0
 public virtual void FillInSystemExpandData(GlobalUnion globalUnion)
 {
 }
Exemple #9
0
 private void InitGlobalUnion(GlobalUnion globalUnion, int globalId)
 {
     globalUnion.SetGlobalUnionId(globalId);
 }