コード例 #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));
        }
コード例 #2
0
 public DiceTexture(int id, int width, int height, EnumDiceTextureType diceTextureType, int faceNumber)
     : base(id, width, height)
 {
     this.TextureTypeType = diceTextureType;
     this.FaceNumber      = faceNumber;
 }