Definition at line 27 of file MyCoordinateSystem.cs.
Sandbox.Game.GameSystems.CoordinateSystem.MyCoordinateSystem.MyCoordinateSystem |
( |
| ) |
|
|
inline |
void Sandbox.Game.GameSystems.CoordinateSystem.MyCoordinateSystem.CreateCoordSys |
( |
MyCubeGrid |
cubeGrid, |
|
|
bool |
staticGridAlignToCenter, |
|
|
bool |
sync = false |
|
) |
| |
|
inline |
Creates coord system and sends it to clients. Should be called only on server.
- Parameters
-
cubeGrid | Cube grid that is an origin. |
staticGridAlignToCenter | Indcates if grid should be aligned to center or no. |
Definition at line 253 of file MyCoordinateSystem.cs.
override void Sandbox.Game.GameSystems.CoordinateSystem.MyCoordinateSystem.Draw |
( |
| ) |
|
|
inlinevirtual |
Color Sandbox.Game.GameSystems.CoordinateSystem.MyCoordinateSystem.GetCoordSysColor |
( |
long |
coordSysId | ) |
|
|
inline |
Gets local coordinate system indication color.
- Parameters
-
coordSysId | Local coordinate system ID. |
- Returns
- Indication color.
Definition at line 639 of file MyCoordinateSystem.cs.
static void Sandbox.Game.GameSystems.CoordinateSystem.MyCoordinateSystem.GetPosRoundedToGrid |
( |
ref Vector3D |
vecToRound, |
|
|
double |
gridSize, |
|
|
bool |
isStaticGridAlignToCenter |
|
) |
| |
|
inlinestatic |
bool Sandbox.Game.GameSystems.CoordinateSystem.MyCoordinateSystem.IsAnyLocalCoordSysExist |
( |
ref Vector3D |
worldPos | ) |
|
|
inline |
Indicates if position is inside of local coordinates area.
- Parameters
-
- Returns
- If true, position is inside of closest local coordinate system.
Definition at line 510 of file MyCoordinateSystem.cs.
bool Sandbox.Game.GameSystems.CoordinateSystem.MyCoordinateSystem.IsLocalCoordSysExist |
( |
ref MatrixD |
tranform, |
|
|
double |
gridSize |
|
) |
| |
|
inline |
Naive way of checking if transform is snaped to coord sys. In second iteration update for better way.
- Parameters
-
tranform | Transform to check |
- Returns
- Indicates if transform is aligned correctly to any grid system.
Definition at line 528 of file MyCoordinateSystem.cs.
override void Sandbox.Game.GameSystems.CoordinateSystem.MyCoordinateSystem.LoadData |
( |
| ) |
|
|
inlinevirtual |
void Sandbox.Game.GameSystems.CoordinateSystem.MyCoordinateSystem.RegisterCubeGrid |
( |
MyCubeGrid |
cubeGrid | ) |
|
|
inline |
Registers cube grid under closest coord system.
- Parameters
-
cubeGrid | Cube grid to register. |
Definition at line 338 of file MyCoordinateSystem.cs.
void Sandbox.Game.GameSystems.CoordinateSystem.MyCoordinateSystem.ResetSelection |
( |
| ) |
|
|
inline |
CoordSystemData Sandbox.Game.GameSystems.CoordinateSystem.MyCoordinateSystem.SnapWorldPosToClosestGrid |
( |
ref Vector3D |
worldPos, |
|
|
double |
gridSize, |
|
|
bool |
staticGridAlignToCenter |
|
) |
| |
|
inline |
Converts world position to be snapped to closest grid.
- Parameters
-
worldPos | World position. |
gridSize | Grid size. |
staticGridAlignToCenter | Is grid align to static. |
- Returns
Definition at line 435 of file MyCoordinateSystem.cs.
override void Sandbox.Game.GameSystems.CoordinateSystem.MyCoordinateSystem.UnloadData |
( |
| ) |
|
|
inlineprotectedvirtual |
long Sandbox.Game.GameSystems.CoordinateSystem.MyCoordinateSystem.LastSelectedCoordSys |
|
get |
bool Sandbox.Game.GameSystems.CoordinateSystem.MyCoordinateSystem.LocalCoordExist |
|
get |
long Sandbox.Game.GameSystems.CoordinateSystem.MyCoordinateSystem.SelectedCoordSys |
|
get |
bool Sandbox.Game.GameSystems.CoordinateSystem.MyCoordinateSystem.Visible |
|
getset |
Action Sandbox.Game.GameSystems.CoordinateSystem.MyCoordinateSystem.OnCoordinateChange |
|
static |
The documentation for this class was generated from the following file: