Space Engineers
|
Enhanced clipboard which supports dynamic placing, allow rotation of static grid. More...
Public Member Functions | |
MyGridClipboardAdvanced (MyPlacementSettings settings, bool calculateVelocity=true) | |
override void | Update () |
override void | Activate (Action callback=null) |
override bool | PasteGrid (MyInventoryBase buildInventory=null, bool deactivate=true) |
void | SetDragDistance (float dragDistance) |
override void | MoveEntityCloser () |
Public Member Functions inherited from Sandbox.Game.Entities.Cube.MyGridClipboard | |
MyGridClipboard (MyPlacementSettings settings, bool calculateVelocity=true) | |
MyCubeBlockDefinition | GetFirstBlockDefinition (MyObjectBuilder_CubeGrid grid=null) |
virtual void | ActivateNoAlign (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) |
void | SetGridFromBuilder (MyObjectBuilder_CubeGrid grid, Vector3 dragPointDelta, float dragVectorLength) |
void | SetGridFromBuilders (MyObjectBuilder_CubeGrid[] grids, Vector3 dragPointDelta, float dragVectorLength) |
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 () |
Protected Member Functions | |
override void | UpdatePastePosition () |
Vector3D | GetFreeSpacePlacementPosition (bool copyPaste, out bool buildAllowed) |
Vector3D | GetFreeSpacePlacementPositionGridAabbs (bool copyPaste, out bool buildAllowed) |
Casts preview grids aabbs and get shortest distance. Returns shortest intersection or null. More... | |
bool | TestGridPlacementOnGrid (MyCubeGrid previewGrid, ref MyGridPlacementSettings settings, MyCubeGrid hitGrid) |
virtual void | SetupDragDistance () |
Protected Member Functions inherited from Sandbox.Game.Entities.Cube.MyGridClipboard | |
delegate void | UpdateAfterPasteCallback (List< MyObjectBuilder_CubeGrid > pastedBuilders) |
void | ShowPreview (bool show) |
bool | PasteGridInternal (MyInventoryBase buildInventory, bool deactivate, List< MyObjectBuilder_CubeGrid > pastedBuilders=null, List< MyCubeGrid > touchingGrids=null, UpdateAfterPasteCallback updateAfterPasteCallback=null, bool multiBlock=false) |
bool | CheckPastedBlocks () |
Checks the pasted object builder for non-existent blocks (e.g. copying from world with a cube block mod to a world without it) More... | |
bool | CheckPastedScripts () |
Checks the pasted object builder for scripts inside programmable blocks More... | |
void | BeforeCreateGrid (MyObjectBuilder_CubeGrid grid) |
virtual void | ChangeClipboardPreview (bool visible) |
bool | UpdateHitEntity (bool canPasteLargeOnSmall=true) |
virtual void | TestBuildingMaterials () |
virtual MyEntity | GetClipboardBuilder () |
virtual void | UpdateGridTransformations () |
void | AlignRotationToCoordSys () |
bool | TrySnapToSurface (SnapMode snapMode) |
void | FixSnapTransformationBase6 () |
Properties | |
override bool | AnyCopiedGridIsStatic [get] |
Properties inherited from Sandbox.Game.Entities.Cube.MyGridClipboard | |
virtual bool | CanBePlaced [get] |
bool | CharacterHasEnoughMaterials [get] |
virtual bool | HasPreviewBBox [get, set] |
bool | IsActive [get, protected set] |
bool | AllowSwitchCameraMode [get] |
bool | IsSnapped [get, protected set] |
List< MyObjectBuilder_CubeGrid > | CopiedGrids [get] |
SnapMode | SnapMode [get] |
bool | EnablePreciseRotationWhenSnapped [get] |
bool | OneAxisRotationMode [get] |
List< MyCubeGrid > | PreviewGrids [get] |
virtual bool | AnyCopiedGridIsStatic [get] |
bool | EnableStationRotation [get, set] |
bool | CreationMode [get, set] |
MyCubeSize | CubeSize [get, set] |
bool | IsStatic [get, set] |
virtual float | Transparency [get] |
string | CopiedGridsName [get] |
Additional Inherited Members | |
Static Public Member Functions inherited from Sandbox.Game.Entities.Cube.MyGridClipboard | |
static void | CalculateItemRequirements (List< MyObjectBuilder_CubeGrid > blocksToBuild, MyComponentList buildComponents) |
static void | CalculateItemRequirements (MyObjectBuilder_CubeGrid[] blocksToBuild, MyComponentList buildComponents) |
Public Attributes inherited from Sandbox.Game.Entities.Cube.MyGridClipboard | |
bool | ShowModdedBlocksWarning = true |
Events inherited from Sandbox.Game.Entities.Cube.MyGridClipboard | |
Action< MyGridClipboard, bool > | Deactivated |
Enhanced clipboard which supports dynamic placing, allow rotation of static grid.
Definition at line 30 of file MyGridClipboardAdvanced.cs.
|
inline |
Definition at line 47 of file MyGridClipboardAdvanced.cs.
|
inlinevirtual |
Reimplemented from Sandbox.Game.Entities.Cube.MyGridClipboard.
Definition at line 97 of file MyGridClipboardAdvanced.cs.
|
inlinestaticprotected |
Definition at line 908 of file MyGridClipboardAdvanced.cs.
|
inlineprotected |
Definition at line 389 of file MyGridClipboardAdvanced.cs.
|
inlineprotected |
Casts preview grids aabbs and get shortest distance. Returns shortest intersection or null.
Definition at line 485 of file MyGridClipboardAdvanced.cs.
|
inlinevirtual |
Reimplemented from Sandbox.Game.Entities.Cube.MyGridClipboard.
Reimplemented in Sandbox.Game.Entities.Cube.MyMultiBlockClipboard.
Definition at line 1039 of file MyGridClipboardAdvanced.cs.
|
inlinevirtual |
Reimplemented from Sandbox.Game.Entities.Cube.MyGridClipboard.
Reimplemented in Sandbox.Game.Entities.Cube.MyMultiBlockClipboard.
Definition at line 141 of file MyGridClipboardAdvanced.cs.
|
inline |
Definition at line 378 of file MyGridClipboardAdvanced.cs.
|
inlineprotectedvirtual |
Reimplemented in Sandbox.Game.Entities.Cube.MyMultiBlockClipboard.
Definition at line 1017 of file MyGridClipboardAdvanced.cs.
|
inlinestaticprotected |
Definition at line 937 of file MyGridClipboardAdvanced.cs.
|
inlinestaticprotected |
Definition at line 942 of file MyGridClipboardAdvanced.cs.
|
inlinestaticprotected |
Definition at line 960 of file MyGridClipboardAdvanced.cs.
|
inlinestaticprotected |
Definition at line 947 of file MyGridClipboardAdvanced.cs.
|
inlinestaticprotected |
Definition at line 922 of file MyGridClipboardAdvanced.cs.
|
inlineprotected |
Definition at line 833 of file MyGridClipboardAdvanced.cs.
|
inlinestaticprotected |
Definition at line 952 of file MyGridClipboardAdvanced.cs.
|
inlinevirtual |
Reimplemented from Sandbox.Game.Entities.Cube.MyGridClipboard.
Reimplemented in Sandbox.Game.Entities.Cube.MyMultiBlockClipboard.
Definition at line 53 of file MyGridClipboardAdvanced.cs.
|
inlineprotectedvirtual |
Reimplemented from Sandbox.Game.Entities.Cube.MyGridClipboard.
Reimplemented in Sandbox.Game.Entities.Cube.MyMultiBlockClipboard.
Definition at line 319 of file MyGridClipboardAdvanced.cs.
|
protected |
Definition at line 34 of file MyGridClipboardAdvanced.cs.
|
getprotected |
Definition at line 37 of file MyGridClipboardAdvanced.cs.