Candide.PlayerMode.Construction.ConstructionModeManager
Type JSONpublic class in Candide.PlayerMode.Construction
Type metadata
- Assembly
Romestead - Namespace
Candide.PlayerMode.Construction - Base type
Candide.PlayerMode.AbstractModeManager - Hash
3913CFC274A62D9C061E0C4D565B782C9C08AF6E0F28AD81EC1AB745A4C980A3
Relationships
Base type
Fields
| Name | Visibility | Signature |
|---|---|---|
ConstructingHandler# | public | public Candide.PlayerMode.Construction.Constructing.ConstructingHandler ConstructingHandler |
Controller_ShowingUi# | public | public System.Boolean Controller_ShowingUi |
Instance# | public | public Candide.PlayerMode.Construction.ConstructionModeManager Instance |
Town# | public | public CandideServer.Models.Town.TownModel Town |
WorkbenchEntity# | public | public Shared.Entity.EntityWrapper WorkbenchEntity |
_highlightedTarget# | private | private Candide.PlayerMode.Construction.HighlightedBuilding _highlightedTarget |
_lastTownCount# | private | private System.Int32 _lastTownCount |
_previousConstructionId# | private | private System.String _previousConstructionId |
_previousSubConstructionIndex# | private | private System.Nullable<System.Int32> _previousSubConstructionIndex |
_target# | private | private System.ValueTuple<System.Guid, Shared.Models.Construction.ConstructionType> _target |
Properties
| Name | Visibility | Signature |
|---|---|---|
CandideDesktop# | public | public Candide.CandideUI.CandideDesktop CandideDesktop |
ConstructionDesktop# | public | public Candide.PlayerMode.Construction.ConstructionDesktop ConstructionDesktop |
CursorWindowPos# | private | private Microsoft.Xna.Framework.Vector2 CursorWindowPos |
CursorWorldPos# | private | private Microsoft.Xna.Framework.Vector2 CursorWorldPos |
PlacingBiomeCategory# | public | public System.String PlacingBiomeCategory |
PlacingConstruction# | public | public Candide.PlayerMode.Construction.PlacingConstruction PlacingConstruction |
Methods
DrawCursor
#
public System.Void DrawCursor(Microsoft.Xna.Framework.Graphics.SpriteBatch batch)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
359E07BDC75DF075C6EB560433B21D3A66147B19CB3BE83BDD3652E2ED2FB2D6 - Body hash
045D358D6CCF0A151B342D9A529221861AAF7AC973C5F7B43F7AEBF424B0E844 - IL size257
Referenced calls
Candide.PlayerMode.AbstractModeManager::get_IsMouseOverGui()CandideCreator.Shared.Graphics.SpriteSheet::Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch, Microsoft.Xna.Framework.Vector2, System.Int32, System.Single, System.Single, System.Single)Candide.Input.SuperKeybind::Down()Microsoft.Xna.Framework.Vector2::get_One()Microsoft.Xna.Framework.Vector2::op_Multiply(Microsoft.Xna.Framework.Vector2, System.Single)Microsoft.Xna.Framework.Vector2::op_Addition(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)CandideCreator.Shared.Graphics.SpriteSheet::DrawRotation(Microsoft.Xna.Framework.Graphics.SpriteBatch, Microsoft.Xna.Framework.Vector2, System.Int32, System.Single, Microsoft.Xna.Framework.Vector2, System.Single)
DrawInWorldUi
#
public System.Void DrawInWorldUi(Microsoft.Xna.Framework.Graphics.SpriteBatch batch)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
0791EAFA8DC07EAF9B4E83C3B20334BA151DD4C9ADB36864A6EBBCEC6A6ADCD9 - Body hash
8A280836E07BCAC3D7E6B4DBF1556784BC0F821740A2EBC210BDFEFC7CE5E8F3 - IL size41
Referenced calls
Candide.PlayerMode.AbstractModeManager::get_IsMouseOverGui()Candide.PlayerMode.Construction.Constructing.ConstructingHandler::DrawInWorldUi(Microsoft.Xna.Framework.Graphics.SpriteBatch)Candide.PlayerMode.Construction.HighlightedBuilding::DrawInWorldUi(Microsoft.Xna.Framework.Graphics.SpriteBatch)
DrawUI
#
public System.Void DrawUI(Candide.CandideUI.UiRenderContext renderContext)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
AAC4E4553D517DBDFC0E193C01111696E05DD2B1506800A9DC361823E83C29A1 - Body hash
79727AE5216EE25A497A906EA32255A1DC090CD969D6B5603A36BF6AE33D6C1A - IL size776
Referenced calls
Candide.Input.RtsPlayerInputController::get_PlacingPosition()Candide.PlayerMode.Construction.ConstructionModeManager::get_CursorWindowPos()Candide.PlayerMode.Construction.ConstructionModeManager::get_PlacingConstruction()Candide.GameModels.Systems.ConstructionSitesSystem::DrawConstructionSitesUi(Candide.CandideUI.UiRenderContext, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2, System.Boolean)System.Collections.Generic.Dictionary<System.Guid, Candide.GameModels.Models.Constructions.Building>::TryGetValue(!0, !1&)Candide.Graphics.Fonts.CandideFont::get_RenderFont()CandideServer.Toolkit.TileBoundsHelper::GetTopCenteredPositionFromTileBounds(Microsoft.Xna.Framework.Rectangle)CandideServer.Models.Town.TownModel::GetLocalizedName()Candide.CandideUI.ImmediateUi.ImmediateCandideIconLabel::Measure(CandideCreator.Shared.Graphics.IconFlag, FontStashSharp.SpriteFontBase, System.String)CandideCreator.Shared.Models.RectangleF::get_TopLeft()Microsoft.Xna.Framework.Vector2::op_Subtraction(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)Microsoft.Xna.Framework.Vector2::op_Multiply(Microsoft.Xna.Framework.Vector2, System.Single)Microsoft.Xna.Framework.Vector2::op_Division(Microsoft.Xna.Framework.Vector2, System.Single)Microsoft.Xna.Framework.Vector2::.ctor(System.Single, System.Single)Microsoft.Xna.Framework.Vector2::Round()Microsoft.Xna.Framework.Vector2::get_Zero()Microsoft.Xna.Framework.Vector2::.ctor(System.Single)Candide.CandideUI.Transform::.ctor(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2, System.Single)Candide.CandideUI.UiRenderContext::set_Opacity(System.Single)Candide.CandideUI.ImmediateUi.ImmediateCandideWindow::Draw(Candide.CandideUI.UiRenderContext, System.Single, System.Single, Microsoft.Xna.Framework.Vector2, System.Single)Candide.CandideUI.ImmediateUi.ImmediateCandideWindow::Measure(Candide.CandideUI.UiRenderContext, System.Single, System.Single, System.Single)Candide.Database.IconDataBase::GetIconOrMissing(System.String)Microsoft.Xna.Framework.Color::get_White()Candide.CandideUI.ImmediateUi.ImmediateCandideIconLabel::Draw(Candide.CandideUI.UiRenderContext, CandideCreator.Shared.Graphics.IconData, CandideCreator.Shared.Graphics.IconFlag, FontStashSharp.SpriteFontBase, System.String, Microsoft.Xna.Framework.Color, Microsoft.Xna.Framework.Vector2)Shared.Text.StringDefinitions::GetString(System.String)Candide.CandideUI.ImmediateUi.ImmediateCandideTextLabel::Measure(FontStashSharp.SpriteFontBase, System.String)Candide.CandideUI.ImmediateUi.ImmediateCandideTextLabel::Draw(Candide.CandideUI.UiRenderContext, FontStashSharp.SpriteFontBase, System.String, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Color)Candide.CandideUI.CandideUiSystem::get_ControllerEnabled()Candide.Globals::get_CenterOfScreen()Candide.CandideUI.CandideUiSystem::get_Scale()CandideCreator.Shared.Graphics.ShapeExtensions::DrawCircle(Microsoft.Xna.Framework.Graphics.SpriteBatch, Microsoft.Xna.Framework.Vector2, System.Single, System.Int32, Microsoft.Xna.Framework.Color, System.Single, System.Single)
String literals
Constructions_BuildingNotPartOfTown
Exit
#
public System.Void Exit()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
DBF23BC1F0F98E885F98189ADD7C1B82B889585F4CB151D4FE155513BC60E0E3 - Body hash
98BF9A474307AFDB5F5DADEDD81E9A27F7FC4FD35C13B50766A8FB2AAA376542 - IL size17
Referenced calls
OnEntering
#
public System.Void OnEntering()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
5BDCF4AA6170259CF1CAD76FDB82B0006F9583C7EC0267A6EA1BD70252C6C52F - Body hash
5B1D0098F632083491B1CC6FC5ED8CCEC1B412E64292ED5C9929D93CC67A0B14 - IL size170
Referenced calls
Candide.PlayerMode.Construction.Constructing.ConstructingHandler::ResetAll()Candide.CandideUI.CandideExtendedInteractionsHandler::ResetDraggedContent()Candide.Sound.SoundPlayer::PlayEventOneShot(System.String, System.Single, System.Single)Candide.PlayerMode.AbstractModeManager::get_CandideDesktop()Candide.CandideUI.CandideUiSystem::SetDesktop(Candide.CandideUI.CandideDesktop)CandideServer.EventBus.EventBusManager::SendEvent(System.String, System.Object, System.Boolean)Candide.CandideUI.CandideUiSystem::get_ControllerEnabled()Candide.PlayerMode.Construction.ConstructionModeManager::SetShowingUi(System.Boolean)Candide.PlayerMode.Construction.ConstructionModeManager::get_ConstructionDesktop()ConstructionModeManager.<>c::<OnEntering>b__26_0(System.Object, System.EventArgs)System.EventHandler::.ctor(System.Object, System.IntPtr)Candide.CandideUI.Containers.CandideWindow::add_Showed(System.EventHandler)Candide.PlayerMode.Construction.ConstructionModeManager::<OnEntering>b__26_1(System.Object, System.EventArgs)Candide.CandideUI.Containers.CandideWindow::add_Closed(System.EventHandler)
String literals
event:/interface/open_windowui-construction-ui-opened
OnLeaving
#
public System.Void OnLeaving()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
E3AB9583020EC94299B140CF850DBB0F5A4B8236B818C9D985285543015EDD0A - Body hash
8FEF58505C6C1C13F4DC037545870B959F1F363516B7D0BC5E3DD872C0E2A29B - IL size18
Referenced calls
Candide.PlayerMode.Construction.ConstructionModeManager::get_ConstructionDesktop()Candide.CandideUI.CandideDesktop::CloseAll()Candide.CandideUI.ControllerUiInputSystem::set_DisableUiTemporarily(System.Boolean)
SetSelectedConstruction
#
public System.Void SetSelectedConstruction(System.String constructionId)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
E111052F0A8604654858477503BAD3618B26B952C55292D9CB1B4B0D879BF7A5 - Body hash
160A38A9715699844474EF4D8CE4ED1A0B3B52BE6A22F8539444B3886E574FE4 - IL size23
Referenced calls
SetShowingUi
#
public System.Void SetShowingUi(System.Boolean showUi)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
7188448FF769E69ACAEBE796610CFA7B4AC669B1D4DD871FAC25EFAF6EB7AD53 - Body hash
98D9245E92F85BF17C79ABF197CD0BA5BA71CF5052F287177FF2AED4B7911CEA - IL size103
Referenced calls
Candide.CandideUI.ControllerUiInputSystem::set_DisableUiTemporarily(System.Boolean)Candide.PlayerMode.Construction.ConstructionModeManager::get_ConstructionDesktop()Candide.CandideUI.CandideUiElement::get_Visible()Candide.CandideUI.Containers.CandideWindow::Show(Candide.CandideUI.CandideDesktop, System.Nullable<System.Int32>, System.Nullable<System.Int32>)Candide.CandideUI.Containers.CandideWindow::Close()
Update
#
public System.Void Update(Microsoft.Xna.Framework.GameTime gameTime)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
0D0D7ED487799F523E6788DD2805DCDE91445FFB8F36D66B591A85A4B2406AC7 - Body hash
F241FE65995507150F26B80E9071FA689A93E60CA5CC89C0EDA8ED8C6461D49D - IL size987
Referenced calls
Candide.PlayerMode.Construction.Constructing.ConstructingHandler::Reset()Shared.Entity.EntityWrapper::get_Immovable()Shared.Entity.EntityWrapper::get_Position()Microsoft.Xna.Framework.Vector3::op_Subtraction(Microsoft.Xna.Framework.Vector3, Microsoft.Xna.Framework.Vector3)Microsoft.Xna.Framework.Vector3::LengthSquared()Candide.PlayerMode.Construction.ConstructionModeManager::Exit()Candide.Input.SuperKeybind::Pressed()Candide.PlayerMode.Construction.ConstructionModeManager::get_ConstructionDesktop()Candide.CandideUI.Windows.CandideModalWindow::ModalAlreadyExists(Candide.CandideUI.CandideDesktop)Candide.CandideUI.CandideUiSystem::get_InputFocusableElement()Candide.PlayerMode.Construction.ConstructionModeManager::SetSelectedConstruction(System.String)Candide.PlayerMode.Construction.ConstructionDesktop::UserPressedClose()Candide.CandideUI.CandideUiSystem::get_ControllerEnabled()Candide.PlayerMode.Construction.ConstructionModeManager::SetShowingUi(System.Boolean)Candide.PlayerMode.Construction.ConstructionContext::SetSubMode(Candide.PlayerMode.SubMode)Candide.CandideUI.CandideUiElement::get_Visible()System.Collections.Generic.Dictionary<System.Guid, Candide.GameModels.Models.ClientTownModel>::get_Count()Shared.Entity.EntityWrapper::get_Position2()Candide.GameModels.Managers.TownsManager::GetClosestTown(Microsoft.Xna.Framework.Vector2)Candide.PlayerMode.AbstractModeManager::OnEntering()Candide.PlayerMode.AbstractModeManager::get_IsMouseOverGui()Candide.Input.SuperKeybind::Down()System.Nullable<System.Int32>::.ctor(!0)Candide.PlayerMode.Construction.Constructing.ConstructingHandler::Update(CandideServer.Models.Town.TownModel)Candide.Input.SuperKeybind::Up()Candide.PlayerMode.Construction.PlacingConstruction::get_ConstructionId()System.String::op_Equality(System.String, System.String)System.Nullable<System.Int32>::get_HasValue()System.Nullable<System.Int32>::get_Value()Candide.PlayerMode.Construction.SubPlacingConstruction::SetSelectedIndex(System.Int32)Candide.PlayerMode.Construction.ConstructionModeManager::UpdateHoveredTarget()Candide.PlayerMode.Construction.HighlightedBuilding::SetEmpty()
String literals
service:remove_construction_site
UpdateHoveredTarget
#
private System.Void UpdateHoveredTarget()
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
790666E1D82D6349C46378696A36739C1B969AE7916D57F1D2B1E2A4E8CC3224 - Body hash
50914BDE10D3B132108555C5FEF74260CD719DBA22155C9B2B093787E07BA0D5 - IL size326
Referenced calls
Candide.PlayerMode.Construction.ConstructionModeManager::get_PlacingConstruction()Candide.CandideUI.CandideUiSystem::get_ControllerEnabled()Candide.PlayerMode.Construction.ConstructionModeManager::get_ConstructionDesktop()Candide.CandideUI.CandideUiElement::get_Visible()Candide.CandideUI.ControllerUiInputSystem::get_IsFocusingUi()Candide.PlayerMode.Construction.ConstructionModeManager::get_CursorWorldPos()Microsoft.Xna.Framework.Vector2::op_Division(Microsoft.Xna.Framework.Vector2, System.Single)System.Collections.Generic.Dictionary<System.Guid, Candide.GameModels.Models.Constructions.Building>::get_Values()Dictionary.ValueCollection<System.Guid, Candide.GameModels.Models.Constructions.Building>::GetEnumerator()Dictionary.ValueCollection.Enumerator<System.Guid, Candide.GameModels.Models.Constructions.Building>::get_Current()Microsoft.Xna.Framework.Rectangle::Contains(System.Single, System.Single)Dictionary.ValueCollection.Enumerator<System.Guid, Candide.GameModels.Models.Constructions.Building>::MoveNext()System.IDisposable::Dispose()System.Collections.Generic.Dictionary<System.Guid, Candide.GameModels.Models.Constructions.Decoration>::get_Values()Dictionary.ValueCollection<System.Guid, Candide.GameModels.Models.Constructions.Decoration>::GetEnumerator()Dictionary.ValueCollection.Enumerator<System.Guid, Candide.GameModels.Models.Constructions.Decoration>::get_Current()Dictionary.ValueCollection.Enumerator<System.Guid, Candide.GameModels.Models.Constructions.Decoration>::MoveNext()