/// <summary> /// Creates a new instance of the Building class using the serialized data /// </summary> /// <param id="mt">MessageType defining the extend of deserialization which is to be performed</param> /// <param id="line">String array containing the serialized data</param> /// <param id="position">Current position in the array</param> /// <param id="context">Context of the serialized data, game where this INetworkSerializable object is in</param> /// <returns>Building created using the provided serialized data</returns> public static Building Create(MessageType mt, string[] line, ref int position, WildmenGame context) { Building b = new Building(); b.Deserialize(mt, line, ref position, context); b.game = context; b.ClaimTiles(b.NearestTile); b.InitializeGraphics(); return b; }