Space Engineers
Public Member Functions | Protected Member Functions | Properties | List of all members
Sandbox.Game.Entities.Cube.MyProjectorClipboard Class Reference
Inheritance diagram for Sandbox.Game.Entities.Cube.MyProjectorClipboard:
Sandbox.Game.Entities.Cube.MyGridClipboard

Public Member Functions

 MyProjectorClipboard (MyProjectorBase projector, MyPlacementSettings settings)
 
void Clear ()
 
bool HasGridsLoaded ()
 
void ProcessCubeGrid (MyObjectBuilder_CubeGrid gridBuilder)
 
bool ActuallyTestPlacement ()
 
void ResetGridOrientation ()
 
override void Activate (Action callback=null)
 
- 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)
 
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 ()
 

Protected Member Functions

override void TestBuildingMaterials ()
 
override void UpdatePastePosition ()
 
override bool TestPlacement ()
 
override MyEntity GetClipboardBuilder ()
 
override void UpdateGridTransformations ()
 
- 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)
 
void AlignRotationToCoordSys ()
 
bool TrySnapToSurface (SnapMode snapMode)
 
void FixSnapTransformationBase6 ()
 

Properties

override bool HasPreviewBBox [get, set]
 
override float Transparency [get]
 
override bool CanBePlaced [get]
 
float GridSize [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_CubeGridCopiedGrids [get]
 
SnapMode SnapMode [get]
 
bool EnablePreciseRotationWhenSnapped [get]
 
bool OneAxisRotationMode [get]
 
List< MyCubeGridPreviewGrids [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
 
- Static Protected Member Functions inherited from Sandbox.Game.Entities.Cube.MyGridClipboard
static MatrixD GetPasteMatrix ()
 
- Protected Attributes inherited from Sandbox.Game.Entities.Cube.MyGridClipboard
List< Vector3m_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< MyCubeGridm_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
 

Detailed Description

Definition at line 18 of file MyProjectorClipboard.cs.

Constructor & Destructor Documentation

Sandbox.Game.Entities.Cube.MyProjectorClipboard.MyProjectorClipboard ( MyProjectorBase  projector,
MyPlacementSettings  settings 
)
inline

Definition at line 26 of file MyProjectorClipboard.cs.

Member Function Documentation

override void Sandbox.Game.Entities.Cube.MyProjectorClipboard.Activate ( Action  callback = null)
inlinevirtual

Reimplemented from Sandbox.Game.Entities.Cube.MyGridClipboard.

Definition at line 181 of file MyProjectorClipboard.cs.

bool Sandbox.Game.Entities.Cube.MyProjectorClipboard.ActuallyTestPlacement ( )
inline

Definition at line 114 of file MyProjectorClipboard.cs.

void Sandbox.Game.Entities.Cube.MyProjectorClipboard.Clear ( )
inline

Definition at line 64 of file MyProjectorClipboard.cs.

override MyEntity Sandbox.Game.Entities.Cube.MyProjectorClipboard.GetClipboardBuilder ( )
inlineprotectedvirtual

Reimplemented from Sandbox.Game.Entities.Cube.MyGridClipboard.

Definition at line 121 of file MyProjectorClipboard.cs.

bool Sandbox.Game.Entities.Cube.MyProjectorClipboard.HasGridsLoaded ( )
inline

Definition at line 75 of file MyProjectorClipboard.cs.

void Sandbox.Game.Entities.Cube.MyProjectorClipboard.ProcessCubeGrid ( MyObjectBuilder_CubeGrid  gridBuilder)
inline

Definition at line 80 of file MyProjectorClipboard.cs.

void Sandbox.Game.Entities.Cube.MyProjectorClipboard.ResetGridOrientation ( )
inline

Definition at line 126 of file MyProjectorClipboard.cs.

override void Sandbox.Game.Entities.Cube.MyProjectorClipboard.TestBuildingMaterials ( )
inlineprotectedvirtual

Reimplemented from Sandbox.Game.Entities.Cube.MyGridClipboard.

Definition at line 70 of file MyProjectorClipboard.cs.

override bool Sandbox.Game.Entities.Cube.MyProjectorClipboard.TestPlacement ( )
inlineprotectedvirtual

Reimplemented from Sandbox.Game.Entities.Cube.MyGridClipboard.

Definition at line 107 of file MyProjectorClipboard.cs.

override void Sandbox.Game.Entities.Cube.MyProjectorClipboard.UpdateGridTransformations ( )
inlineprotectedvirtual

Reimplemented from Sandbox.Game.Entities.Cube.MyGridClipboard.

Definition at line 133 of file MyProjectorClipboard.cs.

override void Sandbox.Game.Entities.Cube.MyProjectorClipboard.UpdatePastePosition ( )
inlineprotectedvirtual

Reimplemented from Sandbox.Game.Entities.Cube.MyGridClipboard.

Definition at line 98 of file MyProjectorClipboard.cs.

Property Documentation

override bool Sandbox.Game.Entities.Cube.MyProjectorClipboard.CanBePlaced
getprotected

Definition at line 57 of file MyProjectorClipboard.cs.

float Sandbox.Game.Entities.Cube.MyProjectorClipboard.GridSize
get

Definition at line 169 of file MyProjectorClipboard.cs.

override bool Sandbox.Game.Entities.Cube.MyProjectorClipboard.HasPreviewBBox
getset

Definition at line 36 of file MyProjectorClipboard.cs.

override float Sandbox.Game.Entities.Cube.MyProjectorClipboard.Transparency
getprotected

Definition at line 48 of file MyProjectorClipboard.cs.


The documentation for this class was generated from the following file: