示例#1
0
        public EntityManager()
        {
            uiCollection  = new Dictionary <int, MonoBehaviorEx>();
            ctlCollection = new Dictionary <int, ControllerEx>();

            TypeIDRelation = new Dictionary <LogicalType, int>();

            binder = ImplicitBinder.Instance;
        }
示例#2
0
        private DeviceFSM()
        {
            Owner = new List <IDeviceState>();

            mPreState = DeviceState.None;
            mNowState = DeviceState.None;

            rtPlatform = Application.platform;
            binder     = ImplicitBinder.Instance;
        }
示例#3
0
        private GamePlayFSM()
        {
            Owner = new List <IGameState>();

            mPreState = GameState.None;
            mNowState = GameState.None;
            initOK    = Consts.FAILURE;
            curScene  = SceneName.SplashScene;
            binder    = ImplicitBinder.Instance;
        }
示例#4
0
        public DataCore()
        {
            binder    = ImplicitBinder.Instance;
            modelNet  = new Dictionary <Type, IModelNetwork>();
            modelCfg  = new Dictionary <Type, ModelBase>();
            modelBoth = new Dictionary <Type, ModelBase>();

            InitNetLayer();
            InitConfigLayer();
            InitBothLayer();
        }
示例#5
0
        public Loader()
        {
            binder  = ImplicitBinder.Instance;
            Loaders = new Dictionary <Type, ILoaderDispose>();

            List <Type> allLoader = binder.ILoader;
            int         count     = allLoader.Count;

            if (count > 0)
            {
                for (int i = 0; i < count; ++i)
                {
                    Loaders.Add(allLoader[i], Activator.CreateInstance(allLoader[i]) as ILoaderDispose);
                }
            }
        }