Space Engineers
Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Properties | List of all members
Sandbox.Game.Weapons.MyEngineerToolBase Class Referenceabstract
Inheritance diagram for Sandbox.Game.Weapons.MyEngineerToolBase:
VRage.Game.Entity.MyEntity Sandbox.Game.Entities.IMyHandheldGunObject< MyToolBase > Sandbox.ModAPI.Weapons.IMyEngineerToolBase VRage.ModAPI.IMyEntity VRage.ModAPI.IMyEntity Sandbox.Game.Entities.IMyHandheldGunObject< MyToolBase > VRage.Game.ModAPI.Ingame.IMyEntity VRage.Game.ModAPI.Ingame.IMyEntity Sandbox.Game.Weapons.MyAngleGrinder Sandbox.Game.Weapons.MyBlockPlacerBase Sandbox.Game.Weapons.MyWelder SpaceEngineers.Game.Entities.Weapons.MyCubePlacer

Public Member Functions

bool CanBeDrawn ()
 
 MyEngineerToolBase (int cooldownMs)
 
void Init (MyObjectBuilder_EntityBase builder, MyDefinitionId id)
 
void Init (MyObjectBuilder_EntityBase builder, MyHandItemDefinition definition)
 
MyCubeGrid GetTargetGrid ()
 
override void OnAddedToScene (object source)
 Called when [activated] which for entity means that was added to scene. More...
 
override void OnRemovedFromScene (object source)
 
override void UpdateAfterSimulation ()
 
void UpdateSoundEmitter ()
 
void UpdateSensorPosition ()
 
virtual bool CanShoot (MyShootActionEnum action, long shooter, out MyGunStatusEnum status)
 
virtual void Shoot (MyShootActionEnum action, Vector3 direction, Vector3D?overrideWeaponPos, string gunAction)
 
virtual void EndShoot (MyShootActionEnum action)
 
virtual void OnFailShoot (MyGunStatusEnum status)
 
virtual void OnControlAcquired (MyCharacter owner)
 
virtual void OnControlReleased ()
 
void DrawHud (IMyCameraController camera, long playerId)
 
Vector3 DirectionToTarget (Vector3D target)
 
virtual void BeginFailReaction (MyShootActionEnum action, MyGunStatusEnum status)
 
virtual void BeginFailReactionLocal (MyShootActionEnum action, MyGunStatusEnum status)
 
virtual void ShootFailReactionLocal (MyShootActionEnum action, MyGunStatusEnum status)
 
int GetAmmunitionAmount ()
 
override MyObjectBuilder_EntityBase GetObjectBuilder (bool copy=false)
 Gets object builder from object. More...
 
- Public Member Functions inherited from VRage.Game.Entity.MyEntity
void DebugDraw ()
 
void DebugDrawInvalidTriangles ()
 
void AddDebugRenderComponent (MyDebugRenderComponentBase render)
 
void ClearDebugRenderComponents ()
 
MyEntity GetTopMostParent (Type type=null)
 Return top most parent of this entity More...
 
virtual List< MyHudEntityParamsGetHudParams (bool allowBlink)
 
 MyEntity ()
 
 MyEntity (bool initComponents=true)
 Initializes a new instance of the MyEntity class. More...
 
void CreateSync ()
 
MyEntitySubpart GetSubpart (string name)
 
bool TryGetSubpart (string name, out MyEntitySubpart subpart)
 
virtual void UpdateOnceBeforeFrame ()
 
virtual void UpdateBeforeSimulation ()
 
virtual void UpdatingStopped ()
 
virtual void UpdateBeforeSimulation10 ()
 Called each 10th frame if registered for update10 More...
 
virtual void UpdateAfterSimulation10 ()
 
virtual void UpdateBeforeSimulation100 ()
 Called each 100th frame if registered for update100 More...
 
virtual void UpdateAfterSimulation100 ()
 
virtual string GetFriendlyName ()
 
virtual MatrixD GetViewMatrix ()
 
void SetSpeedsAccordingToServerValues ()
 
virtual void SetWorldMatrix (MatrixD worldMatrix, bool forceUpdate=false, bool updateChildren=true)
 
virtual void DebugDrawPhysics ()
 Draw physical representation of entity More...
 
virtual bool GetIntersectionWithLine (ref LineD line, out Vector3D?v, bool useCollisionModel=true, IntersectionFlags flags=IntersectionFlags.ALL_TRIANGLES)
 
virtual bool GetIntersectionWithLine (ref LineD line, out VRage.Game.Models.MyIntersectionResultLineTriangleEx?t, IntersectionFlags flags=IntersectionFlags.ALL_TRIANGLES)
 
virtual Vector3D GetIntersectionWithLineAndBoundingSphere (ref LineD line, float boundingSphereRadiusMultiplier)
 
