예제 #1
0
        public void AddWar(Guild g, int kills, int maxkills, uint wartime, uint exptime)
        {
            WarKillsItem w_Kill, w_Kills;

            w_Kills          = new WarKillsItem();
            w_Kills.Kills    = kills;
            w_Kills.w_Guild  = g;
            w_Kills.MaxKills = maxkills;
            w_Kills.WarTime  = wartime;
            w_Kills.ExpTime  = exptime;

            ArrayList list = new ArrayList(this.WarKills.Length);

            for (int i = 0; i < this.WarKills.Length; i++)
            {
                w_Kill = this.WarKills[i];
                list.Add(w_Kill);
            }
            list.Add(w_Kills);
            this.m_WarKills = (WarKillsItem[])list.ToArray(typeof(WarKillsItem));
        }
예제 #2
0
파일: Guild.cs 프로젝트: Ravenwolfe/xrunuo
        public void AddWar( Guild g, int kills, int maxkills, uint wartime, uint exptime )
        {
            WarKillsItem w_Kill, w_Kills;

            w_Kills = new WarKillsItem();
            w_Kills.Kills = kills;
            w_Kills.w_Guild = g;
            w_Kills.MaxKills = maxkills;
            w_Kills.WarTime = wartime;
            w_Kills.ExpTime = exptime;

            ArrayList list = new ArrayList( this.WarKills.Length );
            for ( int i = 0; i < this.WarKills.Length; i++ )
            {
                w_Kill = this.WarKills[i];
                list.Add( w_Kill );
            }
            list.Add( w_Kills );
            this.m_WarKills = (WarKillsItem[]) list.ToArray( typeof( WarKillsItem ) );
        }