Space Engineers
Public Types | Public Member Functions | Protected Member Functions | Properties | Events | List of all members
Sandbox.Game.Entities.Cube.MyAssembler Class Reference
Inheritance diagram for Sandbox.Game.Entities.Cube.MyAssembler:
Sandbox.Game.Entities.Cube.MyProductionBlock Sandbox.ModAPI.IMyAssembler VRage.Network.IMyEventProxy Sandbox.Game.Entities.Cube.MyFunctionalBlock Sandbox.Game.GameSystems.Conveyors.IMyConveyorEndpointBlock Sandbox.ModAPI.IMyProductionBlock VRage.Game.ModAPI.Ingame.IMyInventoryOwner Sandbox.ModAPI.IMyProductionBlock Sandbox.ModAPI.Ingame.IMyAssembler VRage.Network.IMyEventOwner Sandbox.ModAPI.IMyFunctionalBlock Sandbox.Game.Entities.Cube.MyTerminalBlock Sandbox.ModAPI.IMyFunctionalBlock Sandbox.ModAPI.Ingame.IMyProductionBlock Sandbox.ModAPI.IMyFunctionalBlock Sandbox.ModAPI.Ingame.IMyProductionBlock Sandbox.ModAPI.Ingame.IMyProductionBlock Sandbox.ModAPI.Ingame.IMyFunctionalBlock Sandbox.ModAPI.Ingame.IMyFunctionalBlock Sandbox.ModAPI.IMyTerminalBlock Sandbox.ModAPI.Ingame.IMyFunctionalBlock Sandbox.ModAPI.Ingame.IMyFunctionalBlock Sandbox.ModAPI.IMyTerminalBlock Sandbox.ModAPI.Ingame.IMyFunctionalBlock Sandbox.Game.Entities.Cube.MySyncedBlock Sandbox.ModAPI.IMyTerminalBlock Sandbox.ModAPI.IMyTerminalBlock Sandbox.ModAPI.Ingame.IMyFunctionalBlock

Public Types

enum  StateEnum {
  StateEnum.Ok, StateEnum.Disabled, StateEnum.NotWorking, StateEnum.NotEnoughPower,
  StateEnum.MissingItems, StateEnum.InventoryFull
}
 

Public Member Functions

 MyAssembler ()
 
override void Init (MyObjectBuilder_CubeBlock objectBuilder, MyCubeGrid cubeGrid)
 
override MyObjectBuilder_CubeBlock GetObjectBuilderCubeBlock (bool copy=false)
 Returns block object builder which can be serialized or added to grid More...
 
override void UpdateBeforeSimulation100 ()
 Called each 100th frame if registered for update100 More...
 
void RequestDisassembleEnabled (bool newDisassembleEnabled)
 
void RequestRepeatEnabled (bool newRepeatEnable)
 
void RequestSlaveEnabled (bool slaveModeEnable)
 
void RequestDisassembleAll ()
 
void GetCoveyorInventoryOwners ()
 
bool CheckConveyorResources (MyFixedPoint?amount, MyDefinitionId contentId)
 
- Public Member Functions inherited from Sandbox.Game.Entities.Cube.MyProductionBlock
 MyProductionBlock ()
 
override void Init (MyObjectBuilder_CubeBlock objectBuilder, MyCubeGrid cubeGrid)
 
override MyObjectBuilder_CubeBlock GetObjectBuilderCubeBlock (bool copy=false)
 Returns block object builder which can be serialized or added to grid More...
 
bool CanUseBlueprint (MyBlueprintDefinitionBase blueprint)
 
void AddQueueItemRequest (MyBlueprintDefinitionBase blueprint, MyFixedPoint ammount, int idx=-1)
 Sends request to server to add item to queue. (Can be also called on server. In that case it will be local) More...
 
void MoveQueueItemRequest (uint srcItemId, int dstIdx)
 Sends request to server to move queue item. (Can be also called on server. In that case it will be local) More...
 
void RemoveQueueItemRequest (int idx, MyFixedPoint amount, float progress=0f)
 Sends request to server to remove item from queue. (Can be also called on server. In that case it will be local) More...
 
void InsertQueueItemRequest (int idx, MyBlueprintDefinitionBase blueprint)
 
void InsertQueueItemRequest (int idx, MyBlueprintDefinitionBase blueprint, MyFixedPoint amount)
 
QueueItem GetQueueItem (int idx)
 
QueueItem TryGetQueueItem (int idx)
 
QueueItem TryGetQueueItemById (uint itemId)
 
QueueItem TryGetFirstQueueItem ()
 
void ClearQueue (bool sendEvent=true)
 
void UpdateProduction ()
 
override void UpdateBeforeSimulation10 ()
 Called each 10th frame if registered for update10 More...
 
override MyInventoryBase GetInventoryBase (int index=0)
 Search for inventory component with maching index. More...
 
override void OnRemovedByCubeBuilder ()
 Method called when user removes a cube block from grid. Useful when block has to remove some other attached block (like motors). More...
 
override void OnDestroy ()
 Called when block is destroyed before being removed from grid More...
 
void InitializeConveyorEndpoint ()
 
