public void CleanUp( ) { m_nIsPresent = -1; m_GUID.Reset(); m_idServer = MacroDefine.UINT_MAX; m_nDataID = MacroDefine.INVALID_ID; m_nAIType = -1; m_szName = ""; m_nLevel = -1; m_nExp = -1; m_nHP = -1; m_nHPMax = -1; m_nAge = -1; m_nEraCount = -1; m_nHappiness = -1; m_SpouseGUID.Reset(); m_nModelID = MacroDefine.INVALID_ID; m_nMountID = MacroDefine.INVALID_ID; m_nAttPhysics = -1; m_nAttMagic = -1; m_nDefPhysics = -1; m_nDefMagic = -1; m_nHit = -1; m_nMiss = -1; m_nCritical = -1; m_nAttrStrApt = -1; m_nAttrConApt = -1; m_nAttrDexApt = -1; m_nAttrSprApt = -1; m_nAttrIntApt = -1; m_nAttrStr = -1; m_nAttrCon = -1; m_nAttrDex = -1; m_nAttrSpr = -1; m_nAttrInt = -1; m_nBasic = -1; m_nPot = -1; m_nDefCritical = -1; m_nAttrStrBring = -1; m_nAttrConBring = -1; m_nAttrDexBring = -1; m_nAttrIntBring = -1; CObjectManager.Instance.DestroyObject(m_FakeObj); m_FakeObj = null; for (int i = 0; i < (int)m_aSkill.Count; i++) { if (m_aSkill[i] != null) { m_aSkill[i].CleanUp(); } } for (int i = 0; i < (int)PET_EQUIP.PEQUIP_NUMBER; i++) { m_Equipts[i] = null; } }
public void CleanUp() { m_GUID.Reset(); m_ObjID = MacroDefine.INVALID_ID; m_nDataID = MacroDefine.INVALID_ID; m_SpouseGUID.Reset(); for (int i = 0; i < GAMEDEFINE.MAX_PET_SKILL_COUNT; i++) { m_aSkill[i].m_nSkillID = MacroDefine.INVALID_ID; } }