Candide.CandideUI.TownOverview.Components.TownOverviewCitizenHolder
Type JSONpublic class in Candide.CandideUI.TownOverview.Components
Type metadata
- Assembly
Romestead - Namespace
Candide.CandideUI.TownOverview.Components - Base type
Candide.CandideUI.Components.Holder.CandideHolderBase - Hash
22A6389BE2196C6B939997A250D8E1BAE504733FC18DBECF3BA13056F87A623D
Relationships
Fields
| Name | Visibility | Signature |
|---|---|---|
CitizenPickedUp# | private | private System.EventHandler<Candide.CandideUI.TownOverview.Components.CitizenDraggableHolderContent> CitizenPickedUp |
_buildingIcon# | private | private Candide.CandideUI.Components.CandideIcon _buildingIcon |
_citizen# | private | private CandideServer.MessageModels.Towns.CitizenTownOverviewData _citizen |
_citizenIcon# | private | private Candide.CandideUI.Components.CandideIcon _citizenIcon |
_importantInfoText# | private | private Candide.CandideUI.Components.CandideTextLabel _importantInfoText |
_name# | private | private Candide.CandideUI.Components.CandideTextLabel _name |
_secondaryAction# | private | private System.Action _secondaryAction |
_townOverviewControl# | private | private Candide.CandideUI.TownOverview.TownOverviewControl _townOverviewControl |
Properties
| Name | Visibility | Signature |
|---|---|---|
Citizen# | public | public CandideServer.MessageModels.Towns.CitizenTownOverviewData Citizen |
Events
| Name | Visibility | Signature |
|---|---|---|
CitizenPickedUp# | public | public System.EventHandler<Candide.CandideUI.TownOverview.Components.CitizenDraggableHolderContent> CitizenPickedUp |
Methods
GetPickupContent
#
public Candide.CandideUI.Components.Holder.ICandideDraggableHolderContent GetPickupContent()
Method metadata
- Visibilitypublic
- Return type
Candide.CandideUI.Components.Holder.ICandideDraggableHolderContent - StaticFalse
- VirtualTrue
- Hash
EE7DFA276A05871F2B00336507C4966726FD6BA3CF2BA10B94B6A77547FE34DF - Body hash
19261BA6047D7867A0230FF111ED56AB6889C504EFECDA71C17489F13986132C - IL size60
Referenced calls
Candide.CandideUI.CandideUiElement::get_Enabled()Candide.CandideUI.TownOverview.Components.CitizenDraggableHolderContent::.ctor(Candide.CandideUI.Components.Holder.CandideHolderBase, System.Guid, System.String)System.EventHandler<Candide.CandideUI.TownOverview.Components.CitizenDraggableHolderContent>::Invoke(System.Object, !0)
InternalDraw
#
protected System.Void InternalDraw(Candide.CandideUI.UiRenderContext context)
Method metadata
- Visibilityprotected
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
558A4FB8E6D07AA47D891774A61AE8D43D0959C6D5BC0549DCC3FD774E40DDA5 - Body hash
3D0D5C73EC4012A217368FADC105DE81A588AF99B37BB8DBD19D4277E79F866F - IL size435
Referenced calls
Candide.CandideUI.TownOverview.Components.TownOverviewCitizenHolder::get_Citizen()Candide.CandideUI.TownOverview.TownOverviewControl::get_HoveredCitizen()System.Nullable<System.Guid>::get_HasValue()System.Nullable<System.Guid>::get_Value()System.Guid::op_Equality(System.Guid, System.Guid)System.Guid::op_Inequality(System.Guid, System.Guid)Candide.CandideUI.CandideUiElement::get_BorderBounds()Microsoft.Xna.Framework.Rectangle::get_Location()Microsoft.Xna.Framework.Point::ToVector2()Microsoft.Xna.Framework.Vector2::get_One()Candide.CandideUI.UiRenderContext::DrawSprite9Box(System.Single, System.Single, CandideCreator.Shared.Graphics.SpriteSheet, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)Candide.CandideUI.CandideUiElement::Draw(Candide.CandideUI.UiRenderContext)Candide.CandideUI.CandideUiElement::get_IsHovered()Candide.CandideUI.Components.Holder.CandideHolderBase::InternalDraw(Candide.CandideUI.UiRenderContext)
OnCitizenChanged
#
private System.Void OnCitizenChanged()
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
F771BC9DDA7FA5C4D26A3C22BB467F54C467A141104CA0A1E3C3CDABEBBAD72F - Body hash
DCFD81FBC5AED8AB639ACF89BA3D0A43A0B10BD244AB38BDEAAB5B9B20426B24 - IL size753
Referenced calls
CandideServer.Database.CitizenDataBase::GetCitizenOrMissing(System.String)Candide.CandideUI.Components.CandideIcon::set_Icon(System.String)System.Nullable<System.Guid>::get_HasValue()Candide.Toolkit.SamuelDevelopmentException::.ctor(System.String)System.Nullable<System.Guid>::get_Value()System.Nullable<System.Guid>::.ctor(!0)Candide.GameModels.GameState::TryGetBuilding(System.Nullable<System.Guid>, Candide.GameModels.Models.Constructions.Building&)Shared.Data.ConstructionDataBase::GetConstructionOrMissing(System.String)Candide.CandideUI.CandideUiElement::set_Visible(System.Boolean)Candide.CandideUI.Components.CandideTextLabel::set_Text(System.String)Shared.Text.StringDefinitions::GetString(System.String)System.Single::ToString(System.String)System.String::Format(System.String, System.Object)Candide.CandideUI.Components.CandideTextLabel::get_Text()System.String::IsNullOrEmpty(System.String)System.String::Concat(System.String, System.String, System.String)Candide.GameModels.GameState::TryGetCitizenSlot(System.Guid, System.Guid, Candide.GameModels.Models.Citizens.CitizenSlot&)Shared.Data.JobDataBase::GetJobOrNull(System.String)System.String::op_Equality(System.String, System.String)Shared.Text.StringExtensions::GetTranslation(Shared.Text.StringId)System.Collections.Generic.Dictionary<System.String, CandideServer.Models.Citizen.JobProgress>::get_Item(!0)Shared.Data.DataModels.JobDataExtensions::GetName(Shared.Data.DataModels.JobData, System.Boolean)System.String::Format(System.String, System.Object, System.Object, System.Object)
String literals
Not expected. If a home building is set, a citizen slot should be also site and vice versaCitizens_CurrentHungerP0Citizens_UnassignedUnexpectedjob:unemployedCitizens_NameAndCurrentJobLevel
OnControllerXPressed
#
public System.Void OnControllerXPressed()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
227CBC135CBE63A8D173EFC77250539694626CC7023F3AF56E53A1A6F49B0557 - Body hash
0FDFD7AE7BC8DACB17713347A92EC9982C47FC97E08DF294B8B9E8572C0661EE - IL size18
Referenced calls
Candide.CandideUI.CandideUiElement::OnControllerXPressed()System.Action::Invoke()
OnMouseSecondaryDown
#
public System.Void OnMouseSecondaryDown()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
2BD363010111B7324E1C8DA9406D3C36FEAB4392E45851D0E293FBA4A57A1577 - Body hash
3994C4DF70CDCA5BDDF69BA365C44A109F374721E6FF8894E9BEA7DC3C059047 - IL size18
Referenced calls
Candide.CandideUI.CandideUiElement::OnMouseSecondaryDown()System.Action::Invoke()
Update
#
public System.Void Update(Microsoft.Xna.Framework.GameTime gameTime)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
D48AA863FDADAD0C9117D410A5FA33C0FBA517EEDE8E16665D979FC0E04E1342 - Body hash
249EEC116ED77FB4C9211DF60E53E85F7C74BA88E41B75C08B83777F9EFAC294 - IL size43
Referenced calls
Candide.CandideUI.CandideUiElement::get_IsHovered()Candide.CandideUI.TownOverview.Components.TownOverviewCitizenHolder::get_Citizen()System.Nullable<System.Guid>::.ctor(!0)Candide.CandideUI.CandideUiContainerSingleItem::Update(Microsoft.Xna.Framework.GameTime)