Exemple #1
0
    public static Piece DiePiece(string face, string colour)
    {
        Piece piece = new Piece();

        piece.AddProperty("Face", face);
        piece.AddProperty("Colour", colour);
        return(piece);
    }
Exemple #2
0
    public static Piece FromJson(JsonData properties)
    {
        Piece piece = new Piece();

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