virtual bool GetIntersectionWithSphere (ref BoundingSphereD sphere)
 
void GetTrianglesIntersectingSphere (ref BoundingSphereD sphere, Vector3?referenceNormalVector, float?maxAngle, List< MyTriangle_Vertex_Normals > retTriangles, int maxNeighbourTriangles)
 
virtual bool DoOverlapSphereTest (float sphereRadius, Vector3D spherePos)
 
double GetSmallestDistanceBetweenCameraAndBoundingSphere ()
 
double GetLargestDistanceBetweenCameraAndBoundingSphere ()
 
double GetDistanceBetweenCameraAndBoundingSphere ()
 
double GetDistanceBetweenPlayerPositionAndBoundingSphere ()
 
double GetDistanceBetweenCameraAndPosition ()
 
virtual MyEntity GetBaseEntity ()
 
void AddToGamePruningStructure ()
 
void RemoveFromGamePruningStructure ()
 
void UpdateGamePruningStructure ()
 
void RaisePhysicsChanged ()
 
void HackyComponentInitByMiroPleaseDontUseEver (MyDefinitionId id)
 DONT USE THIS METHOD, EVER! More...
 
virtual void Init (MyObjectBuilder_EntityBase objectBuilder)
 
virtual void Init (StringBuilder displayName, string model, MyEntity parentObject, float?scale, string modelCollision=null)
 
virtual void RefreshModels (string model, string modelCollision)
 
void Delete ()
 Every object must have this method, but not every phys object must necessarily have something to cleanup More...
 
void Close ()
 This method marks this entity for close which means, that Close will be called after all entities are updated More...
 
virtual void BeforeSave ()
 Called before method GetObjectBuilder, when saving sector More...
 
virtual void PrepareForDraw ()
 Method is called defacto from Update, preparation fo Draw More...
 
virtual void BeforePaste ()
 
virtual void AfterPaste ()
 
void SetEmissiveParts (string emissiveName, Color emissivePartColor, float emissivity)
 Sets the emissive value of a specific emissive material on entity. More...
 
void SetEmissivePartsForSubparts (string emissiveName, Color emissivePartColor, float emissivity)
 Sets the emissive value of a specific emissive material on all entity subparts. More...
 
override string ToString ()
 
virtual MyInventoryBase GetInventoryBase (int index)
 Search for inventory component with maching index. More...
 
MyInventoryBase GetInventoryBase ()
 Simply get the MyInventoryBase component stored in this entity. More...
 
delegate MyObjectBuilder_EntityBase MyEntityFactoryCreateObjectBuilderDelegate (MyEntity entity)
 
delegate MySyncComponentBase CreateDefaultSyncEntityDelegate (MyEntity thisEntity)
 
delegate bool MyWeldingGroupsGroupExistsDelegate (MyEntity entity)
 
virtual void SerializeControls (BitStream stream)
 
virtual void DeserializeControls (BitStream stream, bool outOfOrder)
 
virtual void ApplyLastControls ()
 
- Public Member Functions inherited from VRage.ModAPI.IMyEntity
bool GetIntersectionWithLine (ref LineD line, out VRage.Game.Models.MyIntersectionResultLineTriangleEx?tri, IntersectionFlags flags)
 
void GetTrianglesIntersectingSphere (ref BoundingSphereD sphere, Vector3?referenceNormalVector, float?maxAngle, System.Collections.Generic.List< MyTriangle_Vertex_Normals > retTriangles, int maxNeighbourTriangles)
 

Static Public Attributes

static float GLARE_SIZE = 0.068f
 
- Static Public Attributes inherited from VRage.Game.Entity.MyEntity
static Action< MyEntityAddToGamePruningStructureExtCallBack = null
 
static Action< MyEntityRemoveFromGamePruningStructureExtCallBack = null
 
static Action< MyEntityUpdateGamePruningStructureExtCallBack = null
 
static MyEntityFactoryCreateObjectBuilderDelegate MyEntityFactoryCreateObjectBuilderExtCallback = null
 
static CreateDefaultSyncEntityDelegate CreateDefaultSyncEntityExtCallback
 
static Action< MyEntityMyWeldingGroupsAddNodeExtCallback = null
 
static Action< MyEntityMyWeldingGroupsRemoveNodeExtCallback = null
 
static Action< MyEntity, List< MyEntity > > MyWeldingGroupsGetGroupNodesExtCallback = null
 
static MyWeldingGroupsGroupExistsDelegate MyWeldingGroupsGroupExistsExtCallback = null
 
static Action< MyEntityMyProceduralWorldGeneratorTrackEntityExtCallback = null
 
static Action< MyEntityCreateStandardRenderComponentsExtCallback = null
 
