6 public new const int Index = 226;
14 public static Color[]
m_colors = [
new(20, 20, 20),
new(50, 20, 20),
new(80, 30, 30),
new(20, 20, 40)];
24 for (
int i = 0; i < 6; i++) {
25 for (
int j = 0; j < 4; j++) {
28 zero.Y = i * (float)Math.PI / 2f;
31 zero.X = i == 4 ? -(float)Math.PI / 2f : (float)Math.PI / 2f;
44 boneAbsoluteTransform * m,
98 base.GenerateTerrainVertices(generator, geometry, value, x, y, z);
110 color *
new Color(40, 40, 40),
ModelMesh FindMesh(string name, bool throwIfNotFound=true)
ReadOnlyList< ModelMeshPart > MeshParts
virtual void GenerateMeshVertices(Block block, int x, int y, int z, BlockMesh blockMesh, Color color, Matrix? matrix, TerrainGeometrySubset subset)
float DestructionDebrisScale
static Matrix GetBoneAbsoluteTransform(ModelBone modelBone)
static void DrawMeshBlock(PrimitivesRenderer3D primitivesRenderer, BlockMesh blockMesh, float size, ref Matrix matrix, DrawBlockEnvironmentData environmentData)
static int GetSubvariant(int data)
static int GetFace(int data)
static object Get(Type type, string name)
BlockMesh[] m_blockMeshes
override void Initialize()
BoundingBox[][] m_collisionBoxes
override BoundingBox[] GetCustomCollisionBoxes(SubsystemTerrain terrain, int value)
override BlockDebrisParticleSystem CreateDebrisParticleSystem(SubsystemTerrain subsystemTerrain, Vector3 position, int value, float strength)
static Vector2[] m_offsets
BlockMesh m_standaloneBlockMesh
override void GenerateTerrainVertices(BlockGeometryGenerator generator, TerrainGeometry geometry, int value, int x, int y, int z)
override void DrawBlock(PrimitivesRenderer3D primitivesRenderer, int value, Color color, float size, ref Matrix matrix, DrawBlockEnvironmentData environmentData)
TerrainGeometrySubset SubsetOpaque
static int ExtractData(int value)
static Matrix CreateRotationX(float radians)
static Matrix CreateTranslation(float x, float y, float z)
static Matrix CreateRotationZ(float radians)
static Matrix CreateRotationY(float radians)
static readonly Vector2 Zero