void FixInputOutputInventories (MyInventoryConstraint inputInventoryConstraint, MyInventoryConstraint outputInventoryConstraint)
 
virtual Sandbox.Game.GameSystems.Conveyors.PullInformation GetPullInformation ()
 
virtual Sandbox.Game.GameSystems.Conveyors.PullInformation GetPushInformation ()
 
- Public Member Functions inherited from Sandbox.Game.Entities.Cube.MyFunctionalBlock
override void OnRemovedFromScene (object source)
 
 MyFunctionalBlock ()
 
override void Init (MyObjectBuilder_CubeBlock objectBuilder, MyCubeGrid cubeGrid)
 
override MyObjectBuilder_CubeBlock GetObjectBuilderCubeBlock (bool copy=false)
 Returns block object builder which can be serialized or added to grid More...
 
override void UpdateBeforeSimulation ()
 
virtual void UpdateSoundEmitters ()
 
override void SetDamageEffect (bool show)
 Start or stop dammage effect on cube block More...
 
override void StopDamageEffect ()
 
override void OnDestroy ()
 Called when block is destroyed before being removed from grid More...
 
virtual int GetBlockSpecificState ()
 
- Public Member Functions inherited from Sandbox.ModAPI.Ingame.IMyTerminalBlock
void RequestShowOnHUD (bool enable)
 
- 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)
 
- Public Member Functions inherited from Sandbox.Game.Entities.Cube.MyTerminalBlock
 MyTerminalBlock ()
 
override void Init (MyObjectBuilder_CubeBlock objectBuilder, MyCubeGrid cubeGrid)
 
override MyObjectBuilder_CubeBlock GetObjectBuilderCubeBlock (bool copy=false)
 Returns block object builder which can be serialized or added to grid More...
 
void NotifyTerminalValueChanged (ITerminalControl control)
 
void RefreshCustomInfo ()
 Raises AppendingCustomInfo so every subscriber can append custom info. More...
 
void SetCustomName (string text)
 
void UpdateCustomName (string text)
 
void SetCustomName (StringBuilder text)
 
void SetCustomNameEvent (String name)
 
void UpdateCustomName (StringBuilder text)
 
void RaisePropertiesChanged ()
 Call this when you change detailed info or other terminal properties More...
 
bool HasLocalPlayerAccess ()
 
virtual bool HasPlayerAccess (long playerId)
 
override List< MyHudEntityParamsGetHudParams (bool allowBlink)
 
override void UpdateBeforeSimulation10 ()
 Called each 10th frame if registered for update10 More...
 
void OpenWindow (bool isEditable, bool sync)
 
void OnClosedTextBox (ResultEnum result)
 
void OnClosedMessageBox (ResultEnum result)
 
override string ToString ()
 
Sandbox.ModAPI.Interfaces.ITerminalProperty GetProperty (string id)
 
void GetProperties (List< Sandbox.ModAPI.Interfaces.ITerminalProperty > resultList, Func< Sandbox.ModAPI.Interfaces.ITerminalProperty, bool > collect=null)
 
- Public Member Functions inherited from Sandbox.Game.Entities.Cube.MySyncedBlock
 MySyncedBlock ()
 
- Public Member Functions inherited from Sandbox.Game.Entities.MyCubeBlock
string GetOwnerFactionTag ()
 
VRage.Game.MyRelationsBetweenPlayerAndBlock GetUserRelationToOwner (long identityId)
 
VRage.Game.MyRelationsBetweenPlayerAndBlock GetPlayerRelationToOwner ()
 
bool FriendlyWithBlock (MyCubeBlock block)
 Whether the two blocks are friendly. This relation is base on their owners and is symmetrical More...
 
void UpdateIsWorking ()
 Force refresh working state. Call if you change block state that could affect its working status. More...
 
bool CanContinueBuild ()
 
IMyUseObject GetInteractiveObject (uint shapeKey)
 
void ReleaseInventory (MyInventory inventory, bool damageContent=false)
 
virtual void GetTerminalName (StringBuilder result)
 
 MyCubeBlock ()
 
void Init ()
 Reloads block model and interactive objects (doors, terminals, etc...) More...
 
void GetLocalMatrix (out Matrix localMatrix)
 
void CalcLocalMatrix (out Matrix localMatrix, out string currModel)
 
sealed override MyObjectBuilder_EntityBase GetObjectBuilder (bool copy=false)
 Gets object builder from object. More...
 
override void OnAddedToScene (object source)
 Called when [activated] which for entity means that was added to scene. More...
 
virtual bool ConnectionAllowed (ref Vector3I otherBlockPos, ref Vector3I faceNormal, MyCubeBlockDefinition def)
 Returns true if this block can connect to another block (of the given type) in the given position. This is called only if CheckConnectionAllowed == true. If this method would return true for any position, set CheckConnectionAllowed to false to avoid unnecessary overhead. It is the block's responsibility to call CubeGrid.UpdateBlockNeighbors every time the conditions that are checked by this method change. More...
 