static Action< MyComponentContainer, MyObjectBuilderType, MyStringHash, MyObjectBuilder_ComponentContainerInitComponentsExtCallback = null
 
static Func< MyObjectBuilder_EntityBase, bool, MyEntityMyEntitiesCreateFromObjectBuilderExtCallback = null
 

Protected Member Functions

virtual bool ShouldBePowered ()
 
float CalculateRequiredPower ()
 
IMyDestroyableObject GetTargetDestroyable ()
 
MySlimBlock GetTargetBlock ()
 Action distance is taken into account More...
 
bool ReachesCube ()
 
virtual void StartLoopSound (bool effect)
 
virtual void StopLoopSound ()
 
virtual void StopSound ()
 
virtual MatrixD GetEffectMatrix (float muzzleOffset)
 
virtual MyLight CreatePrimaryLight ()
 
virtual MyLight CreateSecondaryLight ()
 
override void Closing ()
 
abstract void AddHudInfo ()
 
abstract void RemoveHudInfo ()
 
virtual void DrawHud ()
 
void UnmarkMissingComponent ()
 
void MarkMissingComponent (int componentIdx)
 
- Protected Member Functions inherited from VRage.Game.Entity.MyEntity
virtual bool CanBeAddedToRender ()
 
virtual MySyncComponentBase OnCreateSync ()
 
virtual void ClampToWorld ()
 
virtual void BeforeDelete ()
 
virtual void OnInventoryComponentAdded (MyInventoryBase inventory)
 
virtual void OnInventoryComponentRemoved (MyInventoryBase inventory)
 

Protected Attributes

float DEFAULT_REACH_DISTANCE = 1.8f
 Default reach distance of a tool. It is modified by "distance modifier" defined in definition of a tool. More...
 
string EffectId = "Welder"
 
float EffectScale = 1f
 
bool HasPrimaryEffect = true
 
bool HasSecondaryEffect = false
 
MyParticleEffectsIDEnum SecondaryEffectId = MyParticleEffectsIDEnum.Dummy
 
Vector4 SecondaryLightColor = new Vector4(0.4f, 0.5f, 1.0f, 1.0f)
 
float SecondaryLightFalloff = 2
 
float SecondaryLightRadius = 7
 
float SecondaryLightIntensityLower = 0.4f
 
float SecondaryLightIntensityUpper = 0.5f
 
float SecondaryLightGlareSize = GLARE_SIZE
 
int CurrentEffect = 0
 
MyEntity3DSoundEmitter m_soundEmitter
 
MyCharacter Owner
 
MyToolBase m_gunBase
 
bool m_activated
 
MyCasterComponent m_raycastComponent
 
MyHandItemDefinition m_handItemDef
 
MyPhysicalItemDefinition m_physItemDef
 
float m_speedMultiplier = 1f
 
float m_distanceMultiplier = 1f
 
- Protected Attributes inherited from VRage.Game.Entity.MyEntity
List< MyHudEntityParamsm_hudParams
 
MyModel m_modelCollision
 

Properties

bool IsDeconstructor [get]
 
int ToolCooldownMs [get]
 
int EffectStopMs [get]
 
MyToolBase GunBase [get]
 
Vector3I TargetCube [get]
 
bool HasHitBlock [get]
 
MyResourceSinkComponent SinkComp [get, set]
 
bool IsShooting [get]
 
bool ForceAnimationInsteadOfIK [get]
 
bool IsBlocking [get]
 
bool IsPreheated [get]
 
Vector3 SensorDisplacement [get, set]
 
MyInventory CharacterInventory [get]
 
MyObjectBuilder_PhysicalGunObject PhysicalObject [get, protected set]
 
float BackkickForcePerSecond [get]
 
float ShakeAmount [get, protected set]
 
bool HasCubeHighlight [get, set]
 
Color HighlightColor [get, set]
 
string HighlightMaterial [get, set]
 
bool EnabledInWorldRules [get]
 
MyDefinitionId DefinitionId [get]
 
IMyDestroyableObject m_targetDestroyable [get, set]
 
MyPhysicalItemDefinition PhysicalItemDefinition [get]
 
int CurrentAmmunition [get, set]
 
int CurrentMagazineAmmunition [get, set]
 
- Properties inherited from VRage.Game.Entity.MyEntity
MyEntityComponentContainer Components [get]
 
MyPositionComponentBase PositionComp [get, set]
 
MyRenderComponentBase Render [get, set]
 
MyGameLogicComponent GameLogic [get, set]
 
long EntityId [get, set]
 Entity id, can be set by subclasses (for example when using pool...) More...
 
MySyncComponentBase SyncObject [get, protected set]
 
MyModStorageComponentBase Storage [get, set]
 
bool Closed [get, protected set]
 
bool MarkedForClose [get, protected set]
 
