Class DinnerParty
Inheritance
System.Object
DinnerParty
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
public class DinnerParty : Object, ILinkable, IHasSerializableID, IHasUniversalID, IController, IViewController, INotifyPropertyChanged
Constructors
DinnerParty()
Declaration
Fields
Deed
Declaration
Field Value
DeedName
Declaration
Field Value
| Type |
Description |
| System.String |
|
EndTime
Declaration
Field Value
| Type |
Description |
| System.Double |
|
Guests
Declaration
public ThreadSafeList<ServedGuest> Guests
Field Value
StartTime
Declaration
Field Value
| Type |
Description |
| System.Double |
|
UserRequestsFinishEvent
Declaration
public static ThreadSafeAction<User, DinnerParty> UserRequestsFinishEvent
Field Value
Properties
AverageCourses
Declaration
public float AverageCourses { get; }
Property Value
| Type |
Description |
| System.Single |
|
ControllerID
Declaration
public ref int ControllerID { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
DaysOld
Declaration
public int DaysOld { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
DaysOldAtLastCalculation
Declaration
public int DaysOldAtLastCalculation { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
DecayedTotal
Declaration
public float DecayedTotal { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
Description
Declaration
public string Description { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Error
Declaration
public string Error { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Finished
Declaration
public bool Finished { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
FinishedDay
Declaration
public int FinishedDay { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
FinishTime
Declaration
public double FinishTime { get; }
Property Value
| Type |
Description |
| System.Double |
|
GuestsCount
Declaration
public int GuestsCount { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
GuestUsers
Declaration
public IEnumerable<User> GuestUsers { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.IEnumerable<User> |
|
NeedsUpdate
Declaration
public bool NeedsUpdate { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
RawTotal
Declaration
public float RawTotal { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
SentInitialNotice
Declaration
public bool SentInitialNotice { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
StartingDay
Declaration
public int StartingDay { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
StatusText
Declaration
public string StatusText { get; set; }
Property Value
| Type |
Description |
| System.String |
|
TimeOld
Declaration
public double TimeOld { get; }
Property Value
| Type |
Description |
| System.Double |
|
Title
Declaration
public string Title { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Methods
AddGuest(ServedGuest)
Declaration
public ServedGuest AddGuest(ServedGuest guest)
Parameters
Returns
CalculateFoodValue(User, Type)
Calculates the culture value of a food item for a given user based on their taste preference.
Declaration
public static float CalculateFoodValue(User user, Type foodType)
Parameters
| Type |
Name |
Description |
| User |
user |
The user whose taste preference to consider
|
| System.Type |
foodType |
The type of food to calculate value for
|
Returns
| Type |
Description |
| System.Single |
The calculated culture value for the food item
|
Finish()
Declaration
FinishDinnerParty(User)
Declaration
public void FinishDinnerParty(User user)
Parameters
| Type |
Name |
Description |
| User |
user |
|
HasGuest(User)
Declaration
public bool HasGuest(User user)
Parameters
| Type |
Name |
Description |
| User |
user |
|
Returns
| Type |
Description |
| System.Boolean |
|
IsHost(User)
Declaration
public bool IsHost(User user)
Parameters
| Type |
Name |
Description |
| User |
user |
|
Returns
| Type |
Description |
| System.Boolean |
|
Msg(LocString)
Declaration
public void Msg(LocString text)
Parameters
OnLinkClicked(TooltipOrigin, TooltipClickContext, User)
Declaration
public void OnLinkClicked(TooltipOrigin origin, TooltipClickContext clickContext, User user)
Parameters
UILinkContent()
Declaration
public LocString UILinkContent()
Returns
UpdateTotal()
Declaration
public bool UpdateTotal()
Returns
| Type |
Description |
| System.Boolean |
|
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
| Type |
Description |
| System.ComponentModel.PropertyChangedEventHandler |
|
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods