public void Parse_Planes_Stuff(string ID, ref PlanesStruct[] PlanesArray) { int PlayerNum = Get_Player_Number_From_ID(ID); this.Read_32Bits(); // Read garbage PlanesStruct Planes = Parse_Planes(); PlanesArray[PlayerNum - 1] = Planes; }
public PlanesStruct Parse_Planes() { PlanesStruct Planes = new PlanesStruct(); Planes.Chinooks = Read_32Bits(); Planes.BadgeBombers = Read_32Bits(); Planes.SpyPlanes = Read_32Bits(); Planes.MIGs = Read_32Bits(); Planes.YAKs = Read_32Bits(); Planes.LongBows = Read_32Bits(); Planes.Hinds = Read_32Bits(); return(Planes); }