Exemplo n.º 1
0
        //---------------------------------------------------------------------
        public void create(CLogicScene scene, BaseFishLordMgr base_fish_lord_mgr)
        {
            mScene = scene;
            mBaseFishLordMgr = base_fish_lord_mgr;

            mFishGroupRouteAlloter = new FishGroupRouteAlloter();
            mFishRouteMap = new FishRouteMap();
            Dictionary<int, EbData> mapData = EbDataMgr.Instance.getMapData<TbDataRoute>();
            foreach (var it in mapData)
            {
                if (TbDataRoute.DataState.ACTIVE == ((TbDataRoute)it.Value).State)
                {
                    mListRoute.Add(it.Key);
                }
            }

            mFormationNameList = mBaseFishLordMgr.getPrototypeNameList();
            mFormationNameList.Remove(mNormalFishParticleFileName);
            mFormationNameList.Remove(mRedFishParticleFileName);

            mOutFishState = OutFishState.Normal;
        }
Exemplo n.º 2
0
        //---------------------------------------------------------------------
        public void create(CLogicScene scene, BaseFishLordMgr base_fish_lord_mgr)
        {
            mScene           = scene;
            mBaseFishLordMgr = base_fish_lord_mgr;

            mFishGroupRouteAlloter = new FishGroupRouteAlloter();
            mFishRouteMap          = new FishRouteMap();
            Dictionary <int, EbData> mapData = EbDataMgr.Instance.getMapData <TbDataRoute>();

            foreach (var it in mapData)
            {
                if (TbDataRoute.DataState.ACTIVE == ((TbDataRoute)it.Value).State)
                {
                    mListRoute.Add(it.Key);
                }
            }

            mFormationNameList = mBaseFishLordMgr.getPrototypeNameList();
            mFormationNameList.Remove(mNormalFishParticleFileName);
            mFormationNameList.Remove(mRedFishParticleFileName);

            mOutFishState = OutFishState.Normal;
        }