virtual float MaxGlassDistSq [get]
 
bool Save [get, set]
 
bool IsPreview [get, set]
 
bool IsReadyForReplication [get, set]
 
MyEntityUpdateEnum NeedsUpdate [get, set]
 
MatrixD WorldMatrix [get, set]
 
MyEntity Parent [get]
 Gets or sets the parent. More...
 
MyHierarchyComponent< MyEntityHierarchy [get, set]
 
MyPhysicsComponentBase Physics [get, set]
 Gets the physic component of the entity. More...
 
bool InvalidateOnMove [get, set]
 
bool SyncFlag [get, set]
 
bool InScene [get, set]
 
virtual bool IsVolumetric [get]
 
virtual Vector3D LocationForHudMarker [get]
 
MyModel Model [get]
 
MyModel ModelCollision [get]
 
string DisplayName [get, set]
 
string DebugName [get]
 
Dictionary< string, MyEntitySubpartSubparts [get]
 
virtual bool IsCCDForProjectiles [get]
 
int InventoryCount [get]
 Iterate through inventories and return their count. More...
 
bool HasInventory [get]
 Returns true if this entity has got at least one inventory. Note that one aggregate inventory can contain zero simple inventories => zero will be returned even if GetInventoryBase() != null. More...
 
virtual String DisplayNameText [get, set]
 Display Name for GUI etc. Override in descendant classes. Usually used to display in terminal or inventory controls. More...
 
EntityFlags Flags [get, set]
 
- Properties inherited from VRage.ModAPI.IMyEntity
MyEntityComponentContainer Components [get]
 
MyPhysicsComponentBase Physics [get, set]
 
MyPositionComponentBase PositionComp [get, set]
 
MyRenderComponentBase Render [get, set]
 
MyEntityComponentBase GameLogic [get, set]
 
MyHierarchyComponentBase Hierarchy [get, set]
 
MySyncComponentBase SyncObject [get]
 
MyModStorageComponentBase Storage [get, set]
 Custom storage for mods. Shared with all mods. More...
 
EntityFlags Flags [get, set]
 
long EntityId [get, set]
 
string Name [get, set]
 
bool MarkedForClose [get]
 
bool Closed [get]
 
bool DebugAsyncLoading [get]
 
bool Save [get, set]
 
MyPersistentEntityFlags2 PersistentFlags [get, set]
 
MyEntityUpdateEnum NeedsUpdate [get, set]
 
IMyEntity Parent [get]
 
Matrix LocalMatrix [get, set]
 
bool NearFlag [get, set]
 
bool CastShadows [get, set]
 
bool FastCastShadowResolve [get, set]
 
bool NeedsResolveCastShadow [get, set]
 
float MaxGlassDistSq [get]
 
bool NeedsDraw [get, set]
 
bool NeedsDrawFromParent [get, set]
 
bool Transparent [get, set]
 
bool ShadowBoxLod [get, set]
 
bool SkipIfTooSmall [get, set]
 
bool Visible [get, set]
 
bool InScene [get, set]
 
bool InvalidateOnMove [get]
 
new VRageMath.MatrixD WorldMatrix [get, set]
 
VRageMath.MatrixD WorldMatrixInvScaled [get]
 
VRageMath.MatrixD WorldMatrixNormalizedInv [get]
 
bool IsVolumetric [get]
 
BoundingBox LocalAABB [get, set]
 
BoundingBox LocalAABBHr [get]
 
BoundingSphere LocalVolume [get, set]
 
Vector3 LocalVolumeOffset [get, set]
 
Vector3 LocationForHudMarker [get]
 
bool IsCCDForProjectiles [get]
 
string DisplayName [get, set]
 
- Properties inherited from VRage.Game.ModAPI.Ingame.IMyEntity
MyEntityComponentContainer Components [get]
 
long EntityId [get]
 
VRageMath.BoundingBoxD WorldAABB [get]
 
VRageMath.BoundingBoxD WorldAABBHr [get]
 
VRageMath.MatrixD WorldMatrix [get]
 
VRageMath.BoundingSphereD WorldVolume [get]
 
VRageMath.BoundingSphereD WorldVolumeHr [get]
 
- Properties inherited from Sandbox.Game.Entities.IMyHandheldGunObject< MyToolBase >
MyObjectBuilder_PhysicalGunObject PhysicalObject [get]
 
MyPhysicalItemDefinition PhysicalItemDefinition [get]
 
bool ForceAnimationInsteadOfIK [get]
 
bool IsBlocking [get]
 
int CurrentAmmunition [get, set]
 
int CurrentMagazineAmmunition [get, set]
 

Additional Inherited Members

- Public Attributes inherited from VRage.Game.Entity.MyEntity
MyDefinitionId DefinitionId = null
 