virtual bool ConnectionAllowed (ref Vector3I otherBlockMinPos, ref Vector3I otherBlockMaxPos, ref Vector3I faceNormal, MyCubeBlockDefinition def)
 Whether connection is allowed to any of the positions between otherBlockMinPos and otherBlockMaxPos (both inclusive). Default implementation calls ConnectionAllowed(ref Vector3I otherBlockPos, ref Vector3I faceNormal) in a for loop. Override this in a subclass if this is not needed (for example, because all calls would return the same value for the same face) More...
 
virtual void UpdateVisual ()
 Updates block visuals (ie. block emissivity) More...
 
override void UpdateOnceBeforeFrame ()
 
virtual void OnBuildSuccess (long builtBy)
 Method called when a block has been built (after adding to the grid). This is called right after placing the block and it doesn't matter whether it is fully built (creative mode) or is only construction site. Note that it is not called for blocks which do not create FatBlock at that moment. More...
 
virtual void OnRegisteredToGridSystems ()
 Called at the end of registration from grid systems (after block has been registered). More...
 
virtual void OnUnregisteredFromGridSystems ()
 Called at the end of unregistration from grid systems (after block has been unregistered). More...
 
virtual void ContactPointCallback (ref MyGridContactInfo value)
 Return true when contact is valid More...
 
virtual void OnModelChange ()
 Called when the model referred by the block is changed More...
 
virtual string CalculateCurrentModel (out Matrix orientation)
 
void ChangeBlockOwnerRequest (long playerId, MyOwnershipShareModeEnum shareMode)
 
bool SetEffect (string effectName, bool stopPrevious=false)
 
bool SetEffect (string effectName, float parameter, bool stopPrevious=false, bool ignoreParameter=false, bool removeSameNameEffects=false)
 
int RemoveEffect (string effectName, int exception=-1)
 
override void UpdateAfterSimulation ()
 
void ChangeOwner (long owner, MyOwnershipShareModeEnum shareMode)
 
virtual void OnCubeGridChanged (MyCubeGrid oldGrid)
 Notifies about grid change with old grid in parameter (new grid is available in property). More...
 
virtual float GetMass ()
 
virtual BoundingBox GetGeometryLocalBox ()
 
DictionaryReader< string, MySlimBlockGetSubBlocks ()
 
bool TryGetSubBlock (string name, out MySlimBlock block)
 
MyUpgradableBlockComponent GetComponent ()
 
void AddUpgradeValue (string name, float defaultValue)
 Preferred way of registering a block for upgrades Adding directly to the dictionary can have unintended consequences when multiple mods are involved. More...
 
void CommitUpgradeValues ()
 
virtual void CreateRenderer (MyPersistentEntityFlags2 persistentFlags, Vector3 colorMaskHsv, object modelStorage)
 
MyFractureComponentCubeBlock GetFractureComponent ()
 
override void RefreshModels (string modelPath, string modelCollisionPath)
 
void Init (MyObjectBuilder_CubeBlock builder, IMyCubeGrid cubeGrid)
 Initializes block state from object builder 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...
 
 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 UpdatingStopped ()
 
virtual void UpdateAfterSimulation10 ()
 
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)
 
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 ()
 
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.Game.Components.IMyComponentOwner< MyIDModule >
bool GetComponent (out T component)
 Always implement explicitly, because of Obfuscation More...
 
- Public Member Functions inherited from Sandbox.ModAPI.Ingame.IMyProductionBlock
void RemoveQueueItemRequest (int itemIdx)
 

Protected Member Functions

override void CreateTerminalControls ()
 Control creation was moved from the static ctor into this static function. Control creation should still be static, but static ctors only ever get called once, which means we can never modify these controls (remove), since they will be removed forever. All classes that inherit MyTerminalBlock should put terminal control creation in a function called CreateTerminalControls, as MyTerminalControlFactory will properly ensure their base classes' controls are added in. I can't make this virtual because terminal controls don't deal with instances directly (this should probably change) More...
 
override void UpdateProduction (int timeDelta)
 Note: The child production block should update the IsProducing flag in this method More...
 
override void OnQueueChanged ()
 
override void RemoveFirstQueueItem (MyFixedPoint amount, float progress=0f)
 
override void RemoveQueueItem (int itemIdx)
 
override void InsertQueueItem (int idx, MyBlueprintDefinitionBase blueprint, MyFixedPoint amount)
 
override void MoveQueueItem (uint queueItemId, int targetIdx)
 
override float GetOperationalPowerConsumption ()
 
override void OnInventoryAddedToAggregate (Inventory.MyInventoryAggregate aggregate, MyInventoryBase inventory)
 
override void OnBeforeInventoryRemovedFromAggregate (Inventory.MyInventoryAggregate aggregate, MyInventoryBase inventory)
 
- Protected Member Functions inherited from Sandbox.Game.Entities.Cube.MyProductionBlock
virtual void UpdatePower ()
 
override bool CheckIsWorking ()
 
override void CreateTerminalControls ()
 Control creation was moved from the static ctor into this static function. Control creation should still be static, but static ctors only ever get called once, which means we can never modify these controls (remove), since they will be removed forever. All classes that inherit MyTerminalBlock should put terminal control creation in a function called CreateTerminalControls, as MyTerminalControlFactory will properly ensure their base classes' controls are added in. I can't make this virtual because terminal controls don't deal with instances directly (this should probably change) More...
 
