|
Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
|


Public 成员函数 | |
| CellFace (int x, int y, int z, int face) | |
| CellFace (Point3 point, int face) | |
| Plane | CalculatePlane () |
| Vector3 | GetFaceCenter (float offset=0f) |
| Vector3[] | GetFourVertices (float size=1f, float offset=0f) |
| Vector3[] | GetSixVertices (float size=1f, float offset=0f) |
| override int | GetHashCode () |
| override bool | Equals (object obj) |
| bool | Equals (CellFace other) |
| override string | ToString () |
静态 Public 成员函数 | |
| static int | OppositeFace (int face) |
| static Point3 | FaceToPoint3 (int face) |
| static Vector3 | FaceToVector3 (int face) |
| static int[] | FaceToTangents (int face) |
| static int | Point3ToFace (Point3 p, int maxFace=5) |
| static int | Vector3ToFace (Vector3 v, int maxFace=5) |
| static CellFace | FromAxisAndDirection (int x, int y, int z, int axis, float direction) |
| static bool | operator== (CellFace c1, CellFace c2) |
| static bool | operator!= (CellFace c1, CellFace c2) |
Public 属性 | |
| int | X |
| int | Y |
| int | Z |
| int | Face |
静态 Public 属性 | |
| static readonly int[] | m_oppositeFaces = [2, 3, 0, 1, 5, 4] |
| static readonly Point3[] | m_faceToPoint3 = [new(0, 0, 1), new(1, 0, 0), new(0, 0, -1), new(-1, 0, 0), new(0, 1, 0), new(0, -1, 0)] |
| static readonly Vector3[] | m_faceToVector3 |
| static readonly int[][] | m_faceToTangents = [[1, 4, 3, 5], [4, 0, 5, 2], [4, 1, 5, 3], [0, 4, 2, 5], [0, 1, 2, 3], [1, 0, 3, 2]] |
属性 | |
| Point3 | Point [get, set] |
在文件 CellFace.cs 第 4 行定义.
| Game.CellFace.CellFace | ( | int | x, |
| int | y, | ||
| int | z, | ||
| int | face ) |
| Game.CellFace.CellFace | ( | Point3 | point, |
| int | face ) |
在文件 CellFace.cs 第 39 行定义.
| Plane Game.CellFace.CalculatePlane | ( | ) |
| bool Game.CellFace.Equals | ( | CellFace | other | ) |
| override bool Game.CellFace.Equals | ( | object | obj | ) |
|
static |
|
static |
|
static |
|
static |
| Vector3 Game.CellFace.GetFaceCenter | ( | float | offset = 0f | ) |
| Vector3[] Game.CellFace.GetFourVertices | ( | float | size = 1f, |
| float | offset = 0f ) |
| override int Game.CellFace.GetHashCode | ( | ) |
在文件 CellFace.cs 第 140 行定义.
| Vector3[] Game.CellFace.GetSixVertices | ( | float | size = 1f, |
| float | offset = 0f ) |
|
static |
|
static |
| override string Game.CellFace.ToString | ( | ) |
在文件 CellFace.cs 第 158 行定义.
|
static |
| int Game.CellFace.Face |
在文件 CellFace.cs 第 11 行定义.
|
static |
在文件 CellFace.cs 第 15 行定义.
|
static |
在文件 CellFace.cs 第 21 行定义.
|
static |
在文件 CellFace.cs 第 17 行定义.
|
static |
在文件 CellFace.cs 第 13 行定义.
| int Game.CellFace.X |
在文件 CellFace.cs 第 5 行定义.
| int Game.CellFace.Y |
在文件 CellFace.cs 第 7 行定义.
| int Game.CellFace.Z |
在文件 CellFace.cs 第 9 行定义.
|
getset |
在文件 CellFace.cs 第 23 行定义.