Class WorkableExtensions
Inheritance
System.Object
WorkableExtensions
Namespace: Eco.Gameplay.Economy.Common
Assembly: Eco.Gameplay.dll
Syntax
public static class WorkableExtensions : Object
Methods
DescribeWorkables(IEnumerable<Workable>)
Declaration
public static LocString DescribeWorkables(this IEnumerable<Workable> workablesToDescribe)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<Workable> | workablesToDescribe |
Returns
Type | Description |
---|---|
LocString |
MoveWorkables(IEnumerable<Workable>, ContainedWorkables, WorldObject, Int32)
Removes workables from their host containers and adds them to the provided one. Amount of entries to move can be capped.
Declaration
public static void MoveWorkables(this IEnumerable<Workable> workablesToMove, ContainedWorkables newContainer, WorldObject newHost, int maxEntriesToMove = -1)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<Workable> | workablesToMove | |
ContainedWorkables | newContainer | |
WorldObject | newHost | |
System.Int32 | maxEntriesToMove |