Space Engineers
Public Member Functions | Protected Member Functions | Properties | List of all members
Sandbox.Game.Components.MyCraftingComponentBasic Class Reference
Inheritance diagram for Sandbox.Game.Components.MyCraftingComponentBasic:
Sandbox.Game.Components.MyCraftingComponentBase VRage.Network.IMyEventProxy VRage.Game.Components.MyGameLogicComponent VRage.Network.IMyEventProxy VRage.Network.IMyEventOwner VRage.Game.Components.MyEntityComponentBase VRage.Network.IMyEventOwner VRage.Game.Components.MyComponentBase

Public Member Functions

 MyCraftingComponentBasic ()
 
override void Init (MyComponentDefinitionBase definition)
 
override bool IsSerialized ()
 Tells the component container serializer whether this component should be saved More...
 
override void Deserialize (MyObjectBuilder_ComponentBase builder)
 
override MyObjectBuilder_ComponentBase Serialize (bool copy=false)
 
override VRage.ObjectBuilders.MyObjectBuilder_EntityBase GetObjectBuilder (bool copy=false)
 
override void UpdateAfterSimulation100 ()
 
override void OnAddedToContainer ()
 Gets called after the container of this component changes More...
 
- Public Member Functions inherited from Sandbox.Game.Components.MyCraftingComponentBase
virtual void GetInsertedOperatingItems (List< MyPhysicalInventoryItem > itemsList)
 
virtual bool IsOperatingItem (MyPhysicalInventoryItem item)
 
virtual bool ContainsOperatingItem (MyPhysicalInventoryItem item)
 
virtual MyFixedPoint GetOperatingItemRemovableAmount (MyPhysicalInventoryItem item)
 
MyBlueprintToProduce GetItemToProduce (int index)
 
void StartProduction (long senderEntityId)
 
void StopProduction (long senderEntityId)
 
void ClearItemsToProduce (long senderEntityId)
 
bool CanUseBlueprint (MyBlueprintDefinitionBase blueprint)
 
void AddItemToProduce (MyFixedPoint amount, MyBlueprintDefinitionBase blueprint, long senderEntityId)
 
void AddItemToRepair (MyFixedPoint amount, MyBlueprintDefinitionBase blueprint, long senderEntityId, uint inventoryItemId, MyObjectBuilderType inventoryItemType, MyStringHash inventoryItemSubtypeId)
 
void RemoveItemToProduce (MyFixedPoint amount, MyBlueprintDefinitionBase blueprint, long senderEntityId, int itemId=-1)
 
void RemoveItemToProduce (MyFixedPoint amount, MyBlueprintToProduce blueprintInProduction, long senderEntityId)
 
MyFixedPoint MaxProducableAmount (MyBlueprintDefinitionBase blueprintDefinition, bool raiseMissingRequiredItemEvent=false)
 
MyBlueprintToProduce TryGetItemToProduce (MyBlueprintDefinitionBase blueprint)
 
MyRepairBlueprintToProduce TryGetItemToRepair (uint inventoryItemId, MyObjectBuilderType inventoryItemType, MyStringHash inventoryItemSubtypeId)
 
void InsertOperatingItem (MyPhysicalInventoryItem item, long senderEntityId)
 
void RemoveOperatingItem (MyPhysicalInventoryItem item, MyFixedPoint amount, long senderEntityId)
 
virtual void UpdateCurrentItemStatus (float statusDelta)
 
MyBlueprintToProduce GetCurrentItemInProduction ()
 
void AcquireLockRequest (long entityId)
 
void ReleaseLockRequest (long entityId)
 
override void Close ()
 
override void Deserialize (VRage.Game.ObjectBuilders.ComponentSystem.MyObjectBuilder_ComponentBase builder)
 
- Public Member Functions inherited from VRage.Game.Components.MyGameLogicComponent
virtual void UpdateOnceBeforeFrame ()
 
virtual void UpdateBeforeSimulation ()
 
virtual void UpdateBeforeSimulation10 ()
 
virtual void UpdateBeforeSimulation100 ()
 
virtual void UpdateAfterSimulation ()
 
virtual void UpdateAfterSimulation10 ()
 
virtual void UpdatingStopped ()
 
virtual void Init (MyObjectBuilder_EntityBase objectBuilder)
 
virtual void MarkForClose ()
 
- Public Member Functions inherited from VRage.Game.Components.MyEntityComponentBase
override void OnAddedToContainer ()
 Gets called after the container of this component changes More...
 
override void OnBeforeRemovedFromContainer ()
 Gets called before the removal of this component from a container More...
 
