public GCCooldownUpdate()
 {
     for (int nIdx = 0; (int)CHAR_ATTR_CONSTANT1.MAX_COOLDOWN_LIST_SIZE_FOR_HUMAN > nIdx; ++nIdx)
     {
         if (m_aCooldowns[nIdx] == null)
         {
             m_aCooldowns[nIdx] = new Cooldown_T();
         }
     }
 }
        private void CalcNumCooldown()
        {
            m_nNumCooldown = 0;
            for (int nIdx = 0; (int)CHAR_ATTR_CONSTANT1.MAX_COOLDOWN_LIST_SIZE_FOR_HUMAN > nIdx; ++nIdx)
            {
                if (m_aCooldowns[nIdx] == null)
                {
                    m_aCooldowns[nIdx] = new Cooldown_T();
                }

                if (-1 != m_aCooldowns[nIdx].m_nID)
                {
                    ++m_nNumCooldown;
                }
            }
        }
 public override int GetPacketMaxSize()
 {
     return(PET_GUID_t.getMaxSize() + Cooldown_T.getMaxSize() * (int)CHAR_ATTR_CONSTANT1.MAX_COOLDOWN_LIST_SIZE_FOR_HUMAN + sizeof(short));
 }