string Name
 
bool DebugAsyncLoading
 
DebugCreatedBy DebugCreatedBy
 
float m_massChangeForCollisions = 1f
 
Vector3D m_serverPosition = new Vector3D()
 
Quaternion m_serverOrientation = new Quaternion()
 
MatrixD m_serverWorldMatrix = new MatrixD()
 
Vector3 m_serverLinearVelocity
 
Vector3 m_serverAngularVelocity
 
bool m_positionResetFromServer
 
bool SentFromServer
 
int GamePruningProxyId = MyVRageConstants.PRUNING_PROXY_ID_UNITIALIZED
 
int TopMostPruningProxyId = MyVRageConstants.PRUNING_PROXY_ID_UNITIALIZED
 
bool StaticForPruningStructure = false
 
int TargetPruningProxyId = MyVRageConstants.PRUNING_PROXY_ID_UNITIALIZED
 
Dictionary< IMyReplicable, Action > ReadyForReplicationAction = new Dictionary<IMyReplicable, Action>()
 
- Static Protected Member Functions inherited from VRage.Game.Entity.MyEntity
static void UpdateNamedEmissiveParts (uint renderObjectId, string emissiveName, Color emissivePartColor, float emissivity)
 
- Events inherited from VRage.Game.Entity.MyEntity
Action< MyEntityOnMarkForClose
 This event may not be invoked at all, when calling MyEntities.CloseAll, marking is bypassed More...
 
Action< MyEntityOnClose
 
Action< MyEntityOnClosing
 
Action< MyEntityOnPhysicsChanged
 
- Events inherited from VRage.ModAPI.IMyEntity
Action< IMyEntityOnClose
 
Action< IMyEntityOnClosing
 
Action< IMyEntityOnMarkForClose
 
Action< IMyEntityOnPhysicsChanged
 

Detailed Description

Definition at line 31 of file MyEngineerToolBase.cs.

Constructor & Destructor Documentation

Sandbox.Game.Weapons.MyEngineerToolBase.MyEngineerToolBase ( int  cooldownMs)
inline

Definition at line 162 of file MyEngineerToolBase.cs.

Member Function Documentation

abstract void Sandbox.Game.Weapons.MyEngineerToolBase.AddHudInfo ( )
protectedpure virtual
virtual void Sandbox.Game.Weapons.MyEngineerToolBase.BeginFailReaction ( MyShootActionEnum  action,
MyGunStatusEnum  status 
)
inlinevirtual

Reimplemented in Sandbox.Game.Weapons.MyWelder.

Definition at line 734 of file MyEngineerToolBase.cs.

virtual void Sandbox.Game.Weapons.MyEngineerToolBase.BeginFailReactionLocal ( MyShootActionEnum  action,
MyGunStatusEnum  status 
)
inlinevirtual

Reimplemented in Sandbox.Game.Weapons.MyWelder.

Definition at line 737 of file MyEngineerToolBase.cs.

float Sandbox.Game.Weapons.MyEngineerToolBase.CalculateRequiredPower ( )
inlineprotected

Definition at line 225 of file MyEngineerToolBase.cs.

bool Sandbox.Game.Weapons.MyEngineerToolBase.CanBeDrawn ( )
inline

Definition at line 157 of file MyEngineerToolBase.cs.

virtual bool Sandbox.Game.Weapons.MyEngineerToolBase.CanShoot ( MyShootActionEnum  action,
long  shooter,
out MyGunStatusEnum  status 
)
inlinevirtual
override void Sandbox.Game.Weapons.MyEngineerToolBase.Closing ( )
inlineprotectedvirtual

Reimplemented from VRage.Game.Entity.MyEntity.

Definition at line 618 of file MyEngineerToolBase.cs.

virtual MyLight Sandbox.Game.Weapons.MyEngineerToolBase.CreatePrimaryLight ( )
inlineprotectedvirtual

Definition at line 507 of file MyEngineerToolBase.cs.

virtual MyLight Sandbox.Game.Weapons.MyEngineerToolBase.CreateSecondaryLight ( )
inlineprotectedvirtual

Definition at line 526 of file MyEngineerToolBase.cs.

Vector3 Sandbox.Game.Weapons.MyEngineerToolBase.DirectionToTarget ( Vector3D  target)
inline

Definition at line 729 of file MyEngineerToolBase.cs.

void Sandbox.Game.Weapons.MyEngineerToolBase.DrawHud ( IMyCameraController  camera,
long  playerId 
)
inline

Definition at line 649 of file MyEngineerToolBase.cs.

virtual void Sandbox.Game.Weapons.MyEngineerToolBase.DrawHud ( )
inlineprotectedvirtual
virtual void Sandbox.Game.Weapons.MyEngineerToolBase.EndShoot ( MyShootActionEnum  action)
inlinevirtual
int Sandbox.Game.Weapons.MyEngineerToolBase.GetAmmunitionAmount ( )
inline

