6 public static int Index = 144;
20 for (
int i = 0; i < 2; i++) {
23 for (
int j = 0; j < 6; j++) {
37 boneAbsoluteTransform * matrix,
48 vector.X = MathF.
Round(vector.
X * 100f) / 100f;
49 vector.Y = MathF.
Round(vector.
Y * 100f) / 100f;
50 vector.Z = MathF.
Round(vector.
Z * 100f) / 100f;
51 vector2.X = MathF.
Round(vector2.
X * 100f) / 100f;
52 vector2.Y = MathF.
Round(vector2.
Y * 100f) / 100f;
53 vector2.Z = MathF.
Round(vector2.
Z * 100f) / 100f;
56 new Vector3(MathF.Min(vector.
X, vector2.
X), MathF.Min(vector.
Y, vector2.
Y), MathF.Min(vector.
Z, vector2.
Z)),
57 new Vector3(MathF.Max(vector.
X, vector2.
X), MathF.Max(vector.
Y, vector2.
Y), MathF.Max(vector.
Z, vector2.
Z))
66 boneAbsoluteTransform * identity,
106 result.Value = value2;
107 result.CellFace = raycastResult.
CellFace;
115 List<BlockDropValue> dropValues,
116 out
bool showDebris) {
197 public static int SetMaterial(
int data,
int material) => (data & -2) | (material & 1);
201 public static int SetMountingFace(
int data,
int face) => (data & -15) | ((face & 7) << 1);
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)
virtual void GenerateWireVertices(int value, int x, int y, int z, int mountingFace, float centerBoxSize, Vector2 centerOffset, TerrainGeometrySubset subset)
float DestructionDebrisScale
static Matrix GetBoneAbsoluteTransform(ModelBone modelBone)
static void DrawMeshBlock(PrimitivesRenderer3D primitivesRenderer, BlockMesh blockMesh, float size, ref Matrix matrix, DrawBlockEnvironmentData environmentData)
static object Get(Type type, string name)
static string Get(string className, int key)
获取在当前语言类名键对应的字符串
BlockMesh[] m_standaloneBlockMeshesByMaterial
int[] m_creativeValuesByMaterial
override IEnumerable< int > GetCreativeValues()
override BlockPlacementData GetPlacementValue(SubsystemTerrain subsystemTerrain, ComponentMiner componentMiner, int value, TerrainRaycastResult raycastResult)
方块放置方向
override int GetFace(int value)
override? ElectricConnectorType GetConnectorType(SubsystemTerrain terrain, int value, int face, int connectorFace, int x, int y, int z)
static int GetMaterial(int data)
override string GetDisplayName(SubsystemTerrain subsystemTerrain, int value)
override bool IsFaceTransparent(SubsystemTerrain subsystemTerrain, int face, int value)
BoundingBox[][] m_collisionBoxesByData
static int SetMaterial(int data, int material)
override void Initialize()
override void DrawBlock(PrimitivesRenderer3D primitivesRenderer, int value, Color color, float size, ref Matrix matrix, DrawBlockEnvironmentData environmentData)
static int SetMountingFace(int data, int face)
BlockMesh[] m_blockMeshesByData
override void GetDropValues(SubsystemTerrain subsystemTerrain, int oldValue, int newValue, int toolLevel, List< BlockDropValue > dropValues, out bool showDebris)
static int GetMountingFace(int data)
override void GenerateTerrainVertices(BlockGeometryGenerator generator, TerrainGeometry geometry, int value, int x, int y, int z)
override ElectricElement CreateElectricElement(SubsystemElectricity subsystemElectricity, int value, int x, int y, int z)
override BlockDebrisParticleSystem CreateDebrisParticleSystem(SubsystemTerrain subsystemTerrain, Vector3 position, int value, float strength)
override BoundingBox[] GetCustomCollisionBoxes(SubsystemTerrain terrain, int value)
int[] m_textureSlotsByMaterial
static ? ElectricConnectorDirection GetConnectorDirection(int mountingFace, int rotation, int connectorFace)
TerrainGeometrySubset SubsetOpaque
static int ReplaceData(int value, int data)
static int MakeBlockValue(int contents)
static int ExtractData(int value)
static Matrix CreateRotationX(float radians)
static Matrix CreateTranslation(float x, float y, float z)
static readonly Matrix Identity
static Matrix CreateRotationY(float radians)
static readonly Vector2 Zero
static Vector3 Round(Vector3 v)
static Vector3 Transform(Vector3 v, Matrix m)
static int OppositeFace(int face)