/// <summary> /// Serialises the Squadron /// </summary> /// <returns>Json object as a string</returns> public string ToJSON() { /*{ * "Squadron" : { * "Name" : name, * "Race" : race, * "Rating" : rating, * "Speed" : speed, * "Max" : max, * "Size" : size } *} */ return(@"{""Squadron"":{""Name"":""" + Name.Escape() + @""",""Race"":" + (byte)Race + @",""Rating"":" + CraftRating + @",""Speed"":" + Speed + @",""Max"":" + MaxSize + @",""Size"":" + CurrentSize + @",""Special"":""" + Special.Escape() + @""",""Origin"":" + (byte)Origin + @",""Page"":" + Page + @"}}"); }