Class IPersistentExtensions
Inheritance
System.Object
IPersistentExtensions
Namespace: Eco.Gameplay.Items
Assembly: Eco.Gameplay.dll
Syntax
public static class IPersistentExtensions : Object
Methods
AssignWorldObjectPersistentData(IPersistentData, WorldObject)
Takes the data from an item and inserts it into the worldobject being placed.
Declaration
public static void AssignWorldObjectPersistentData(this IPersistentData pdata, WorldObject placedObject)
Parameters
Type | Name | Description |
---|---|---|
IPersistentData | pdata | |
WorldObject | placedObject |
ClearOnTrade(IPersistentData)
Declaration
public static void ClearOnTrade(this IPersistentData pdata)
Parameters
Type | Name | Description |
---|---|---|
IPersistentData | pdata |
CollectWorldObjectPersistentData(IPersistentData, WorldObject)
This will gather IPersistentData components from the object and store them into PersistentData as a ThreadSafeDictionary.
Declaration
public static void CollectWorldObjectPersistentData(this IPersistentData pdata, WorldObject placedObject)
Parameters
Type | Name | Description |
---|---|---|
IPersistentData | pdata | |
WorldObject | placedObject |
TryHandleClearAndComposeFeedback(IClearRequestHandler, Player, LocStringBuilder)
Triggers clear request handler and adds the result message to the provided string builder. Returns handler's bool result.
Declaration
public static bool TryHandleClearAndComposeFeedback(this IClearRequestHandler handler, Player player, LocStringBuilder feedback)
Parameters
Type | Name | Description |
---|---|---|
IClearRequestHandler | handler | |
Player | player | |
LocStringBuilder | feedback |
Returns
Type | Description |
---|---|
System.Boolean |