public void Parse_Vessels_Stuff(string ID, ref VesselsStruct[] VesArray) { int PlayerNum = Get_Player_Number_From_ID(ID); this.Read_32Bits(); // Read garbage VesselsStruct Vessels = Parse_Vessels(); VesArray[PlayerNum - 1] = Vessels; }
public VesselsStruct Parse_Vessels() { VesselsStruct Vessels = new VesselsStruct(); Vessels.Submarines = this.Read_32Bits(); Vessels.Destroyers = this.Read_32Bits(); Vessels.Cruisers = this.Read_32Bits(); Vessels.Gunboats = this.Read_32Bits(); Vessels.MissileSubs = this.Read_32Bits(); Vessels.HeliCarriers = this.Read_32Bits(); // Aftermath hidden unit return(Vessels); }