VRage.Game.ModAPI
MyDeviceBase
Assembly: VRage.Game.dll
public abstract class MyDeviceBase
Implements base abstract class for device
Properties
| Member | Description |
|---|---|
| InventoryItemId | Reference to the inventory item that this device originated from. Can be used to update the inventory item (when ammo changes etc...) |
Methods
| Member | Description |
|---|---|
| CanSwitchAmmoMagazine() | Determines whether this device can switch ammo |
| GetMuzzleLocalPosition() | Gets the muzzle local position |
| GetMuzzleWorldPosition() | Gets the muzzle world position |
| Init(MyObjectBuilder_DeviceBase) | Initialization of the device |
| SwitchAmmoMagazineToNextAvailable() | Switches to the next available ammo magazine |
| SwitchToNextAmmoMagazine() | Switches to the next ammo magazine |
Inheritors: