Show / Hide Table of Contents

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
Implements
IController
IViewController
IHasUniversalID
Namespace: Eco.Gameplay.StrangeCloudGameplay
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
Type Description
System.Collections.Generic.IEnumerable<StrangeItemInWorld>

TypeToCountCollected

Declaration
public ControllerDictionary<Type, int> TypeToCountCollected { get; set; }
Property Value
Type Description
ControllerDictionary<System.Type, System.Int32>

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
Type Description
Result

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
Type Description
Result

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
Type Name Description
WorkOrder workOrder

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
Type Name Description
WorkOrder workOrder

Events

PropertyChanged

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type Description
System.ComponentModel.PropertyChangedEventHandler

Implements

IController
IViewController
IHasUniversalID

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