Ejemplo n.º 1
0
        public static DiceTexture LoadDiceTexture(string fileName, EnumDiceTextureType diceTextureType, int faceNumber)
        {
            Texture texture = LoadTexture(fileName);

            return(new DiceTexture(texture.Id, texture.Width, texture.Height, diceTextureType, faceNumber));
        }
Ejemplo n.º 2
0
 public DiceTexture(int id, int width, int height, EnumDiceTextureType diceTextureType, int faceNumber)
     : base(id, width, height)
 {
     this.TextureTypeType = diceTextureType;
     this.FaceNumber      = faceNumber;
 }