public static Piece DiePiece(string face, string colour) { Piece piece = new Piece(); piece.AddProperty("Face", face); piece.AddProperty("Colour", colour); return(piece); }
public static Piece FromJson(JsonData properties) { Piece piece = new Piece(); foreach (string property in properties.Keys) { piece.AddProperty(property, (string)properties[property]); } return(piece); }
public static Piece DiePiece(string face, string colour) { Piece piece = new Piece(); piece.AddProperty("Face", face); piece.AddProperty("Colour", colour); return piece; }
public static Piece FromJson(JsonData properties) { Piece piece = new Piece(); foreach(string property in properties.Keys) { piece.AddProperty(property, (string)properties[property]); } return piece; }