// Use this for initialization void Start() { InitClientApp(); CProtoManager dataplat = new CProtoManager(); dataplat.LoadXMLS(); ///----------------------------------------------------------------- ///数据初始化 CScriptLuaMgr scripmgr = new CScriptLuaMgr(); scripmgr.InitLuaMgr(); //------------------------------------------------------------------ // UI 系统的初始化操作 GameUIManager PanelMgr = LuaFramework.LuaHelper.GetPanelManager(); PanelMgr.InitFrames(); CQuestMgr questMgr = new CQuestMgr(); questMgr.InitQuest(); CItemMgr itemgr = new CItemMgr(); itemgr.InitIteMgr(); CFightTeamMgr.Instance.Initlize(); ///----------------------------------------------------------------- }
public CProtoManager() { inst = this; m_mapHero = new Dictionary <uint, tagHeroProto>(); m_mapSkill = new Dictionary <uint, tagSkillProto>(); m_mapItem = new Dictionary <uint, tagItemProto>(); m_mapEquip = new Dictionary <uint, tagEquipProto>(); m_mapEntity = new Dictionary <uint, tagEntityProto>(); m_mapNPCPos = new Dictionary <uint, tagNpcMapPos> (); m_mapChapter = new Dictionary <int, tagChapterProto>(); m_mapInstance = new Dictionary <int, tagInstanceProto>(); m_mapChaID2map = new Dictionary <int, List <tagInstanceProto> >(); m_mapLevelExp = new List <tagLevelUpEffect> (); m_mapTeamUpExp = new List <tagTeamLevelEffect> (); }