|
| MyGridClipboard (MyPlacementSettings settings, bool calculateVelocity=true) |
|
MyCubeBlockDefinition | GetFirstBlockDefinition (MyObjectBuilder_CubeGrid grid=null) |
|
virtual void | ActivateNoAlign (Action callback=null) |
|
virtual void | Activate (Action callback=null) |
|
virtual void | Deactivate (bool afterPaste=false) |
|
void | Hide () |
|
void | Show () |
|
void | ClearClipboard () |
|
void | CopyGroup (MyCubeGrid gridInGroup, GridLinkTypeEnum groupType) |
|
void | CutGrid (MyCubeGrid grid) |
|
void | CopyGrid (MyCubeGrid grid) |
|
void | CutGroup (MyCubeGrid grid, GridLinkTypeEnum groupType) |
|
virtual bool | PasteGrid (MyInventoryBase buildInventory=null, bool deactivate=true) |
|
void | SetGridFromBuilder (MyObjectBuilder_CubeGrid grid, Vector3 dragPointDelta, float dragVectorLength) |
|
void | SetGridFromBuilders (MyObjectBuilder_CubeGrid[] grids, Vector3 dragPointDelta, float dragVectorLength) |
|
virtual void | Update () |
|
virtual bool | EntityCanPaste (MyEntity pastingEntity) |
|
virtual void | UpdateColor (Vector3 newHSV) |
| Used to update the color of a new ship/station block when the player switches it More...
|
|
virtual Matrix | GetFirstGridOrientationMatrix () |
|
void | AlignClipboardToGravity () |
|
void | AlignClipboardToGravity (Vector3 gravity) |
|
void | DrawHud () |
|
void | CalculateRotationHints (MyBlockBuilderRotationHints hints, bool isRotating) |
|
bool | HasCopiedGrids () |
|
void | SaveClipboardAsPrefab (string name=null, string path=null) |
|
void | HideGridWhenColliding (List< Vector3D > collisionTestPoints) |
|
void | RotateAroundAxis (int axisIndex, int sign, bool newlyPressed, float angleDelta) |
|
virtual void | MoveEntityFurther () |
|
virtual void | MoveEntityCloser () |
|
|
List< Vector3 > | m_copiedGridOffsets = new List<Vector3>() |
|
Vector3D | m_pastePosition |
|
Vector3D | m_pastePositionPrevious |
|
bool | m_calculateVelocity = true |
|
Vector3 | m_objectVelocity = Vector3.Zero |
|
float | m_pasteOrientationAngle = 0.0f |
|
Vector3 | m_pasteDirUp = new Vector3(1.0f, 0.0f, 0.0f) |
|
Vector3 | m_pasteDirForward = new Vector3(0.0f, 1.0f, 0.0f) |
|
float | m_dragDistance |
|
const float | m_maxDragDistance = 2E4f |
|
Vector3 | m_dragPointToPositionLocal |
|
bool | m_canBePlaced |
|
bool | m_characterHasEnoughMaterials = false |
|
MyPlacementSettings | m_settings |
|
float | m_closestHitDistSq = float.MaxValue |
|
Vector3D | m_hitPos = new Vector3(0.0f, 0.0f, 0.0f) |
|
Vector3 | m_hitNormal = new Vector3(1.0f, 0.0f, 0.0f) |
|
IMyEntity | m_hitEntity = null |
|
bool | m_visible = true |
|
bool | m_useDynamicPreviews = false |
|
Dictionary< string, int > | m_blocksPerType = new Dictionary<string,int>() |
|
List< MyCubeGrid > | m_touchingGrids = new List<MyCubeGrid>() |
| Grids that are around pasted grid. (In proximity, possible for merge) More...
|
|
Definition at line 40 of file MyGridClipboard.cs.
Sandbox.Game.Entities.Cube.MyGridClipboard.MyGridClipboard |
( |
MyPlacementSettings |
settings, |
|
|
bool |
calculateVelocity = true |
|
) |
| |
|
inline |
virtual void Sandbox.Game.Entities.Cube.MyGridClipboard.Activate |
( |
Action |
callback = null | ) |
|
|
inlinevirtual |
virtual void Sandbox.Game.Entities.Cube.MyGridClipboard.ActivateNoAlign |
( |
Action |
callback = null | ) |
|
|
inlinevirtual |
void Sandbox.Game.Entities.Cube.MyGridClipboard.AlignClipboardToGravity |
( |
| ) |
|
|
inline |
void Sandbox.Game.Entities.Cube.MyGridClipboard.AlignClipboardToGravity |
( |
Vector3 |
gravity | ) |
|
|
inline |
void Sandbox.Game.Entities.Cube.MyGridClipboard.AlignRotationToCoordSys |
( |
| ) |
|
|
inlineprotected |
virtual void Sandbox.Game.Entities.Cube.MyGridClipboard.ChangeClipboardPreview |
( |
bool |
visible | ) |
|
|
inlineprotectedvirtual |
bool Sandbox.Game.Entities.Cube.MyGridClipboard.CheckPastedBlocks |
( |
| ) |
|
|
inlineprotected |
Checks the pasted object builder for non-existent blocks (e.g. copying from world with a cube block mod to a world without it)
- Returns
- True when the grid can be pasted
Definition at line 840 of file MyGridClipboard.cs.
bool Sandbox.Game.Entities.Cube.MyGridClipboard.CheckPastedScripts |
( |
| ) |
|
|
inlineprotected |
Checks the pasted object builder for scripts inside programmable blocks
- Returns
Definition at line 861 of file MyGridClipboard.cs.
void Sandbox.Game.Entities.Cube.MyGridClipboard.ClearClipboard |
( |
| ) |
|
|
inline |
void Sandbox.Game.Entities.Cube.MyGridClipboard.CopyGrid |
( |
MyCubeGrid |
grid | ) |
|
|
inline |
void Sandbox.Game.Entities.Cube.MyGridClipboard.CutGrid |
( |
MyCubeGrid |
grid | ) |
|
|
inline |
virtual void Sandbox.Game.Entities.Cube.MyGridClipboard.Deactivate |
( |
bool |
afterPaste = false | ) |
|
|
inlinevirtual |
void Sandbox.Game.Entities.Cube.MyGridClipboard.DrawHud |
( |
| ) |
|
|
inline |
virtual bool Sandbox.Game.Entities.Cube.MyGridClipboard.EntityCanPaste |
( |
MyEntity |
pastingEntity | ) |
|
|
inlinevirtual |
void Sandbox.Game.Entities.Cube.MyGridClipboard.FixSnapTransformationBase6 |
( |
| ) |
|
|
inlineprotected |
virtual MyEntity Sandbox.Game.Entities.Cube.MyGridClipboard.GetClipboardBuilder |
( |
| ) |
|
|
inlineprotectedvirtual |
virtual Matrix Sandbox.Game.Entities.Cube.MyGridClipboard.GetFirstGridOrientationMatrix |
( |
| ) |
|
|
inlinevirtual |
static MatrixD Sandbox.Game.Entities.Cube.MyGridClipboard.GetPasteMatrix |
( |
| ) |
|
|
inlinestaticprotected |
bool Sandbox.Game.Entities.Cube.MyGridClipboard.HasCopiedGrids |
( |
| ) |
|
|
inline |
void Sandbox.Game.Entities.Cube.MyGridClipboard.Hide |
( |
| ) |
|
|
inline |
void Sandbox.Game.Entities.Cube.MyGridClipboard.HideGridWhenColliding |
( |
List< Vector3D > |
collisionTestPoints | ) |
|
|
inline |
virtual void Sandbox.Game.Entities.Cube.MyGridClipboard.MoveEntityCloser |
( |
| ) |
|
|
inlinevirtual |
virtual void Sandbox.Game.Entities.Cube.MyGridClipboard.MoveEntityFurther |
( |
| ) |
|
|
inlinevirtual |
virtual bool Sandbox.Game.Entities.Cube.MyGridClipboard.PasteGrid |
( |
MyInventoryBase |
buildInventory = null , |
|
|
bool |
deactivate = true |
|
) |
| |
|
inlinevirtual |
void Sandbox.Game.Entities.Cube.MyGridClipboard.RotateAroundAxis |
( |
int |
axisIndex, |
|
|
int |
sign, |
|
|
bool |
newlyPressed, |
|
|
float |
angleDelta |
|
) |
| |
|
inline |
void Sandbox.Game.Entities.Cube.MyGridClipboard.SaveClipboardAsPrefab |
( |
string |
name = null , |
|
|
string |
path = null |
|
) |
| |
|
inline |
void Sandbox.Game.Entities.Cube.MyGridClipboard.Show |
( |
| ) |
|
|
inline |
void Sandbox.Game.Entities.Cube.MyGridClipboard.ShowPreview |
( |
bool |
show | ) |
|
|
inlineprotected |
virtual void Sandbox.Game.Entities.Cube.MyGridClipboard.TestBuildingMaterials |
( |
| ) |
|
|
inlineprotectedvirtual |
virtual bool Sandbox.Game.Entities.Cube.MyGridClipboard.TestPlacement |
( |
| ) |
|
|
inlineprotectedvirtual |
bool Sandbox.Game.Entities.Cube.MyGridClipboard.TrySnapToSurface |
( |
SnapMode |
snapMode | ) |
|
|
inlineprotected |
virtual void Sandbox.Game.Entities.Cube.MyGridClipboard.Update |
( |
| ) |
|
|
inlinevirtual |
delegate void Sandbox.Game.Entities.Cube.MyGridClipboard.UpdateAfterPasteCallback |
( |
List< MyObjectBuilder_CubeGrid > |
pastedBuilders | ) |
|
|
protected |
virtual void Sandbox.Game.Entities.Cube.MyGridClipboard.UpdateColor |
( |
Vector3 |
newHSV | ) |
|
|
inlinevirtual |
Used to update the color of a new ship/station block when the player switches it
Definition at line 1452 of file MyGridClipboard.cs.
virtual void Sandbox.Game.Entities.Cube.MyGridClipboard.UpdateGridTransformations |
( |
| ) |
|
|
inlineprotectedvirtual |
bool Sandbox.Game.Entities.Cube.MyGridClipboard.UpdateHitEntity |
( |
bool |
canPasteLargeOnSmall = true | ) |
|
|
inlineprotected |
virtual void Sandbox.Game.Entities.Cube.MyGridClipboard.UpdatePastePosition |
( |
| ) |
|
|
inlineprotectedvirtual |
Dictionary<string, int> Sandbox.Game.Entities.Cube.MyGridClipboard.m_blocksPerType = new Dictionary<string,int>() |
|
protected |
bool Sandbox.Game.Entities.Cube.MyGridClipboard.m_calculateVelocity = true |
|
protected |
bool Sandbox.Game.Entities.Cube.MyGridClipboard.m_canBePlaced |
|
protected |
bool Sandbox.Game.Entities.Cube.MyGridClipboard.m_characterHasEnoughMaterials = false |
|
protected |
float Sandbox.Game.Entities.Cube.MyGridClipboard.m_closestHitDistSq = float.MaxValue |
|
protected |
List<Vector3> Sandbox.Game.Entities.Cube.MyGridClipboard.m_copiedGridOffsets = new List<Vector3>() |
|
protected |
float Sandbox.Game.Entities.Cube.MyGridClipboard.m_dragDistance |
|
protected |
Vector3 Sandbox.Game.Entities.Cube.MyGridClipboard.m_dragPointToPositionLocal |
|
protected |
IMyEntity Sandbox.Game.Entities.Cube.MyGridClipboard.m_hitEntity = null |
|
protected |
Vector3 Sandbox.Game.Entities.Cube.MyGridClipboard.m_hitNormal = new Vector3(1.0f, 0.0f, 0.0f) |
|
protected |
Vector3D Sandbox.Game.Entities.Cube.MyGridClipboard.m_hitPos = new Vector3(0.0f, 0.0f, 0.0f) |
|
protected |
const float Sandbox.Game.Entities.Cube.MyGridClipboard.m_maxDragDistance = 2E4f |
|
protected |
Vector3 Sandbox.Game.Entities.Cube.MyGridClipboard.m_objectVelocity = Vector3.Zero |
|
protected |
Vector3 Sandbox.Game.Entities.Cube.MyGridClipboard.m_pasteDirForward = new Vector3(0.0f, 1.0f, 0.0f) |
|
protected |
Vector3 Sandbox.Game.Entities.Cube.MyGridClipboard.m_pasteDirUp = new Vector3(1.0f, 0.0f, 0.0f) |
|
protected |
float Sandbox.Game.Entities.Cube.MyGridClipboard.m_pasteOrientationAngle = 0.0f |
|
protected |
Vector3D Sandbox.Game.Entities.Cube.MyGridClipboard.m_pastePosition |
|
protected |
Vector3D Sandbox.Game.Entities.Cube.MyGridClipboard.m_pastePositionPrevious |
|
protected |
List<MyCubeGrid> Sandbox.Game.Entities.Cube.MyGridClipboard.m_touchingGrids = new List<MyCubeGrid>() |
|
protected |
Grids that are around pasted grid. (In proximity, possible for merge)
Definition at line 111 of file MyGridClipboard.cs.
bool Sandbox.Game.Entities.Cube.MyGridClipboard.m_useDynamicPreviews = false |
|
protected |
bool Sandbox.Game.Entities.Cube.MyGridClipboard.m_visible = true |
|
protected |
bool Sandbox.Game.Entities.Cube.MyGridClipboard.ShowModdedBlocksWarning = true |
bool Sandbox.Game.Entities.Cube.MyGridClipboard.AllowSwitchCameraMode |
|
get |
virtual bool Sandbox.Game.Entities.Cube.MyGridClipboard.AnyCopiedGridIsStatic |
|
getprotected |
virtual bool Sandbox.Game.Entities.Cube.MyGridClipboard.CanBePlaced |
|
getprotected |
bool Sandbox.Game.Entities.Cube.MyGridClipboard.CharacterHasEnoughMaterials |
|
get |
string Sandbox.Game.Entities.Cube.MyGridClipboard.CopiedGridsName |
|
get |
bool Sandbox.Game.Entities.Cube.MyGridClipboard.CreationMode |
|
getset |
MyCubeSize Sandbox.Game.Entities.Cube.MyGridClipboard.CubeSize |
|
getset |
bool Sandbox.Game.Entities.Cube.MyGridClipboard.EnablePreciseRotationWhenSnapped |
|
get |
bool Sandbox.Game.Entities.Cube.MyGridClipboard.EnableStationRotation |
|
getset |
virtual bool Sandbox.Game.Entities.Cube.MyGridClipboard.HasPreviewBBox |
|
getset |
bool Sandbox.Game.Entities.Cube.MyGridClipboard.IsActive |
|
getprotected set |
bool Sandbox.Game.Entities.Cube.MyGridClipboard.IsSnapped |
|
getprotected set |
bool Sandbox.Game.Entities.Cube.MyGridClipboard.IsStatic |
|
getset |
bool Sandbox.Game.Entities.Cube.MyGridClipboard.OneAxisRotationMode |
|
get |
List<MyCubeGrid> Sandbox.Game.Entities.Cube.MyGridClipboard.PreviewGrids |
|
get |
SnapMode Sandbox.Game.Entities.Cube.MyGridClipboard.SnapMode |
|
get |
virtual float Sandbox.Game.Entities.Cube.MyGridClipboard.Transparency |
|
getprotected |
Action<MyGridClipboard, bool> Sandbox.Game.Entities.Cube.MyGridClipboard.Deactivated |
The documentation for this class was generated from the following file: