Multiblock clipboard for building multiblocks. Can be used for building only (not copy/paste) because it uses definitions not real tile grid/block data.
More...
|
| MyMultiBlockClipboard (MyPlacementSettings settings, bool calculateVelocity=true) |
|
override void | Deactivate (bool afterPaste=false) |
|
override void | Update () |
|
override bool | PasteGrid (MyInventoryBase buildInventory=null, bool deactivate=true) |
|
override bool | EntityCanPaste (MyEntity pastingEntity) |
|
override void | MoveEntityFurther () |
|
override void | MoveEntityCloser () |
|
Matrix | GetRotationDeltaMatrixToHitGrid (MyCubeGrid hitGrid) |
|
void | SetGridFromBuilder (MyMultiBlockDefinition multiBlockDefinition, MyObjectBuilder_CubeGrid grid, Vector3 dragPointDelta, float dragVectorLength) |
|
Public Member Functions inherited from Sandbox.Game.Entities.Cube.MyGridClipboardAdvanced |
| MyGridClipboardAdvanced (MyPlacementSettings settings, bool calculateVelocity=true) |
|
override void | Activate (Action callback=null) |
|
void | SetDragDistance (float dragDistance) |
|
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) |
|
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 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) |
|
|
Static Protected Member Functions inherited from Sandbox.Game.Entities.Cube.MyGridClipboardAdvanced |
static bool | CheckConnectivityOnGrid (MySlimBlock block, ref MatrixI transform, ref MyGridPlacementSettings settings, MyCubeGrid hitGrid) |
|
static bool | TestBlockPlacementOnGrid (MySlimBlock block, ref MatrixI transform, ref MyGridPlacementSettings settings, MyCubeGrid hitGrid) |
|
static bool | TestBlockPlacement (MySlimBlock block, ref MyGridPlacementSettings settings) |
|
static bool | TestBlockPlacement (MySlimBlock block, ref MyGridPlacementSettings settings, out MyCubeGrid touchingGrid) |
|
static bool | TestBlockPlacementNoAABBInflate (MySlimBlock block, ref MyGridPlacementSettings settings, out MyCubeGrid touchingGrid) |
|
static bool | TestVoxelPlacement (MySlimBlock block, ref MyGridPlacementSettings settings, bool dynamicMode) |
|
static bool | TestBlockPlacementArea (MySlimBlock block, ref MyGridPlacementSettings settings, bool dynamicMode, bool testVoxel=true) |
|
Static Protected Member Functions inherited from Sandbox.Game.Entities.Cube.MyGridClipboard |
static MatrixD | GetPasteMatrix () |
|
Protected Attributes inherited from Sandbox.Game.Entities.Cube.MyGridClipboardAdvanced |
bool | m_dynamicBuildAllowed |
|
Protected Attributes inherited from Sandbox.Game.Entities.Cube.MyGridClipboard |
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...
|
|
Events inherited from Sandbox.Game.Entities.Cube.MyGridClipboard |
Action< MyGridClipboard, bool > | Deactivated |
|
Multiblock clipboard for building multiblocks. Can be used for building only (not copy/paste) because it uses definitions not real tile grid/block data.
Definition at line 35 of file MyMultiBlockClipboard.cs.