Ejemplo n.º 1
0
    public static Piece DiePiece(string face, string colour)
    {
        Piece piece = new Piece();

        piece.AddProperty("Face", face);
        piece.AddProperty("Colour", colour);
        return(piece);
    }
Ejemplo n.º 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);
    }
Ejemplo n.º 3
0
	public static Piece DiePiece(string face, string colour)
	{
		Piece piece = new Piece();
		piece.AddProperty("Face", face);
		piece.AddProperty("Colour", colour);
		return piece;
	}
Ejemplo n.º 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;
	}