CreateStoreItem
Summary
public IMyStoreItem CreateStoreItem(MyDefinitionId itemId, int amount, int pricePerUnit, StoreItemTypes storeItemType)
Creates a store item that allows more control over how the item is setup. This method is suitable for PhysicalItem types.
Returns
Result of the creation of the store item.
Parameters
- MyDefinitionId itemId
- int amount
- int pricePerUnit
- StoreItemTypes storeItemType
Summary
public IMyStoreItem CreateStoreItem(int amount, int pricePerUnit, StoreItemTypes storeItemType, ItemTypes itemType)
Creates a store item that allows more control over how the item is setup. This method is suitable for Hydrogen and Oxygen types.
Returns
Result of the creation of the store item.
Parameters
- int amount
- int pricePerUnit
- StoreItemTypes storeItemType
- ItemTypes itemType
Summary
public IMyStoreItem CreateStoreItem(string prefabName, int amount, int pricePerUnit, int totalPcu)
Creates a store item that sells a Prefab / Grid.
Returns
Result of the creation of the store item.
Parameters
Summary
public IMyStoreItem CreateStoreItem(MyObjectBuilder_StoreItem builder)
Creates a store item that allows more control over how the item is setup by using an object builder to initialize the item.
Returns
Result of the creation of the store item.
Parameters
- MyObjectBuilder_StoreItem builder