Definition at line 748 of file MyEngineerToolBase.cs.

virtual MatrixD Sandbox.Game.Weapons.MyEngineerToolBase.GetEffectMatrix ( float  muzzleOffset)
inlineprotectedvirtual

Reimplemented in Sandbox.Game.Weapons.MyAngleGrinder.

Definition at line 444 of file MyEngineerToolBase.cs.

override MyObjectBuilder_EntityBase Sandbox.Game.Weapons.MyEngineerToolBase.GetObjectBuilder ( bool  copy = false)
inlinevirtual

Gets object builder from object.

Returns

Reimplemented from VRage.Game.Entity.MyEntity.

Definition at line 763 of file MyEngineerToolBase.cs.

MySlimBlock Sandbox.Game.Weapons.MyEngineerToolBase.GetTargetBlock ( )
inlineprotected

Action distance is taken into account

Definition at line 248 of file MyEngineerToolBase.cs.

IMyDestroyableObject Sandbox.Game.Weapons.MyEngineerToolBase.GetTargetDestroyable ( )
inlineprotected

Definition at line 240 of file MyEngineerToolBase.cs.

MyCubeGrid Sandbox.Game.Weapons.MyEngineerToolBase.GetTargetGrid ( )
inline

Definition at line 257 of file MyEngineerToolBase.cs.

void Sandbox.Game.Weapons.MyEngineerToolBase.Init ( MyObjectBuilder_EntityBase  builder,
MyDefinitionId  id 
)
inline

Definition at line 177 of file MyEngineerToolBase.cs.

void Sandbox.Game.Weapons.MyEngineerToolBase.Init ( MyObjectBuilder_EntityBase  builder,
MyHandItemDefinition  definition 
)
inline

Definition at line 181 of file MyEngineerToolBase.cs.

void Sandbox.Game.Weapons.MyEngineerToolBase.MarkMissingComponent ( int  componentIdx)
inlineprotected

Definition at line 702 of file MyEngineerToolBase.cs.

override void Sandbox.Game.Weapons.MyEngineerToolBase.OnAddedToScene ( object  source)
inlinevirtual

Called when [activated] which for entity means that was added to scene.

Parameters
sourceThe source of activation.

Reimplemented from VRage.Game.Entity.MyEntity.

Definition at line 267 of file MyEngineerToolBase.cs.

virtual void Sandbox.Game.Weapons.MyEngineerToolBase.OnControlAcquired ( MyCharacter  owner)
inlinevirtual

Reimplemented in Sandbox.Game.Weapons.MyBlockPlacerBase.

Definition at line 630 of file MyEngineerToolBase.cs.

virtual void Sandbox.Game.Weapons.MyEngineerToolBase.OnControlReleased ( )
inlinevirtual

Reimplemented in Sandbox.Game.Weapons.MyBlockPlacerBase.

Definition at line 642 of file MyEngineerToolBase.cs.

virtual void Sandbox.Game.Weapons.MyEngineerToolBase.OnFailShoot ( MyGunStatusEnum  status)
inlinevirtual

Definition at line 432 of file MyEngineerToolBase.cs.

override void Sandbox.Game.Weapons.MyEngineerToolBase.OnRemovedFromScene ( object  source)
inlinevirtual

Reimplemented from VRage.Game.Entity.MyEntity.

Definition at line 272 of file MyEngineerToolBase.cs.

bool Sandbox.Game.Weapons.MyEngineerToolBase.ReachesCube ( )
inlineprotected

Definition at line 262 of file MyEngineerToolBase.cs.

abstract void Sandbox.Game.Weapons.MyEngineerToolBase.RemoveHudInfo ( )
protectedpure virtual
virtual void Sandbox.Game.Weapons.MyEngineerToolBase.Shoot ( MyShootActionEnum  action,
Vector3  direction,
Vector3D overrideWeaponPos,
string  gunAction 
)
inlinevirtual
virtual void Sandbox.Game.Weapons.MyEngineerToolBase.ShootFailReactionLocal ( MyShootActionEnum  action,
MyGunStatusEnum  status 
)
inlinevirtual

Definition at line 740 of file MyEngineerToolBase.cs.

virtual bool Sandbox.Game.Weapons.MyEngineerToolBase.ShouldBePowered ( )
inlineprotectedvirtual

Reimplemented in Sandbox.Game.Weapons.MyWelder.

Definition at line 220 of file MyEngineerToolBase.cs.

