Class MyCargoContainerInventoryBagEntity
  
  Inventory bag spawned when character died, container breaks, or when entity from other inventory cannot be spawned then bag spawned with the item in its inventory.
    Inheritance
    System.Object
    
    MyCargoContainerInventoryBagEntity
   
  
  
  
  Assembly: Sandbox.Game.dll
  Syntax
  
    [MyEntityType]
public class MyCargoContainerInventoryBagEntity : MyEntity, IMyInventoryBag, IMyDestroyableObject, IMySyncedEntity, IMyParallelUpdateable, IMyEntity, IMyEntity, IMyEventProxy, IMyEventOwner
   
  Constructors
  
  
  
  
  MyCargoContainerInventoryBagEntity()
  
  
  Declaration
  
    public MyCargoContainerInventoryBagEntity()
   
  Fields
  
  
  
  CreationTime
  
  
  Declaration
  
  Field Value
  
    
      
        | Type | Description | 
    
    
      
        | System.Int64 |  | 
    
  
  Properties
  
  
  
  
  GeneratedGravity
  
  
  Declaration
  
    public Vector3 GeneratedGravity { get; set; }
   
  Property Value
  
  
  
  
  Integrity
  
  
  Declaration
  
    public float Integrity { get; set; }
   
  Property Value
  
    
      
        | Type | Description | 
    
    
      
        | System.Single |  | 
    
  
  
  
  
  SyncType
  
  
  Declaration
  
    public SyncType SyncType { get; set; }
   
  Property Value
  
    
      
        | Type | Description | 
    
    
      
        | VRage.Sync.SyncType |  | 
    
  
  
  
  
  UpdateFlags
  
  
  Declaration
  
    public MyParallelUpdateFlags UpdateFlags { get; }
   
  Property Value
  
  
  
  
  UseDamageSystem
  
  
  Declaration
  
    public bool UseDamageSystem { get; }
   
  Property Value
  
    
      
        | Type | Description | 
    
    
      
        | System.Boolean |  | 
    
  
  Methods
  
  
  
  
  Closing()
  
  
  Declaration
  
    protected override void Closing()
   
  Overrides
  
  
  
  
  DoDamage(Single, MyStringHash, Boolean, Int64, Nullable<MyStringHash>)
  
  
  Declaration
  
    public bool DoDamage(float damage, MyStringHash damageType, bool sync, long attackerId, Nullable<MyStringHash> extraInfo)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Single | damage |  | 
      
        | MyStringHash | damageType |  | 
      
        | System.Boolean | sync |  | 
      
        | System.Int64 | attackerId |  | 
      
        | System.Nullable<MyStringHash> | extraInfo |  | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Boolean |  | 
    
  
  
  
  
  GetObjectBuilder(Boolean)
  
  
  Declaration
  
    public override MyObjectBuilder_EntityBase GetObjectBuilder(bool copy = false)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Boolean | copy |  | 
    
  
  Returns
  
  Overrides
  
  
  
  
  GetPhysicsShape(Single, Single, out HkMassProperties)
  
  
  Declaration
  
    protected virtual HkShape GetPhysicsShape(float mass, float scale, out HkMassProperties massProperties)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Single | mass |  | 
      
        | System.Single | scale |  | 
      
        | Havok.HkMassProperties | massProperties |  | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | Havok.HkShape |  | 
    
  
  
  
  
  Init(MyObjectBuilder_EntityBase)
  
  
  Declaration
  
    public override void Init(MyObjectBuilder_EntityBase objectBuilder)
   
  Parameters
  
  Overrides
  
  
  
  
  OnAddedToScene(Object)
  
  
  Declaration
  
    public override void OnAddedToScene(object source)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Object | source |  | 
    
  
  Overrides
  
  
  
  
  OnDestroy()
  
  
  Declaration
  
  
  
  
  OnInventoryComponentAdded(MyInventoryBase)
  
  
  Declaration
  
    protected override void OnInventoryComponentAdded(MyInventoryBase inventory)
   
  Parameters
  
  Overrides
  
  
  
  
  OnInventoryComponentRemoved(MyInventoryBase)
  
  
  Declaration
  
    protected override void OnInventoryComponentRemoved(MyInventoryBase inventory)
   
  Parameters
  
  Overrides
  
  
  
  
  OnReplicationEnded()
  
  
  Declaration
  
    public override void OnReplicationEnded()
   
  Overrides
  
  
  
  
  OnReplicationStarted()
  
  
  Declaration
  
    public override void OnReplicationStarted()
   
  Overrides
  
  
  
  
  SendCloseRequest()
  
  
  Declaration
  
    public void SendCloseRequest()
   
  
  
  
  UpdateAfterSimulation100()
  
  
  Declaration
  
    public override void UpdateAfterSimulation100()
   
  Overrides
  
  
  
  
  UpdateAfterSimulationParallel()
  
  
  Declaration
  
    public void UpdateAfterSimulationParallel()
   
  
  
  
  UpdateBeforeSimulationParallel()
  
  
  Declaration
  
    public void UpdateBeforeSimulationParallel()
   
  
  
  
  UpdateOnceBeforeFrame()
  
  
  Declaration
  
    public override void UpdateOnceBeforeFrame()
   
  Overrides
  
  Explicit Interface Implementations
  
  
  
  
  IMyDestroyableObject.DoDamage(Single, MyStringHash, Boolean, Nullable<MyHitInfo>, Int64, Int64, Boolean, Nullable<MyStringHash>)
  
  
  Declaration
  
    bool IMyDestroyableObject.DoDamage(float damage, MyStringHash damageType, bool sync, Nullable<MyHitInfo> hitInfo, long attackerId, long realHitEntityId, bool shouldDetonateAmmo, Nullable<MyStringHash> extraInfo)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Single | damage |  | 
      
        | MyStringHash | damageType |  | 
      
        | System.Boolean | sync |  | 
      
        | System.Nullable<MyHitInfo> | hitInfo |  | 
      
        | System.Int64 | attackerId |  | 
      
        | System.Int64 | realHitEntityId |  | 
      
        | System.Boolean | shouldDetonateAmmo |  | 
      
        | System.Nullable<MyStringHash> | extraInfo |  | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Boolean |  | 
    
  
  
  
  
  IMyDestroyableObject.Integrity
  
  
  Declaration
  
    float IMyDestroyableObject.Integrity { get; }
   
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Single |  | 
    
  
  
  
  
  IMyDestroyableObject.UseDamageSystem
  
  
  Declaration
  
    bool IMyDestroyableObject.UseDamageSystem { get; }
   
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Boolean |  | 
    
  
  Implements
  
  
  
  
  
  Extension Methods