void InitializeInventoryCounts (bool inputInventory=true)
 
void ClearQueueRequest ()
 
void RemoveFirstQueueItemAnnounce (MyFixedPoint amount, float progress=0f)
 Removes specified amount from the first item in the queue. This is called by subclasses (eg. assembler puts an item into its current production, refinery processes some ore, etc.) in their own specific situations. More...
 
void SwapQueue (ref List< QueueItem > otherQueue)
 Swaps this and other queue. This operation is not synchronized. Those using this method should take care of proper synchronization. More...
 
override void Closing ()
 
virtual void OnInventoryAddedToAggregate (MyInventoryAggregate aggregate, MyInventoryBase inventory)
 
virtual void OnBeforeInventoryRemovedFromAggregate (MyInventoryAggregate aggregate, MyInventoryBase inventory)
 
override void OnEnabledChanged ()
 
void OnStartProducing ()
 
void OnStopProducing ()
 
- Protected Member Functions inherited from Sandbox.Game.Entities.Cube.MyFunctionalBlock
override void CreateTerminalControls ()
 Control creation was moved from the static ctor into this static function. Control creation should still be static, but static ctors only ever get called once, which means we can never modify these controls (remove), since they will be removed forever. All classes that inherit MyTerminalBlock should put terminal control creation in a function called CreateTerminalControls, as MyTerminalControlFactory will properly ensure their base classes' controls are added in. I can't make this virtual because terminal controls don't deal with instances directly (this should probably change) More...
 
override bool CheckIsWorking ()
 
virtual void OnStartWorking ()
 
virtual void OnStopWorking ()
 
override void Closing ()
 
- Protected Member Functions inherited from Sandbox.Game.Entities.Cube.MyTerminalBlock
override void Closing ()
 
void RaiseVisibilityChanged ()
 Call this when you change the properties that modify the visibility of this block's controls More...
 
void RaiseShowOnHUDChanged ()
 
void RaiseShowInTerminalChanged ()
 
void RaiseShowInInventoryChanged ()
 
void RaiseShowInToolbarConfigChanged ()
 
override void OnOwnershipChanged ()
 
void FixSingleInventory ()
 
- Protected Member Functions inherited from Sandbox.Game.Entities.MyCubeBlock
virtual void OnConstraintAdded (GridLinkTypeEnum type, IMyEntity attachedEntity)
 Called by constraint owner More...
 
virtual void OnConstraintRemoved (GridLinkTypeEnum type, IMyEntity detachedEntity)
 Called by constraint owner More...
 
virtual void WorldPositionChanged (object source)
 
bool AllSubBlocksInitialized ()
 
void AddSubBlock (string dummyName, MySlimBlock subblock)
 
virtual void SubBlocksInitialized (bool spawned)
 Function called when all subblocks have been initialized. More...
 
virtual void OnSubBlockClosing (MySlimBlock subBlock)
 
bool RemoveSubBlock (string subBlockName, bool removeFromGrid=true)
 Removes subblock with the given name from the block. More...
 
- 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)
 

Properties

bool InventoryOwnersDirty [get, set]
 
bool IsSlave [get]
 
float CurrentProgress [get, set]
 Progress of currently built item in % (range 0 to 1). More...
 
StateEnum CurrentState [get]
 
bool RepeatEnabled [get]
 
bool DisassembleEnabled [get]
 
- Properties inherited from Sandbox.Game.Entities.Cube.MyProductionBlock
MyProductionBlockDefinition ProductionBlockDefinition [get]
 
MyInventoryAggregate InventoryAggregate [get, set]
 
MyInventory InputInventory [get, protected set]
 
MyInventory OutputInventory [get, protected set]
 
bool IsQueueEmpty [get]
 
bool IsProducing [get, protected set]
 Set by subclasses indicating whether they are working on something or not. Determines required power input. More...
 
IEnumerable< QueueItemQueue [get]
 Do not make changes to values in this enumerable. Consider it const reference. More...
 
uint NextItemId [get]
 
IMyConveyorEndpoint ConveyorEndpoint [get]
 
- Properties inherited from Sandbox.Game.Entities.Cube.MyFunctionalBlock
bool Enabled [get, set]
 
- Properties inherited from Sandbox.ModAPI.Ingame.IMyFunctionalBlock
bool Enabled [get]
 
- Properties inherited from Sandbox.ModAPI.Ingame.IMyTerminalBlock
string CustomName [get]
 
string CustomNameWithFaction [get]
 
string DetailedInfo [get]
 
string CustomInfo [get]
 
string CustomData [get, set]
 Gets or sets the Custom Data string. NOTE: Only use this for user input. For storing large mod configs, create your own MyModStorageComponent More...
 
bool ShowOnHUD [get]
 
- Properties inherited from Sandbox.ModAPI.Ingame.IMyCubeBlock
Sandbox.Common.ObjectBuilders.Definitions.SerializableDefinitionId BlockDefinition [get]
 
bool CheckConnectionAllowed [get]
 
