Exemplo n.º 1
0
        static void InitEntityManager()
        {
            // DataService
            IDS_MonsterMap    mapDs     = new DS_MonsterMapImpl();
            IDS_Character     charDs    = new DS_CharacterImpl();
            IDS_Monster       monsterDs = new DS_MonsterImpl();
            IDS_Status        statusDs  = new DS_StatusImpl();
            IDS_Skill         skillDs   = new DS_SkillImpl();
            IDS_Mall          mallDs    = new DS_MallImpl();
            IDS_Item          itemDs    = new DS_ItemImpl();
            IDS_GroundItemMap gndItemDs = new DS_GroundItemMapImpl();
            IDS_Mission       misDs     = new DS_MissionImpl();
            // DataEntity
            DEM_Character charDem     = new DEM_Character(charDs);
            DEM_Status    statusDem   = new DEM_Status(statusDs);
            DEM_Skill     skillDem    = new DEM_Skill(skillDs);
            DEM_MallItem  mallItemDem = new DEM_MallItem(mallDs);
            DEM_Mission   misDem      = new DEM_Mission(misDs);
            DEM_Monster   monDem      = new DEM_Monster(monsterDs, mapDs);
            DEM_Item      itemDem     = new DEM_Item(itemDs, gndItemDs);
            // DynamicDataService
            var                     ddsImpl        = new DynamicDataServiceImpl();
            IDDS_User               userDds        = ddsImpl;
            IDDS_Character          charDds        = ddsImpl;
            IDDS_CharacterAttribute charAttrDds    = ddsImpl;
            IDDS_CharacterWallet    charWalletDds  = ddsImpl;
            IDDS_CharacterVipCard   charVipCardDds = ddsImpl;
            IDDS_Item               itemDds        = ddsImpl;
            IDDS_Skill              skillDds       = ddsImpl;
            IDDS_Mission            misDds         = ddsImpl;
            IDDS_MissionLog         misLogDds      = ddsImpl;
            IDDS_CombatEfct         combatEfctDds  = ddsImpl;
            IDDS_Mail               mailDds        = ddsImpl;
            IDDS_Notice             noticeDds      = ddsImpl;
            IDDS_Title              titleDds       = ddsImpl;
            IDDS_Shortcut           shortcutDds    = ddsImpl;

            // EntityManager
            EM_BossDamage.s_instance   = new EM_BossDamage();
            EM_Camp.s_instance         = new EM_Camp();
            EM_Character.s_instance    = new EM_Character(charDem, charDds, charAttrDds);
            EM_Item.s_instance         = new EM_Item(itemDem, itemDds);
            EM_Mail.s_instance         = new EM_Mail(mailDds);
            EM_MallItem.s_instance     = new EM_MallItem(mallItemDem);
            EM_Mission.s_instance      = new EM_Mission(misDem, misDds, titleDds);
            EM_MissionLog.s_instance   = new EM_MissionLog(misLogDds);
            EM_Monster.s_instance      = new EM_Monster(monDem);
            EM_MonsterSkill.s_instance = new EM_MonsterSkill();
            EM_Notice.s_instance       = new EM_Notice(noticeDds);
            EM_Rank.s_instance         = new EM_Rank(combatEfctDds);
            EM_Shortcut.s_instance     = new EM_Shortcut(shortcutDds);
            EM_Sight.s_instance        = new EM_Sight();
            EM_Skill.s_instance        = new EM_Skill(skillDem, skillDds);
            EM_Status.s_instance       = new EM_Status(statusDem);
            EM_User.s_instance         = new EM_User(userDds);
            EM_Wallet.s_instance       = new EM_Wallet(charWalletDds, charVipCardDds);
            // EM init
            EntityManagerInitializer.Init(skillDem, monDem);
        }
Exemplo n.º 2
0
 public EM_Rank(IDDS_CombatEfct dds)
 {
     m_dds = dds;
     LoadAllCharacter();
 }