public IEncodable Decode(General.Encoding.BinaryInput stream) { this.Name = stream.ReadString(); this.Gender = (Gender) stream.ReadInt32(); int c = stream.ReadInt32(); for (int i = 0; i < c; i++) { this.Party[i] = new Pokemon(); this.Party[i].Decode(stream); } int cc = stream.ReadInt32(); for (int i = 0; i < cc; i++) { Flags[i] = stream.ReadBoolean(); } return this; }