Show / Hide Table of Contents

Class PropertyManager

Inheritance
System.Object
PropertyManager
Implements
IContainsRegistrars
IServerPlugin
IDisplayablePlugin
IGUIPlugin
IHasDisplayTabs
IDisplayTab
ISaveablePlugin
IInitializablePlugin
IController
IViewController
IHasUniversalID
IMapEntryOverlay
IMinimapOption
IWorkerPlugin
System.ComponentModel.INotifyPropertyChanged
IThreadedPlugin
IShutdownablePlugin
Namespace: Eco.Gameplay.Property
Assembly: Eco.Gameplay.dll
Syntax
public class PropertyManager : Singleton<PropertyManager>, IContainsRegistrars, IServerPlugin, IDisplayablePlugin, IGUIPlugin, IHasDisplayTabs, IDisplayTab, ISaveablePlugin, IInitializablePlugin, IController, IViewController, IHasUniversalID, IMapEntryOverlay, IMinimapOption, IWorkerPlugin, INotifyPropertyChanged, IThreadedPlugin, IShutdownablePlugin

Constructors

PropertyManager()

Declaration
public PropertyManager()

Fields

DeedDestroyedEvent

Declaration
public static ThreadSafeAction<Deed, User> DeedDestroyedEvent
Field Value
Type Description
ThreadSafeAction<Deed, User>

DeedOwnerChangedEvent

Declaration
public static ThreadSafeAction<Deed> DeedOwnerChangedEvent
Field Value
Type Description
ThreadSafeAction<Deed>

Initializer

Declaration
public static Initializer Initializer
Field Value
Type Description
Initializer

PropertyClaimedOrUnclaimedEvent

Declaration
public static ThreadSafeAction<bool, Deed, User> PropertyClaimedOrUnclaimedEvent
Field Value
Type Description
ThreadSafeAction<System.Boolean, Deed, User>

PropertyPlotCreatedEvent

Declaration
public static ThreadSafeAction<PropertyPlot> PropertyPlotCreatedEvent
Field Value
Type Description
ThreadSafeAction<PropertyPlot>

PropertySettlementChanged

Declaration
public static ThreadSafeAction<Deed> PropertySettlementChanged
Field Value
Type Description
ThreadSafeAction<Deed>

Properties

CategoryTree

Declaration
public string CategoryTree { get; }
Property Value
Type Description
System.String

ControllerID

Declaration
public ref int ControllerID { get; }
Property Value
Type Description
System.Int32

Data

Declaration
public static PropertyData Data { get; }
Property Value
Type Description
PropertyData

Deeds

Declaration
public List<Deed> Deeds { get; }
Property Value
Type Description
System.Collections.Generic.List<Deed>

DeedSettlementInitializer

Declaration
public Initializer DeedSettlementInitializer { get; }
Property Value
Type Description
Initializer

IsOnByDefault

Declaration
public bool IsOnByDefault { get; }
Property Value
Type Description
System.Boolean

Map

Declaration
public Array2D<int> Map { get; }
Property Value
Type Description
Array2D<System.Int32>

MapEntries

Declaration
public Dictionary<int, MapEntry> MapEntries { get; set; }
Property Value
Type Description
System.Collections.Generic.Dictionary<System.Int32, MapEntry>

MarkedUpName

Declaration
public LocString MarkedUpName { get; }
Property Value
Type Description
LocString

Name

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String

OverburnedDeeds

Declaration
public ThreadSafeHashSet<Deed> OverburnedDeeds { get; }
Property Value
Type Description
ThreadSafeHashSet<Deed>

OverlayName

Declaration
public string OverlayName { get; }
Property Value
Type Description
System.String

Priority

Declaration
public float Priority { get; }
Property Value
Type Description
System.Single

PropertyValueManager

Declaration
public PropertyValueManager PropertyValueManager { get; }
Property Value
Type Description
PropertyValueManager

RentableDeeds

Declaration
public List<Deed> RentableDeeds { get; }
Property Value
Type Description
System.Collections.Generic.List<Deed>

Methods

AdjacentDeeds(User, PlotPos)

Declaration
public static IEnumerable<Deed> AdjacentDeeds(User user, PlotPos plotPos)
Parameters
Type Name Description
User user
PlotPos plotPos
Returns
Type Description
System.Collections.Generic.IEnumerable<Deed>

All()

Declaration
public static IEnumerable<PropertyPlot> All()
Returns
Type Description
System.Collections.Generic.IEnumerable<PropertyPlot>

AllDeedsOwnerIs(IAlias)

All deeds that are specifically owned by the specified alias. This is a slow operation.