- Public Member Functions inherited from VRage.Game.Components.MyComponentBase
virtual void SetContainer (MyComponentContainer container)
 Sets the container of this component. Note that the component is not added to the container here! Therefore, use MyComponentContainer.Add(...) method and it will in turn call this method. Actually, you should seldom have the need to call this method yourself. More...
 
virtual T GetAs< T > ()
 
virtual void OnAddedToScene ()
 CH: TOOD: Be careful! This does not get called if the component is added to a container that is in the scene already! More...
 
virtual void OnRemovedFromScene ()
 CH: TOOD: Be careful! This does not get called if the component is removed from a container that is still in the scene! More...
 

Protected Member Functions

override void UpdateProduction_Implementation ()
 
override void StartProduction_Implementation ()
 
override void StopProduction_Implementation ()
 
- Protected Member Functions inherited from Sandbox.Game.Components.MyCraftingComponentBase
virtual void InsertOperatingItem_Implementation (MyPhysicalInventoryItem item)
 
virtual void RemoveOperatingItem_Implementation (MyPhysicalInventoryItem item, MyFixedPoint amount)
 
virtual void StopOperating_Implementation ()
 
virtual void UpdateOperatingLevel ()
 
void RaiseEvent_MissingRequiredItem (MyBlueprintDefinitionBase blueprint, MyBlueprintDefinitionBase.Item missingItem)
 
void RaiseEvent_InventoryIsFull ()
 
void OnBlueprintProduced (MyBlueprintDefinitionBase blueprint, MyFixedPoint amount)
 
void StartProduction ()
 
void StopProduction ()
 
void ClearItemsToProduce ()
 
void RemovePrereqItemsFromInventory (MyBlueprintDefinitionBase definition, MyFixedPoint amountMult)
 
virtual void AddProducedItemToInventory (MyBlueprintDefinitionBase definition, MyFixedPoint amountMult)
 
IMyInventoryItem CreateInventoryItem (MyDefinitionId itemDefinition, MyFixedPoint amount)
 
IMyInventoryItem CreateInventoryBlockItem (MyDefinitionId blockDefinition, MyFixedPoint amount)
 
MyFixedPoint MaxAmountToFitInventory (MyBlueprintDefinitionBase definition)
 
void RemoveOperatingItem (MyPhysicalInventoryItem item, MyFixedPoint amount)
 
void RaiseEvent_OperatingChanged ()
 
void StopOperating ()
 
void RaiseEvent_ProductionChanged ()
 
void SelectItemToProduction ()
 
void UpdateCurrentItem ()
 

Properties

MySoundPair ActionSound [get, set]
 
override string ComponentTypeDebugString [get]
 
override string DisplayNameText [get]
 
override bool RequiresItemsToOperate [get]
 
override bool CanOperate [get]
 
- Properties inherited from Sandbox.Game.Components.MyCraftingComponentBase
bool IsProductionDone [get]
 
List< MyBlueprintClassDefinitionAvailableBlueprintClasses [get]
 
int BlueprintsToProduceCount [get]
 
abstract String DisplayNameText [get]
 
abstract bool RequiresItemsToOperate [get]
 
virtual String OperatingItemsDisplayNameText [get]
 
abstract bool CanOperate [get]
 
virtual float OperatingItemsLevel [get]
 
virtual bool AcceptsOperatingItems [get]
 
virtual float AvailableOperatingSpace [get]
 
bool IsProducing [get]
 
float CurrentItemStatus [get]
 
bool IsLocked [get]
 
long LockedByEntityId [get]
 
List< MyBlueprintToProduceItemsInProduction [get]
 
- Properties inherited from VRage.Game.Components.MyGameLogicComponent
MyEntityUpdateEnum NeedsUpdate [get, set]
 
bool Closed [get, protected set]
 
bool MarkedForClose [get, protected set]
 
override string ComponentTypeDebugString [get]
 
- Properties inherited from VRage.Game.Components.MyEntityComponentBase
MyEntityComponentContainer Container [get]
 
IMyEntity Entity [get]
 
abstract string ComponentTypeDebugString [get]
 Name of the base component type for debug purposes (e.g.: "Position") More...
 
- Properties inherited from VRage.Game.Components.MyComponentBase
MyComponentContainer ContainerBase [get]
 This cannot be named Container to not conflict with the definition of Container in MyEntityComponentBase. More...
 

Additional Inherited Members

- Protected Attributes inherited from Sandbox.Game.Components.MyCraftingComponentBase
List< MyBlueprintClassDefinitionm_blueprintClasses = new List<MyBlueprintClassDefinition>()
 
int m_currentItem = -1
 
float m_currentItemStatus
 
float m_lastItemStatus
 
MyFixedPoint m_currentProductionAmount = 1
 
int m_elapsedTimeMs = 0
 