IMyCubeGrid CubeGrid [get]
 
String DefinitionDisplayNameText [get]
 
float DisassembleRatio [get]
 
String DisplayNameText [get]
 
bool IsBeingHacked [get]
 
bool IsFunctional [get]
 
bool IsWorking [get]
 
VRageMath.Vector3I Max [get]
 
VRageMath.Vector3I Min [get]
 
int NumberInGrid [get]
 
VRageMath.MyBlockOrientation Orientation [get]
 
long OwnerId [get]
 
VRageMath.Vector3I Position [get]
 
- Properties inherited from VRage.Game.ModAPI.IMyCubeBlock
SerializableDefinitionId BlockDefinition [get]
 
bool CheckConnectionAllowed [get, set]
 Whether the grid should call the ConnectionAllowed method for this block (ConnectionAllowed checks mount points and other per-block requirements) More...
 
IMyCubeGrid CubeGrid [get]
 Grid in which the block is placed More...
 
String DefinitionDisplayNameText [get]
 Definition name More...
 
float DisassembleRatio [get]
 Is set in definition Ratio at which is the block disassembled (grinding) More...
 
String DisplayNameText [get]
 Translated block name More...
 
bool IsBeingHacked [get]
 
bool IsFunctional [get]
 True if integrity is above breaking threshold More...
 
bool IsWorking [get]
 True if block is able to do its work depening on block type (is functional, powered, enabled, etc...) More...
 
VRageMath.Vector3I Max [get]
 Maximum coordinates of grid cells occupied by this block More...
 
float Mass [get]
 Block mass More...
 
VRageMath.Vector3I Min [get]
 Minimum coordinates of grid cells occupied by this block More...
 
int NumberInGrid [get, set]
 Order in which were the blocks of same type added to grid Used in default display name More...
 
VRageMath.MyBlockOrientation Orientation [get]
 Returns block orientation in base 6 directions More...
 
long OwnerId [get]
 Id of player owning block (not steam Id) More...
 
VRageMath.Vector3I Position [get]
 Position in grid coordinates More...
 
Dictionary< string, float > UpgradeValues [get]
 Get all values changed by upgrade modules Should only be used as read-only More...
 
IMySlimBlock SlimBlock [get]
 Gets the SlimBlock associated with this block More...
 
- Properties inherited from VRage.Game.ModAPI.Ingame.IMyCubeBlock
SerializableDefinitionId BlockDefinition [get]
 
bool CheckConnectionAllowed [get]
 
IMyCubeGrid CubeGrid [get]
 
String DefinitionDisplayNameText [get]
 
float DisassembleRatio [get]
 
String DisplayNameText [get]
 
bool IsBeingHacked [get]
 
bool IsFunctional [get]
 
bool IsWorking [get]
 
VRageMath.Vector3I Max [get]
 
float Mass [get]
 Block mass More...
 
VRageMath.Vector3I Min [get]
 
int NumberInGrid [get]
 
VRageMath.MyBlockOrientation Orientation [get]
 
long OwnerId [get]
 
VRageMath.Vector3I Position [get]
 
- 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 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 Sandbox.Game.Entities.Cube.MyTerminalBlock
StringBuilder CustomName [get]
 Name in terminal More...
 
StringBuilder CustomNameWithFaction [get]
 
string CustomData [get, set]
 
bool ShowOnHUD [get, set]
 
bool ShowInTerminal [get, set]
 
bool ShowInInventory [get, set]
 
bool ShowInToolbarConfig [get, set]
 
StringBuilder DetailedInfo [get]
 Detailed text in terminal (on right side) More...
 
StringBuilder CustomInfo [get]
 Moddable part of detailed text in terminal. More...
 
- Properties inherited from Sandbox.Game.Entities.Cube.MySyncedBlock
Action< SyncBaseSyncPropertyChanged
 
- Properties inherited from Sandbox.Game.Entities.MyCubeBlock
new MyPhysicsBody Physics [get, set]
 
long OwnerId [get]
 
long BuiltBy [get]
 
MyResourceSinkComponent ResourceSink [get, protected set]
 
bool IsBeingHacked [get]
 
MyCubeBlockDefinition BlockDefinition [get]
 
Vector3I Min [get]
 
Vector3I Max [get]
 
MyBlockOrientation Orientation [get]
 
Vector3I Position [get]
 
MyCubeGrid CubeGrid [get]
 
MyUseObjectsComponentBase UseObjectsComponent [get]
 
bool CheckConnectionAllowed [get, set]
 
int NumberInGrid [get, set]
 
bool IsFunctional [get]
 Shortcut to component stack property. More...
 
virtual float DisassembleRatio [get]
 
bool IsWorking [get]
 
MyIDModule IDModule [get]
 
bool IsSubBlock [get]
 
