Class StrangeItemManagement
Class that tracks the items a given user has created in this world, when those items are dependent on strange cloud blueprints.
Inheritance
System.Object
StrangeItemManagement
Assembly: Eco.Gameplay.dll
Syntax
public class StrangeItemManagement : Object, IController, IViewController, IHasUniversalID
Constructors
StrangeItemManagement()
Contains the item name (minus any suffix like 'item' or 'recipe') mapping to the tracking of that item for this player.
Declaration
public StrangeItemManagement()
Properties
ControllerID
Declaration
public ref int ControllerID { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
ItemsForUser
Declaration
public IEnumerable<StrangeItemInWorld> ItemsForUser { get; }
Property Value
TypeToCountCollected
Declaration
public ControllerDictionary<Type, int> TypeToCountCollected { get; set; }
Property Value
Methods
CanMake(Item, Int32)
See if we can make more of this item type.
Declaration
public Result CanMake(Item item, int amountToMake)
Parameters
| Type |
Name |
Description |
| Item |
item |
|
| System.Int32 |
amountToMake |
|
Returns
CanMake(Recipe, Int32)
See if we can make more of this item type.
Declaration
public Result CanMake(Recipe recipe, int amountToMake)
Parameters
| Type |
Name |
Description |
| Recipe |
recipe |
|
| System.Int32 |
amountToMake |
|
Returns
GetPaidAndCreated()
Provides all the allowed items this player can place, along with how many they have created./
Declaration
public IEnumerable<(StrangeItemInWorld, int)> GetPaidAndCreated()
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<System.ValueTuple<StrangeItemInWorld, System.Int32>> |
|
Initialize(StrangeUser)
Declaration
public void Initialize(StrangeUser user)
Parameters
| Type |
Name |
Description |
| StrangeCloud.Service.Client.Contracts.StrangeUser |
user |
|
ManuallyIncrementCount(Item, Int32)
Mark an item type as created in the given quantity.
Declaration
public bool ManuallyIncrementCount(Item item, int amount)
Parameters
| Type |
Name |
Description |
| Item |
item |
|
| System.Int32 |
amount |
|
Returns
| Type |
Description |
| System.Boolean |
|
StrangeUserUpdated(StrangeUser)
Declaration
public void StrangeUserUpdated(StrangeUser user)
Parameters
| Type |
Name |
Description |
| StrangeCloud.Service.Client.Contracts.StrangeUser |
user |
|
WorkOrderCancelled(WorkOrder)
Refunds the strange items that were being used on this work order.
Declaration
public void WorkOrderCancelled(WorkOrder workOrder)
Parameters
WorkOrderStarted(WorkOrder)
Called when a recipe is made so that it can increment the count if blueprints are required.
Declaration
public void WorkOrderStarted(WorkOrder workOrder)
Parameters
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
| Type |
Description |
| System.ComponentModel.PropertyChangedEventHandler |
|
Implements
Extension Methods