Declaration
public static IEnumerable<Deed> AllDeedsOwnerIs(IAlias alias)
Parameters
Type Name Description
IAlias alias
Returns
Type Description
System.Collections.Generic.IEnumerable<Deed>

AllOwnedDeeds(User)

All deeds who have the specified user as part of the owners. This is a slow operation.

Declaration
public static IEnumerable<Deed> AllOwnedDeeds(User user)
Parameters
Type Name Description
User user
Returns
Type Description
System.Collections.Generic.IEnumerable<Deed>

ClearSingleton()

Declaration
public override void ClearSingleton()

CreateUnclaimAction(User, PlotPos, InventoryChangeSet, GameActionPack, Boolean, Boolean)

Declaration
public static Result CreateUnclaimAction(User user, PlotPos plotPos, InventoryChangeSet userInventoryChanges, GameActionPack pack, bool spawnClaims = true, bool deleteDeedIfEmpty = true)
Parameters
Type Name Description
User user
PlotPos plotPos
InventoryChangeSet userInventoryChanges
GameActionPack pack
System.Boolean spawnClaims
System.Boolean deleteDeedIfEmpty
Returns
Type Description
Result

DebugForceClaim(User, PlotPos)

Declaration
public static Deed DebugForceClaim(User actor, PlotPos plotPos)
Parameters
Type Name Description
User actor
PlotPos plotPos
Returns
Type Description
Deed

DoWork(CancellationToken)

Declaration
public Task DoWork(CancellationToken token)
Parameters
Type Name Description
System.Threading.CancellationToken token
Returns
Type Description
System.Threading.Tasks.Task

ForceClaim(Deed, User, PlotPos, Boolean)

Declaration
public static void ForceClaim(Deed deed, User actor, PlotPos plotPos, bool unclaimFirst = false)
Parameters
Type Name Description
Deed deed
User actor
PlotPos plotPos
System.Boolean unclaimFirst

ForceRemoveDeed(Deed, Player)

Declaration
public static Result ForceRemoveDeed(Deed deed, Player performer = null)
Parameters
Type Name Description
Deed deed
Player performer
Returns
Type Description
Result

ForceRemoveDeed(Deed, User)

Declaration
public static Result ForceRemoveDeed(Deed deed, User performer)
Parameters
Type Name Description
Deed deed
User performer
Returns
Type Description
Result

ForceRemoveFromDeed(PropertyPlot)

Declaration
public static void ForceRemoveFromDeed(PropertyPlot plot)
Parameters
Type Name Description
PropertyPlot plot

ForceResolveOverburdened()

Declaration
public void ForceResolveOverburdened()

ForceUnclaim(PlotPos, User, Boolean)

Declaration
public static void ForceUnclaim(PlotPos plotPos, User user = null, bool deleteDeedIfEmpty = true)
Parameters
Type Name Description
PlotPos plotPos
User user
System.Boolean deleteDeedIfEmpty

GetAllDeeds()

Declaration
public static IEnumerable<Deed> GetAllDeeds()
Returns
Type Description
System.Collections.Generic.IEnumerable<Deed>

GetCategory()

Declaration
public string GetCategory()
Returns
Type Description
System.String

GetDeed(PlotPos)

Declaration
public static Deed GetDeed(PlotPos plotPos)
Parameters
Type Name Description
PlotPos plotPos
Returns
Type Description
Deed

GetDeed(Int32)

Declaration
public static Deed GetDeed(int deedId)
Parameters
Type Name Description
System.Int32 deedId
Returns
Type Description
Deed

GetDeedID(Vector2i)

Declaration
public static int GetDeedID(Vector2i worldPos)
Parameters
Type Name Description
Vector2i worldPos
Returns
Type Description
System.Int32

GetDeedWorldPos(Vector2i)

Declaration
public static Deed GetDeedWorldPos(Vector2i worldPos)
Parameters
Type Name Description
Vector2i worldPos
Returns
Type Description
Deed

GetDisplayText()

Declaration
public string GetDisplayText()
Returns
Type Description
System.String

GetOrCreatePlotAtWorldPos(Vector2i)

Declaration
public static PropertyPlot GetOrCreatePlotAtWorldPos(Vector2i worldPos)
Parameters
Type Name Description
Vector2i worldPos
Returns
Type Description
PropertyPlot

GetPlotFromPlotPos(PlotPos)

Declaration
public static PropertyPlot GetPlotFromPlotPos(PlotPos plotPos)
Parameters
Type Name Description
PlotPos plotPos
Returns
Type Description
PropertyPlot

GetPlotFromWorldPos(Vector2i)

Declaration
public static PropertyPlot GetPlotFromWorldPos(Vector2i worldPos)
Parameters
Type Name Description
Vector2i worldPos
Returns
Type Description
PropertyPlot

