Show / Hide Table of Contents

Class ContractBoardComponent

Inheritance
System.Object
WorldObjectComponent
TrackPlacementComponent
ContractBoardComponent
Implements
ILinkable
IOwned
IHasSerializableID
IRPCAuthChecks
System.ComponentModel.INotifyPropertyChanged
IThreadSafeSubscriptions
ISubscriptions<ThreadSafeSubscriptions>
ISubscriptions
IHasInteractions
IPersistentData
IHasClientControlledContainers
IController
IViewController
IHasUniversalID
Inherited Members
TrackPlacementComponent.Contains(IProposable)
TrackPlacementComponent.PostInitialize()
TrackPlacementComponent.OnPickup(Player)
TrackPlacementComponent.SetHost(WorldObject)
TrackPlacementComponent.CheckValidity()
TrackPlacementComponent.CheckValidity(Boolean)
TrackPlacementComponent.PersistentData
WorldObjectComponent.IsRPCAuthorized(IWorldObserver, AccessType, Object[])
WorldObjectComponent.OnCreate()
WorldObjectComponent.Tick()
WorldObjectComponent.LateTick()
WorldObjectComponent.TryPickup(Player, InventoryChangeSet, Inventory, Boolean)
WorldObjectComponent.OnBeforeObjectMoved()
WorldObjectComponent.OnAfterObjectMoved()
WorldObjectComponent.OnLinkClicked(TooltipOrigin, TooltipClickContext, User)
WorldObjectComponent.UILinkContent()
WorldObjectComponent.Parent
WorldObjectComponent.Name
WorldObjectComponent.IconName
WorldObjectComponent.ForceActiveTab
WorldObjectComponent.ComponentPrefabName
WorldObjectComponent.ComponentTabName
WorldObjectComponent.Enabled
WorldObjectComponent.IsDestroyed
WorldObjectComponent.ShouldRequestEverything
WorldObjectComponent.Owners
WorldObjectComponent.ControllerID
WorldObjectComponent.IOwned.Deed
WorldObjectComponent.Subscriptions
WorldObjectComponent.PropertyChanged
Namespace: Eco.Gameplay.Economy
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
Type Description
WorldObjectComponentClientAvailability
Overrides
WorldObjectComponent.Availability

ContainedWorkables

Declaration
[NewTooltipChildren]
public ContainedWorkables ContainedWorkables { get; set; }
Property Value
Type Description
ContainedWorkables

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
TrackPlacementComponent.Data

TrackedObjects

Declaration
protected override IEnumerable<IProposable> TrackedObjects { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<IProposable>
Overrides
TrackPlacementComponent.TrackedObjects

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
Type Name Description
Contract contract

AddExistingWorkParty(WorkParty)

Declaration
public void AddExistingWorkParty(WorkParty party)
Parameters
Type Name Description
WorkParty party

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

DebugAddWorkable(User, Workable)

Declaration
public void DebugAddWorkable(User user, Workable workable)
Parameters
Type Name Description
User user
Workable workable

Destroy()

Declaration
public override void Destroy()
Overrides
TrackPlacementComponent.Destroy()

ForceAdd(IProposable)

Declaration
public override void ForceAdd(IProposable entry)
Parameters
Type Name Description
IProposable entry
Overrides
TrackPlacementComponent.ForceAdd(IProposable)

Initialize()

Declaration
public override void Initialize()
Overrides
TrackPlacementComponent.Initialize()

InitializePersistentData()

Declaration
protected override void InitializePersistentData()
Overrides
TrackPlacementComponent.InitializePersistentData()

RemoveContract(Contract)

Declaration
public void RemoveContract(Contract contract)
Parameters
Type Name Description
Contract contract

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

ILinkable
IOwned
IHasSerializableID
IRPCAuthChecks
System.ComponentModel.INotifyPropertyChanged
IThreadSafeSubscriptions
ISubscriptions<TSubscriptionsList>
ISubscriptions
IHasInteractions
IPersistentData
IHasClientControlledContainers
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
☀
☾