virtual void Sandbox.Game.Weapons.MyEngineerToolBase.StartLoopSound ( bool  effect)
inlineprotectedvirtual
virtual void Sandbox.Game.Weapons.MyEngineerToolBase.StopLoopSound ( )
inlineprotectedvirtual
virtual void Sandbox.Game.Weapons.MyEngineerToolBase.StopSound ( )
inlineprotectedvirtual
void Sandbox.Game.Weapons.MyEngineerToolBase.UnmarkMissingComponent ( )
inlineprotected

Definition at line 696 of file MyEngineerToolBase.cs.

override void Sandbox.Game.Weapons.MyEngineerToolBase.UpdateAfterSimulation ( )
inlinevirtual

Reimplemented from VRage.Game.Entity.MyEntity.

Reimplemented in Sandbox.Game.Weapons.MyWelder.

Definition at line 280 of file MyEngineerToolBase.cs.

void Sandbox.Game.Weapons.MyEngineerToolBase.UpdateSensorPosition ( )
inline

Definition at line 335 of file MyEngineerToolBase.cs.

void Sandbox.Game.Weapons.MyEngineerToolBase.UpdateSoundEmitter ( )
inline

Definition at line 323 of file MyEngineerToolBase.cs.

Member Data Documentation

int Sandbox.Game.Weapons.MyEngineerToolBase.CurrentEffect = 0
protected

Definition at line 64 of file MyEngineerToolBase.cs.

float Sandbox.Game.Weapons.MyEngineerToolBase.DEFAULT_REACH_DISTANCE = 1.8f
protected

Default reach distance of a tool. It is modified by "distance modifier" defined in definition of a tool.

Definition at line 37 of file MyEngineerToolBase.cs.

string Sandbox.Game.Weapons.MyEngineerToolBase.EffectId = "Welder"
protected

Definition at line 49 of file MyEngineerToolBase.cs.

float Sandbox.Game.Weapons.MyEngineerToolBase.EffectScale = 1f
protected

Definition at line 50 of file MyEngineerToolBase.cs.

float Sandbox.Game.Weapons.MyEngineerToolBase.GLARE_SIZE = 0.068f
static

Definition at line 33 of file MyEngineerToolBase.cs.

bool Sandbox.Game.Weapons.MyEngineerToolBase.HasPrimaryEffect = true
protected

Definition at line 52 of file MyEngineerToolBase.cs.

bool Sandbox.Game.Weapons.MyEngineerToolBase.HasSecondaryEffect = false
protected

Definition at line 54 of file MyEngineerToolBase.cs.

bool Sandbox.Game.Weapons.MyEngineerToolBase.m_activated
protected

Definition at line 75 of file MyEngineerToolBase.cs.

float Sandbox.Game.Weapons.MyEngineerToolBase.m_distanceMultiplier = 1f
protected

Definition at line 155 of file MyEngineerToolBase.cs.

MyToolBase Sandbox.Game.Weapons.MyEngineerToolBase.m_gunBase
protected

Definition at line 71 of file MyEngineerToolBase.cs.

MyHandItemDefinition Sandbox.Game.Weapons.MyEngineerToolBase.m_handItemDef
protected

Definition at line 151 of file MyEngineerToolBase.cs.

MyPhysicalItemDefinition Sandbox.Game.Weapons.MyEngineerToolBase.m_physItemDef
protected

Definition at line 152 of file MyEngineerToolBase.cs.

MyCasterComponent Sandbox.Game.Weapons.MyEngineerToolBase.m_raycastComponent
protected

Definition at line 93 of file MyEngineerToolBase.cs.

MyEntity3DSoundEmitter Sandbox.Game.Weapons.MyEngineerToolBase.m_soundEmitter
protected

Definition at line 67 of file MyEngineerToolBase.cs.

float Sandbox.Game.Weapons.MyEngineerToolBase.m_speedMultiplier = 1f
protected

Definition at line 154 of file MyEngineerToolBase.cs.

MyCharacter Sandbox.Game.Weapons.MyEngineerToolBase.Owner
protected

Definition at line 69 of file MyEngineerToolBase.cs.

MyParticleEffectsIDEnum Sandbox.Game.Weapons.MyEngineerToolBase.SecondaryEffectId = MyParticleEffectsIDEnum.Dummy
protected

Definition at line 55 of file MyEngineerToolBase.cs.

Vector4 Sandbox.Game.Weapons.MyEngineerToolBase.SecondaryLightColor = new Vector4(0.4f, 0.5f, 1.0f, 1.0f)
protected

Definition at line 56 of file MyEngineerToolBase.cs.

float Sandbox.Game.Weapons.MyEngineerToolBase.SecondaryLightFalloff = 2
protected

Definition at line 57 of file MyEngineerToolBase.cs.

float Sandbox.Game.Weapons.MyEngineerToolBase.SecondaryLightGlareSize = GLARE_SIZE
protected

Definition at line 61 of file MyEngineerToolBase.cs.