float m_craftingSpeedMultiplier = 1.0f
 
- Events inherited from Sandbox.Game.Components.MyCraftingComponentBase
Action< MyCraftingComponentBase, MyBlueprintDefinitionBase, MyFixedPointBlueprintProduced
 
Action< MyCraftingComponentBase, MyBlueprintDefinitionBase, MyBlueprintDefinitionBase.ItemMissingRequiredItem
 
Action< MyCraftingComponentBaseInventoryIsFull
 
Action< MyCraftingComponentBase, MyBlueprintToProduceProductionChanged
 
Action< MyCraftingComponentBaseOperatingChanged
 
Action LockAcquired
 
Action LockReleased
 
- Events inherited from VRage.Game.Components.MyEntityComponentBase
static Action< MyEntityComponentBaseOnAfterAddedToContainer
 
Action< MyEntityComponentBaseBeforeRemovedFromContainer
 

Detailed Description

Definition at line 22 of file MyCraftingComponentBasic.cs.

Constructor & Destructor Documentation

Sandbox.Game.Components.MyCraftingComponentBasic.MyCraftingComponentBasic ( )
inline

Definition at line 30 of file MyCraftingComponentBasic.cs.

Member Function Documentation

override void Sandbox.Game.Components.MyCraftingComponentBasic.Deserialize ( MyObjectBuilder_ComponentBase  builder)
inlinevirtual

Reimplemented from VRage.Game.Components.MyComponentBase.

Definition at line 117 of file MyCraftingComponentBasic.cs.

override VRage.ObjectBuilders.MyObjectBuilder_EntityBase Sandbox.Game.Components.MyCraftingComponentBasic.GetObjectBuilder ( bool  copy = false)
inlinevirtual
override void Sandbox.Game.Components.MyCraftingComponentBasic.Init ( MyComponentDefinitionBase  definition)
inlinevirtual

Reimplemented from VRage.Game.Components.MyComponentBase.

Definition at line 34 of file MyCraftingComponentBasic.cs.

override bool Sandbox.Game.Components.MyCraftingComponentBasic.IsSerialized ( )
inlinevirtual

Tells the component container serializer whether this component should be saved

Returns

Reimplemented from VRage.Game.Components.MyComponentBase.

Definition at line 112 of file MyCraftingComponentBasic.cs.

override void Sandbox.Game.Components.MyCraftingComponentBasic.OnAddedToContainer ( )
inlinevirtual

Gets called after the container of this component changes

Reimplemented from VRage.Game.Components.MyComponentBase.

Definition at line 201 of file MyCraftingComponentBasic.cs.

override MyObjectBuilder_ComponentBase Sandbox.Game.Components.MyCraftingComponentBasic.Serialize ( bool  copy = false)
inlinevirtual

Reimplemented from Sandbox.Game.Components.MyCraftingComponentBase.

Definition at line 126 of file MyCraftingComponentBasic.cs.

override void Sandbox.Game.Components.MyCraftingComponentBasic.StartProduction_Implementation ( )
inlineprotectedvirtual

Reimplemented from Sandbox.Game.Components.MyCraftingComponentBase.

Definition at line 179 of file MyCraftingComponentBasic.cs.

override void Sandbox.Game.Components.MyCraftingComponentBasic.StopProduction_Implementation ( )
inlineprotectedvirtual

Reimplemented from Sandbox.Game.Components.MyCraftingComponentBase.

Definition at line 193 of file MyCraftingComponentBasic.cs.

override void Sandbox.Game.Components.MyCraftingComponentBasic.UpdateAfterSimulation100 ( )
inlinevirtual

Reimplemented from VRage.Game.Components.MyGameLogicComponent.

Definition at line 158 of file MyCraftingComponentBasic.cs.

override void Sandbox.Game.Components.MyCraftingComponentBasic.UpdateProduction_Implementation ( )
inlineprotectedvirtual

Property Documentation

MySoundPair Sandbox.Game.Components.MyCraftingComponentBasic.ActionSound
getset

Definition at line 28 of file MyCraftingComponentBasic.cs.

override bool Sandbox.Game.Components.MyCraftingComponentBasic.CanOperate
get

Definition at line 147 of file MyCraftingComponentBasic.cs.

override string Sandbox.Game.Components.MyCraftingComponentBasic.ComponentTypeDebugString
get

Definition at line 108 of file MyCraftingComponentBasic.cs.

override string Sandbox.Game.Components.MyCraftingComponentBasic.DisplayNameText
get

Definition at line 134 of file MyCraftingComponentBasic.cs.

override bool Sandbox.Game.Components.MyCraftingComponentBasic.RequiresItemsToOperate
get

Definition at line 142 of file MyCraftingComponentBasic.cs.


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