string SubBlockName [get, set]
 Name of subblock (key in the owner's subblocks map). More...
 
MySlimBlock OwnerBlock [get, set]
 If the block is subblock then OwnerBlock is set to block which owns (spawns) subblocks (subgrids) More...
 
String DefinitionDisplayNameText [get]
 
bool ForceBlockDestructible [get]
 
Dictionary< string, float > UpgradeValues [get]
 
- Properties inherited from Sandbox.ModAPI.Ingame.IMyUpgradableBlock
uint UpgradeCount [get]
 number of upgrades applied More...
 
- 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 Sandbox.Game.GameSystems.Conveyors.IMyConveyorEndpointBlock
IMyConveyorEndpoint ConveyorEndpoint [get]
 
- Properties inherited from Sandbox.ModAPI.Ingame.IMyProductionBlock
bool IsProducing [get]
 
bool IsQueueEmpty [get]
 
uint NextItemId [get]
 
bool UseConveyorSystem [get]
 
- Properties inherited from VRage.Game.ModAPI.Ingame.IMyInventoryOwner
int InventoryCount [get]
 
long EntityId [get]
 
bool UseConveyorSystem [get, set]
 
bool HasInventory [get]
 
- Properties inherited from Sandbox.ModAPI.Ingame.IMyAssembler
bool DisassembleEnabled [get]
 

Events

Action< MyAssemblerCurrentProgressChanged
 
Action< MyAssemblerCurrentStateChanged
 
Action< MyAssemblerCurrentModeChanged
 
- Events inherited from Sandbox.Game.Entities.Cube.MyProductionBlock
Action StartedProducing
 
Action StoppedProducing
 
Action< MyProductionBlockQueueChanged
 
- Events inherited from Sandbox.Game.Entities.Cube.MyFunctionalBlock
Action< MyTerminalBlockEnabledChanged
 
- Events inherited from Sandbox.ModAPI.IMyFunctionalBlock
Action< IMyTerminalBlockEnabledChanged
 
- Events inherited from Sandbox.ModAPI.Ingame.IMyFunctionalBlock
Action< IMyTerminalBlockEnabledChanged
 
- Events inherited from Sandbox.ModAPI.Ingame.IMyTerminalBlock
Action< IMyTerminalBlockCustomNameChanged
 
Action< IMyTerminalBlockOwnershipChanged
 
Action< IMyTerminalBlockPropertiesChanged
 
Action< IMyTerminalBlockShowOnHUDChanged
 
Action< IMyTerminalBlockVisibilityChanged
 
- Events inherited from Sandbox.ModAPI.Ingame.IMyCubeBlock
Action< IMyCubeBlockIsWorkingChanged
 
- Events inherited from Sandbox.ModAPI.IMyTerminalBlock
Action< IMyTerminalBlockCustomNameChanged
 
Action< IMyTerminalBlockOwnershipChanged
 
Action< IMyTerminalBlockPropertiesChanged
 
Action< IMyTerminalBlockShowOnHUDChanged
 
Action< IMyTerminalBlockVisibilityChanged
 
Action< IMyTerminalBlock, StringBuilder > AppendingCustomInfo
 Event to append custom info. More...
 
- Events inherited from VRage.Game.ModAPI.IMyCubeBlock
Action< IMyCubeBlockIsWorkingChanged
 
Action OnUpgradeValuesChanged
 Event called when upgrade values are changed Either upgrades were built or destroyed, or they become damaged or unpowered More...
 
- Events inherited from VRage.ModAPI.IMyEntity
Action< IMyEntityOnClose
 
Action< IMyEntityOnClosing
 
Action< IMyEntityOnMarkForClose
 
Action< IMyEntityOnPhysicsChanged
 
- Events inherited from Sandbox.Game.Entities.Cube.MyTerminalBlock
Action< MyTerminalBlockCustomNameChanged
 
Action< MyTerminalBlockPropertiesChanged
 
Action< MyTerminalBlockOwnershipChanged
 
Action< MyTerminalBlockVisibilityChanged
 
Action< MyTerminalBlockShowOnHUDChanged
 
Action< MyTerminalBlockShowInTerminalChanged
 
Action< MyTerminalBlockShowInIventoryChanged
 
Action< MyTerminalBlockShowInToolbarConfigChanged
 
Action< MyTerminalBlock, StringBuilder > AppendingCustomInfo
 
- Events inherited from Sandbox.Game.Entities.MyCubeBlock
Action< MyCubeBlockIsWorkingChanged
 
Func< bool > CanContinueBuildCheck
 
Action OnUpgradeValuesChanged
 
- 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 Sandbox.ModAPI.IMyProductionBlock
Action StartedProducing
 
Action StoppedProducing
 
- Events inherited from Sandbox.ModAPI.Ingame.IMyProductionBlock
Action StartedProducing
 
Action StoppedProducing
 

Additional Inherited Members

- Static Public Member Functions inherited from Sandbox.Game.Entities.MyCubeBlock
static Vector3 GetBlockGridOffset (MyCubeBlockDefinition blockDefinition)
 Returns block offset in spawned grid. More...
 
static bool GetSubBlockDataFromDummy (MyCubeBlockDefinition ownerBlockDefinition, string dummyName, MyModelDummy dummy, bool useOffset, out MyCubeBlockDefinition subBlockDefinition, out MatrixD subBlockMatrix, out Vector3 dummyPosition)
 Returns subblock data from dummy, subblock matrix can be offset (according to useOffset parameter) so the dummy position output is also provided. More...
 
- Public Attributes inherited from Sandbox.Game.Entities.Cube.MyFunctionalBlock
MyEntity3DSoundEmitter m_soundEmitter = null
 
- Public Attributes inherited from Sandbox.Game.Entities.Cube.MyTerminalBlock
bool IsAccessibleForProgrammableBlock = true
 
- Public Attributes inherited from Sandbox.Game.Entities.Cube.MySyncedBlock
readonly SyncType SyncType
 
- Public Attributes inherited from Sandbox.Game.Entities.MyCubeBlock
bool IsBeingRemoved = false
 
bool MarkedToExplode = false
 
int HackAttemptTime = 0
 
MySlimBlock SlimBlock
 
bool IsSilenced = false
 
bool SilenceInChange = false
 
bool UsedUpdateEveryFrame = false
 
- 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 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
 
- Static Protected Member Functions inherited from Sandbox.Game.Entities.MyCubeBlock
static void UpdateEmissiveParts (uint renderObjectId, float emissivity, Color emissivePartColor, Color displayPartColor)
 
- Static Protected Member Functions inherited from VRage.Game.Entity.MyEntity
static void UpdateNamedEmissiveParts (uint renderObjectId, string emissiveName, Color emissivePartColor, float emissivity)
 
- Protected Attributes inherited from Sandbox.Game.Entities.Cube.MyProductionBlock
MySoundPair m_processSound = new MySoundPair()
 
List< QueueItemm_queue
 
readonly Sync< bool > m_useConveyorSystem
 
- Protected Attributes inherited from Sandbox.Game.Entities.Cube.MyFunctionalBlock
MySoundPair m_baseIdleSound = new MySoundPair()
 
MySoundPair m_actionSound = new MySoundPair()
 
- Protected Attributes inherited from Sandbox.Game.Entities.MyCubeBlock
List< MyCubeBlockEffectm_activeEffects = null
 
Dictionary< string, MySlimBlockSubBlocks
 Map from dummy name to subblock (subgrid, note that after grid split the subblock instance will be the same) More...
 
bool m_forceBlockDestructible
 
- Protected Attributes inherited from VRage.Game.Entity.MyEntity
List< MyHudEntityParamsm_hudParams
 
MyModel m_modelCollision
 
- Static Protected Attributes inherited from Sandbox.Game.Entities.Cube.MyProductionBlock
static Dictionary< MyDefinitionId, MyFixedPointm_tmpInventoryCounts = new Dictionary<MyDefinitionId, MyFixedPoint>()
 
- Static Protected Attributes inherited from Sandbox.Game.Entities.MyCubeBlock
static readonly string DUMMY_SUBBLOCK_ID = "subblock_"
 

Detailed Description

Definition at line 44 of file MyAssembler.cs.

Member Enumeration Documentation

Enumerator
Ok 
Disabled 
NotWorking 
NotEnoughPower 
MissingItems 
InventoryFull 

Definition at line 47 of file MyAssembler.cs.

Constructor & Destructor Documentation

Sandbox.Game.Entities.Cube.MyAssembler.MyAssembler ( )
inline

Definition at line 125 of file MyAssembler.cs.

Member Function Documentation

bool Sandbox.Game.Entities.Cube.MyAssembler.CheckConveyorResources ( MyFixedPoint amount,
MyDefinitionId  contentId 
)
inline

Definition at line 930 of file MyAssembler.cs.

override void Sandbox.Game.Entities.Cube.MyAssembler.CreateTerminalControls ( )
inlineprotectedvirtual

Control creation was moved from the static ctor into this static function. Control creation should still be static, but static ctors only ever get called once, which means we can never modify these controls (remove), since they will be removed forever. All classes that inherit MyTerminalBlock should put terminal control creation in a function called CreateTerminalControls, as MyTerminalControlFactory will properly ensure their base classes' controls are added in. I can't make this virtual because terminal controls don't deal with instances directly (this should probably change)

GR: Had to change this from static due to parallelization issues with multuple threads. Now it should run only once.

Reimplemented from Sandbox.Game.Entities.Cube.MyTerminalBlock.

Definition at line 133 of file MyAssembler.cs.

void Sandbox.Game.Entities.Cube.MyAssembler.GetCoveyorInventoryOwners ( )
inline

Definition at line 917 of file MyAssembler.cs.

override MyObjectBuilder_CubeBlock Sandbox.Game.Entities.Cube.MyAssembler.GetObjectBuilderCubeBlock ( bool  copy = false)
inlinevirtual

Returns block object builder which can be serialized or added to grid

Parameters
copySet if creating a copy of block
Returns
Block object builder

Reimplemented from Sandbox.Game.Entities.MyCubeBlock.

Definition at line 221 of file MyAssembler.cs.

override float Sandbox.Game.Entities.Cube.MyAssembler.GetOperationalPowerConsumption ( )
inlineprotectedvirtual

Reimplemented from Sandbox.Game.Entities.Cube.MyProductionBlock.

Definition at line 970 of file MyAssembler.cs.

override void Sandbox.Game.Entities.Cube.MyAssembler.Init ( MyObjectBuilder_CubeBlock  objectBuilder,
MyCubeGrid  cubeGrid 
)
inlinevirtual

Reimplemented from Sandbox.Game.Entities.MyCubeBlock.

Definition at line 153 of file MyAssembler.cs.

override void Sandbox.Game.Entities.Cube.MyAssembler.InsertQueueItem ( int  idx,
MyBlueprintDefinitionBase  blueprint,
MyFixedPoint  amount 
)
inlineprotectedvirtual

Reimplemented from Sandbox.Game.Entities.Cube.MyProductionBlock.

Definition at line 681 of file MyAssembler.cs.

override void Sandbox.Game.Entities.Cube.MyAssembler.MoveQueueItem ( uint  queueItemId,
int  targetIdx 
)
inlineprotectedvirtual

Reimplemented from Sandbox.Game.Entities.Cube.MyProductionBlock.

Definition at line 692 of file MyAssembler.cs.

override void Sandbox.Game.Entities.Cube.MyAssembler.OnBeforeInventoryRemovedFromAggregate ( Inventory.MyInventoryAggregate  aggregate,
MyInventoryBase  inventory 
)
inlineprotected

Definition at line 986 of file MyAssembler.cs.

override void Sandbox.Game.Entities.Cube.MyAssembler.OnInventoryAddedToAggregate ( Inventory.MyInventoryAggregate  aggregate,
MyInventoryBase  inventory 
)
inlineprotected

Definition at line 975 of file MyAssembler.cs.

override void Sandbox.Game.Entities.Cube.MyAssembler.OnQueueChanged ( )
inlineprotectedvirtual

Reimplemented from Sandbox.Game.Entities.Cube.MyProductionBlock.

Definition at line 654 of file MyAssembler.cs.

override void Sandbox.Game.Entities.Cube.MyAssembler.RemoveFirstQueueItem ( MyFixedPoint  amount,
float  progress = 0f 
)
inlineprotectedvirtual

Reimplemented from Sandbox.Game.Entities.Cube.MyProductionBlock.

Definition at line 667 of file MyAssembler.cs.

override void Sandbox.Game.Entities.Cube.MyAssembler.RemoveQueueItem ( int  itemIdx)
inlineprotectedvirtual

Reimplemented from Sandbox.Game.Entities.Cube.MyProductionBlock.

Definition at line 674 of file MyAssembler.cs.

void Sandbox.Game.Entities.Cube.MyAssembler.RequestDisassembleAll ( )
inline

Definition at line 807 of file MyAssembler.cs.

void Sandbox.Game.Entities.Cube.MyAssembler.RequestDisassembleEnabled ( bool  newDisassembleEnabled)
inline

Definition at line 770 of file MyAssembler.cs.

void Sandbox.Game.Entities.Cube.MyAssembler.RequestRepeatEnabled ( bool  newRepeatEnable)
inline

Definition at line 782 of file MyAssembler.cs.

void Sandbox.Game.Entities.Cube.MyAssembler.RequestSlaveEnabled ( bool  slaveModeEnable)
inline

Definition at line 794 of file MyAssembler.cs.

override void Sandbox.Game.Entities.Cube.MyAssembler.UpdateBeforeSimulation100 ( )
inlinevirtual

Called each 100th frame if registered for update100

Reimplemented from VRage.Game.Entity.MyEntity.

Definition at line 352 of file MyAssembler.cs.

override void Sandbox.Game.Entities.Cube.MyAssembler.UpdateProduction ( int  timeDelta)
inlineprotectedvirtual

Note: The child production block should update the IsProducing flag in this method

Implements Sandbox.Game.Entities.Cube.MyProductionBlock.

Definition at line 475 of file MyAssembler.cs.

Property Documentation

float Sandbox.Game.Entities.Cube.MyAssembler.CurrentProgress
getset

Progress of currently built item in % (range 0 to 1).

Definition at line 95 of file MyAssembler.cs.

StateEnum Sandbox.Game.Entities.Cube.MyAssembler.CurrentState
get

Definition at line 108 of file MyAssembler.cs.

bool Sandbox.Game.Entities.Cube.MyAssembler.DisassembleEnabled
get

Definition at line 741 of file MyAssembler.cs.

bool Sandbox.Game.Entities.Cube.MyAssembler.InventoryOwnersDirty
getset

Definition at line 80 of file MyAssembler.cs.

bool Sandbox.Game.Entities.Cube.MyAssembler.IsSlave
get

Definition at line 86 of file MyAssembler.cs.

bool Sandbox.Game.Entities.Cube.MyAssembler.RepeatEnabled
get

Definition at line 710 of file MyAssembler.cs.

Event Documentation

Action<MyAssembler> Sandbox.Game.Entities.Cube.MyAssembler.CurrentModeChanged

Definition at line 123 of file MyAssembler.cs.

Action<MyAssembler> Sandbox.Game.Entities.Cube.MyAssembler.CurrentProgressChanged

Definition at line 121 of file MyAssembler.cs.

Action<MyAssembler> Sandbox.Game.Entities.Cube.MyAssembler.CurrentStateChanged

Definition at line 122 of file MyAssembler.cs.


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