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)); }
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 ) ); }