コード例 #1
0
        public BlockStructure(BlockType type, BlockState state, SoundType soundType = SoundType.DESTROY_STONE)
        {
            this.type  = type;
            this.state = state;
            this.shape = BlockShape.CUBE;

            topUVs     = sideUVs = botUvs = BlockUVs.AIR_UV;
            topTexture = sideTexture = botTexture = TextureTile.AIR;

            this.soundType = soundType;
        }
コード例 #2
0
        public BlockStructure(BlockType type, TextureTile tile, BlockShape shape, BlockState state, SoundType soundType = SoundType.DESTROY_STONE)
        {
            this.type  = type;
            this.shape = shape;
            this.state = state;

            topTexture = sideTexture = botTexture = tile;
            topUVs     = BlockUVs.GetTileUVs(tile);
            sideUVs    = BlockUVs.GetTileUVs(tile);
            botUvs     = BlockUVs.GetTileUVs(tile);

            this.soundType = soundType;
        }
コード例 #3
0
        public BlockStructure(BlockType type, TextureTile top, TextureTile side, TextureTile bottom, BlockShape shape, BlockState state, SoundType soundType = SoundType.DESTROY_STONE)
        {
            this.type  = type;
            this.shape = shape;
            this.state = state;

            this.topTexture  = top;
            this.sideTexture = side;
            this.botTexture  = bottom;
            topUVs           = BlockUVs.GetTileUVs(top);
            sideUVs          = BlockUVs.GetTileUVs(side);
            botUvs           = BlockUVs.GetTileUVs(bottom);

            this.soundType = soundType;
        }