Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
FlatBlock.cs
浏览该文件的文档.
1using Engine;
3
4namespace Game {
5 public abstract class FlatBlock : Block {
6 public override void GenerateTerrainVertices(BlockGeometryGenerator generator, TerrainGeometry geometry, int value, int x, int y, int z) { }
7
8 public override void DrawBlock(PrimitivesRenderer3D primitivesRenderer,
9 int value,
10 Color color,
11 float size,
12 ref Matrix matrix,
13 DrawBlockEnvironmentData environmentData) {
15 primitivesRenderer,
16 value,
17 size,
18 ref matrix,
19 null,
20 color,
21 false,
22 environmentData
23 );
24 }
25 }
26}
static void DrawFlatOrImageExtrusionBlock(PrimitivesRenderer3D primitivesRenderer, int value, float size, ref Matrix matrix, Texture2D texture, Color color, bool isEmissive, DrawBlockEnvironmentData environmentData)
override void DrawBlock(PrimitivesRenderer3D primitivesRenderer, int value, Color color, float size, ref Matrix matrix, DrawBlockEnvironmentData environmentData)
override void GenerateTerrainVertices(BlockGeometryGenerator generator, TerrainGeometry geometry, int value, int x, int y, int z)