private static void CustomVisit(ref int3x2 i) { LogVisit(i); GUILayout.Label(name); EditorGUI.indentLevel++; var field0 = EditorGUILayout.Vector3IntField("", ConvertToVector3Int(i[0])); var field1 = EditorGUILayout.Vector3IntField("", ConvertToVector3Int(i[1])); i[0] = ConvertVector3IntToInt3(field0); i[1] = ConvertVector3IntToInt3(field1); EditorGUI.indentLevel--; }
public int3x2?PopBottomBlock() { int3x2?res = null; int3x3?val = null; if (hasBlocksToDestroy) { val = _blocksToDestroy[0]; res = new int3x2( val.Value.c0.x, val.Value.c1.x, val.Value.c0.y, val.Value.c1.y, val.Value.c0.z, val.Value.c1.z ); } if (val != null) { _blocksToDestroy.RemoveAt(0); } return(res); }
int3x2?PopTopBlock() { int3x2?res = null; int3x3?val = null; if (hasBlocksToDestroy) { val = _blocksToDestroy[_blocksToDestroy.Count - 1]; res = new int3x2( val.Value.c0.x, val.Value.c1.x, val.Value.c0.y, val.Value.c1.y, val.Value.c0.z, val.Value.c1.z ); } if (val != null) { _blocksToDestroy.RemoveAt(_blocksToDestroy.Count - 1); } return(res); }
public static void AreEqual(int3x2 a, int3x2 b) { AreEqual(a.c0, b.c0); AreEqual(a.c1, b.c1); }
public static void AreEqual(int3x2 expected, int3x2 actual) { AreEqual(expected.c0, actual.c0); AreEqual(expected.c1, actual.c1); }
public fp3x2(int3x2 v) { this.c0 = (fp3)v.c0; this.c1 = (fp3)v.c1; }
public static fp3x2 fp3x2(int3x2 v) { return(new fp3x2(v)); }