コード例 #1
0
        public static TableAction Allocate()
        {
            TableAction node = new TableAction();

            m_TableModule = new TableModule();
            m_TableModule.Init();
            return(node);
        }
コード例 #2
0
        public override void OnSingletonInit()
        {
            //需轮询module
            GetModule <ProcedureManager>();
            GetModule <InputModule>();

            //不需轮询,module
            SequenceNode sequenceNode = new SequenceNode();

            sequenceNode.Append(DataAnalysisAction.Allocate());
            sequenceNode.Append(EventAction.Allocate(() => { NetworkModule.S.Init(); }));
            sequenceNode.Append(TableAction.Allocate());
            sequenceNode.Append(EventAction.Allocate(() => { GamePersistentData.S.HandleTDData(); }));
            sequenceNode.Append(EventAction.Allocate(() => { GameDataMgr.S.Init(); }));
            sequenceNode.Append(EventAction.Allocate(() =>
            {
                GuideModule guideModule = new GuideModule();
                guideModule.OnInit();
            }));
            sequenceNode.OnEndedCallback += () => { GetModule <ProcedureManager>().StartProcedure <GamingProcedure>(); };
            ApplicationMgr.S.ExecuteNode(sequenceNode);
        }