コード例 #1
0
 //释放所有资源
 public void ReleaseAll()
 {
     for (int i = 0; i < BuffList.Count; ++i)
     {
         Buff buff = BuffList[i];
         ReleaseBuff(buff);
     }
     BuffList.Clear();
 }
コード例 #2
0
ファイル: GuildObject.cs プロジェクト: zhaokai1982/mir2
        public void RemoveAllBuffs()
        {
            //note this removes them all but doesnt reset the sparepoints!(should make some sort of 'refreshpoints' procedure for that
            SendServerPacket(new ServerPackets.GuildBuffList {
                Remove = 1, ActiveBuffs = BuffList
            });

            BuffList.Clear();
            RefreshAllStats();

            NeedSave = true;
        }