float Sandbox.Game.Weapons.MyEngineerToolBase.SecondaryLightIntensityLower = 0.4f
protected

Definition at line 59 of file MyEngineerToolBase.cs.

float Sandbox.Game.Weapons.MyEngineerToolBase.SecondaryLightIntensityUpper = 0.5f
protected

Definition at line 60 of file MyEngineerToolBase.cs.

float Sandbox.Game.Weapons.MyEngineerToolBase.SecondaryLightRadius = 7
protected

Definition at line 58 of file MyEngineerToolBase.cs.

Property Documentation

float Sandbox.Game.Weapons.MyEngineerToolBase.BackkickForcePerSecond
get

Definition at line 134 of file MyEngineerToolBase.cs.

MyInventory Sandbox.Game.Weapons.MyEngineerToolBase.CharacterInventory
getprotected

Definition at line 129 of file MyEngineerToolBase.cs.

int Sandbox.Game.Weapons.MyEngineerToolBase.CurrentAmmunition
getset

Definition at line 760 of file MyEngineerToolBase.cs.

int Sandbox.Game.Weapons.MyEngineerToolBase.CurrentMagazineAmmunition
getset

Definition at line 761 of file MyEngineerToolBase.cs.

MyDefinitionId Sandbox.Game.Weapons.MyEngineerToolBase.DefinitionId
get

Definition at line 720 of file MyEngineerToolBase.cs.

int Sandbox.Game.Weapons.MyEngineerToolBase.EffectStopMs
get

Definition at line 42 of file MyEngineerToolBase.cs.

bool Sandbox.Game.Weapons.MyEngineerToolBase.EnabledInWorldRules
get

Definition at line 147 of file MyEngineerToolBase.cs.

bool Sandbox.Game.Weapons.MyEngineerToolBase.ForceAnimationInsteadOfIK
get

Definition at line 114 of file MyEngineerToolBase.cs.

MyToolBase Sandbox.Game.Weapons.MyEngineerToolBase.GunBase
get

Definition at line 72 of file MyEngineerToolBase.cs.

bool Sandbox.Game.Weapons.MyEngineerToolBase.HasCubeHighlight
getsetprotected

Definition at line 143 of file MyEngineerToolBase.cs.

bool Sandbox.Game.Weapons.MyEngineerToolBase.HasHitBlock
get

Definition at line 84 of file MyEngineerToolBase.cs.

Color Sandbox.Game.Weapons.MyEngineerToolBase.HighlightColor
getset

Definition at line 144 of file MyEngineerToolBase.cs.

string Sandbox.Game.Weapons.MyEngineerToolBase.HighlightMaterial
getset

Definition at line 145 of file MyEngineerToolBase.cs.

bool Sandbox.Game.Weapons.MyEngineerToolBase.IsBlocking
get

Definition at line 117 of file MyEngineerToolBase.cs.

bool Sandbox.Game.Weapons.MyEngineerToolBase.IsDeconstructor
get

Definition at line 39 of file MyEngineerToolBase.cs.

bool Sandbox.Game.Weapons.MyEngineerToolBase.IsPreheated
get

Definition at line 123 of file MyEngineerToolBase.cs.

bool Sandbox.Game.Weapons.MyEngineerToolBase.IsShooting
get

Definition at line 110 of file MyEngineerToolBase.cs.

IMyDestroyableObject Sandbox.Game.Weapons.MyEngineerToolBase.m_targetDestroyable
getset

Definition at line 753 of file MyEngineerToolBase.cs.

MyPhysicalItemDefinition Sandbox.Game.Weapons.MyEngineerToolBase.PhysicalItemDefinition
get

Definition at line 756 of file MyEngineerToolBase.cs.

MyObjectBuilder_PhysicalGunObject Sandbox.Game.Weapons.MyEngineerToolBase.PhysicalObject
getprotected set

Definition at line 131 of file MyEngineerToolBase.cs.

Vector3 Sandbox.Game.Weapons.MyEngineerToolBase.SensorDisplacement
getset

Definition at line 127 of file MyEngineerToolBase.cs.

float Sandbox.Game.Weapons.MyEngineerToolBase.ShakeAmount
getprotected set

Definition at line 139 of file MyEngineerToolBase.cs.

MyResourceSinkComponent Sandbox.Game.Weapons.MyEngineerToolBase.SinkComp
getset

Definition at line 97 of file MyEngineerToolBase.cs.

Vector3I Sandbox.Game.Weapons.MyEngineerToolBase.TargetCube
get

Definition at line 82 of file MyEngineerToolBase.cs.

int Sandbox.Game.Weapons.MyEngineerToolBase.ToolCooldownMs
get

Definition at line 40 of file MyEngineerToolBase.cs.


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