Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
PigmentBlock.cs
浏览该文件的文档.
1using Engine;
3
4namespace Game {
5 public class PigmentBlock : FlatBlock {
6 public static int Index = 130;
7
8 public override void DrawBlock(PrimitivesRenderer3D primitivesRenderer,
9 int value,
10 Color color,
11 float size,
12 ref Matrix matrix,
13 DrawBlockEnvironmentData environmentData) {
14 int value2 = Terrain.ExtractData(value);
16 primitivesRenderer,
17 value,
18 size,
19 ref matrix,
20 null,
21 color * SubsystemPalette.GetColor(environmentData, value2),
22 false,
23 environmentData
24 );
25 }
26 }
27}
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)
static int ExtractData(int value)