GetStatus()

Declaration
public string GetStatus()
Returns
Type Description
System.String

Initialize(TimedTask)

Declaration
public void Initialize(TimedTask timer)
Parameters
Type Name Description
TimedTask timer

InitializeForSettlements()

Declaration
public void InitializeForSettlements()

InitializeRegistrars(TimedTask)

Declaration
public void InitializeRegistrars(TimedTask timer)
Parameters
Type Name Description
TimedTask timer

IsClaimed(PlotPos)

Declaration
public static bool IsClaimed(PlotPos pos)
Parameters
Type Name Description
PlotPos pos
Returns
Type Description
System.Boolean

MarkDirty()

Declaration
public void MarkDirty()

NearbyDeeds(User, PlotPos, Int32)

Declaration
public static IEnumerable<Deed> NearbyDeeds(User user, PlotPos plotPos, int range = 2)
Parameters
Type Name Description
User user
PlotPos plotPos
System.Int32 range
Returns
Type Description
System.Collections.Generic.IEnumerable<Deed>

NotifyRentablesChanged()

Declaration
public void NotifyRentablesChanged()

PropertyForAlias(IAlias)

Declaration
public static IEnumerable<PropertyPlot> PropertyForAlias(IAlias alias)
Parameters
Type Name Description
IAlias alias
Returns
Type Description
System.Collections.Generic.IEnumerable<PropertyPlot>

RemoveDeed(Deed, User, Boolean)

This removes the deed, when force parameter is true it forces the process avoiding prompts and laws.

Declaration
public static Result RemoveDeed(Deed deed, User performer, bool force)
Parameters
Type Name Description
Deed deed
User performer
System.Boolean force
Returns
Type Description
Result

Run()

Declaration
public void Run()

SaveAll()

Declaration
public void SaveAll()

SetClaimsAndUnclaims(Deed, User, IEnumerable<PlotPos>, IEnumerable<PlotPos>, Boolean)

Declaration
public static void SetClaimsAndUnclaims(Deed deed, User user, IEnumerable<PlotPos> toClaimPlotPos, IEnumerable<PlotPos> toUnclaimPlotPos, bool unclaimFirstToClaim = false)
Parameters
Type Name Description
Deed deed
User user
System.Collections.Generic.IEnumerable<PlotPos> toClaimPlotPos
System.Collections.Generic.IEnumerable<PlotPos> toUnclaimPlotPos
System.Boolean unclaimFirstToClaim

SetMapUpdateNeeded()

Declaration
public void SetMapUpdateNeeded()

ShutdownAsync()

Declaration
public Task ShutdownAsync()
Returns
Type Description
System.Threading.Tasks.Task

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String

TryClaimOrUnclaim(User, List<PlotPos>, List<PlotPos>, Deed)

Declaration
public void TryClaimOrUnclaim(User user, List<PlotPos> unclaimPos, List<PlotPos> claimPos, Deed deed)
Parameters
Type Name Description
User user
System.Collections.Generic.List<PlotPos> unclaimPos
System.Collections.Generic.List<PlotPos> claimPos
Deed deed

TryRemoveDeed(Deed, Player)

Declaration
public static Result TryRemoveDeed(Deed deed, Player performer = null)
Parameters
Type Name Description
Deed deed
Player performer
Returns
Type Description
Result

TryRemoveDeed(Deed, User)

Declaration
public static Result TryRemoveDeed(Deed deed, User performer)
Parameters
Type Name Description
Deed deed
User performer
Returns
Type Description
Result

TryUnclaim(GameActionPack, User, Inventory, PlotPos, Boolean, Boolean, Boolean)

Declaration
public static Result TryUnclaim(GameActionPack pack, User user, Inventory propertyClaimInv, PlotPos plotPos, bool autoPerform = true, bool deleteDeedIfEmpty = true, bool spawnClaims = true)
Parameters
Type Name Description
GameActionPack pack
User user
Inventory propertyClaimInv
PlotPos plotPos
System.Boolean autoPerform
System.Boolean deleteDeedIfEmpty
System.Boolean spawnClaims
Returns
Type Description
Result

Events

PropertyChanged

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

Implements

IContainsRegistrars
IServerPlugin
IDisplayablePlugin
IGUIPlugin
IHasDisplayTabs
IDisplayTab
ISaveablePlugin
IInitializablePlugin
IController
IViewController
IHasUniversalID
IMapEntryOverlay
IMinimapOption
IWorkerPlugin
System.ComponentModel.INotifyPropertyChanged
IThreadedPlugin
IShutdownablePlugin

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
☀
☾