Class ContractBoardComponent
Inheritance
System.Object
ContractBoardComponent
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
[RequireComponent]
public class ContractBoardComponent : TrackPlacementComponent, ILinkable, IOwned, IHasSerializableID, IRPCAuthChecks, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IHasInteractions, IPersistentData, IHasClientControlledContainers, IController, IViewController, IHasUniversalID
Constructors
ContractBoardComponent()
Declaration
public ContractBoardComponent()
Properties
Availability
Declaration
public override WorldObjectComponentClientAvailability Availability { get; }
Property Value
Overrides
ContainedWorkables
Declaration
[NewTooltipChildren]
public ContainedWorkables ContainedWorkables { get; set; }
Property Value
Contracts
Declaration
public IEnumerable<Contract> Contracts { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<Contract> |
|
Data
Declaration
[NewTooltipChildren]
protected override object Data { get; set; }
Property Value
Type |
Description |
System.Object |
|
Overrides
TrackedObjects
Declaration
protected override IEnumerable<IProposable> TrackedObjects { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<IProposable> |
|
Overrides
Workables
Declaration
public IEnumerable<Workable> Workables { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<Workable> |
|
WorkParties
Declaration
public IEnumerable<WorkParty> WorkParties { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<WorkParty> |
|
Methods
AddContract(Player)
Declaration
public Task AddContract(Player player)
Parameters
Type |
Name |
Description |
Player |
player |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
AddExistingContract(Contract)
Declaration
public void AddExistingContract(Contract contract)
Parameters
AddExistingWorkParty(WorkParty)
Declaration
public void AddExistingWorkParty(WorkParty party)
Parameters
AddWorkParty(Player)
Declaration
public Task AddWorkParty(Player player)
Parameters
Type |
Name |
Description |
Player |
player |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
DebugAddContract(User, String)
Declaration
public Contract DebugAddContract(User user, string name)
Parameters
Type |
Name |
Description |
User |
user |
|
System.String |
name |
|
Returns
DebugAddWorkable(User, Workable)
Declaration
public void DebugAddWorkable(User user, Workable workable)
Parameters
Destroy()
Declaration
public override void Destroy()
Overrides
ForceAdd(IProposable)
Declaration
public override void ForceAdd(IProposable entry)
Parameters
Overrides
Initialize()
Declaration
public override void Initialize()
Overrides
InitializePersistentData()
Declaration
protected override void InitializePersistentData()
Overrides
RemoveContract(Contract)
Declaration
public void RemoveContract(Contract contract)
Parameters
TryGetFromStash(Player, Boolean, Boolean)
Checks if there are stashed entries and suggests to post them on this board.
Declaration
public Task<bool> TryGetFromStash(Player player, bool checkContracts = false, bool checkParties = false)
Parameters
Type |
Name |
Description |
Player |
player |
|
System.Boolean |
checkContracts |
|
System.Boolean |
checkParties |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
False if there are no stashed entries or if the player declined the suggestion.
|
UpdateContractList()
Declaration
public void UpdateContractList()
UpdateWorkPartyList()
Declaration
public void UpdateWorkPartyList()
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods