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

IMyStoreItem

Result of the creation of the store item.

Parameters

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

IMyStoreItem

Result of the creation of the store item.

Parameters

Summary

public IMyStoreItem CreateStoreItem(string prefabName, int amount, int pricePerUnit, int totalPcu)

Creates a store item that sells a Prefab / Grid.

Returns

IMyStoreItem

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

IMyStoreItem

Result of the creation of the store item.

Parameters