Candide.CandideUI.TradingPost.TradingPostMapUserControl
Type JSONpublic class in Candide.CandideUI.TradingPost
Type metadata
- Assembly
Romestead - Namespace
Candide.CandideUI.TradingPost - Base type
Candide.CandideUI.TownOverview.Components.AbstractMapControl - Hash
0636765B28A23C867F5551B3CAF5AACAAD0517758183B7C44C5328FB9ED6A538
Relationships
Fields
| Name | Visibility | Signature |
|---|---|---|
ActiveAnimation# | public | public CandideCreator.Shared.Graphics.FrameAnimation ActiveAnimation |
Timer# | public | public System.Single Timer |
_hasUpdated# | private | private System.Boolean _hasUpdated |
_mouseSimulator# | private | private Candide.CandideUI.Helpers.ControllerMouseSimulator _mouseSimulator |
_slots# | private | private System.Collections.Generic.Dictionary<System.Guid, Candide.CandideUI.CandideUiElement> _slots |
_slotsPanel# | private | private Candide.CandideUI.Containers.CandidePanel _slotsPanel |
_tradeRoutes# | private | private System.Collections.Generic.Dictionary<System.Guid, Candide.CandideUI.TradingPost.Components.UiTradeRouteLine> _tradeRoutes |
Methods
SetState
#
public System.Void SetState(System.Collections.Generic.Dictionary<System.Guid, Candide.CandideUI.TradingPost.DisplayStates.TownListDisplayData> data, Candide.CandideUI.TradingPost.DisplayStates.SelectedTownDisplayData selectedTownDisplayData)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
3CAE79E703AD40B96CC2BE1727C41773A269E9C96DB16FB218C2267AD4B68592 - Body hash
599D4E8C842ED66BE05865BF7387066C2ABE6D521C6E626FCCCBBEFA6C69909B - IL size851
Referenced calls
Candide.CandideUI.CandideUiContainerMultipleItems::ClearChildren()System.Collections.Generic.Dictionary<System.Guid, Candide.CandideUI.CandideUiElement>::Clear()System.Collections.Generic.Dictionary<System.Guid, Candide.CandideUI.TradingPost.Components.UiTradeRouteLine>::Clear()Candide.CandideUI.CandideUiElement::set_Visible(System.Boolean)Microsoft.Xna.Framework.Vector2::get_Zero()System.Collections.Generic.Dictionary<System.Guid, Candide.CandideUI.TradingPost.DisplayStates.TownListDisplayData>::GetEnumerator()Dictionary.Enumerator<System.Guid, Candide.CandideUI.TradingPost.DisplayStates.TownListDisplayData>::get_Current()System.Collections.Generic.KeyValuePair<System.Guid, Candide.CandideUI.TradingPost.DisplayStates.TownListDisplayData>::Deconstruct(!0&, !1&)Microsoft.Xna.Framework.Rectangle::get_Center()Microsoft.Xna.Framework.Point::ToVector2()Microsoft.Xna.Framework.Vector2::op_Addition(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)Dictionary.Enumerator<System.Guid, Candide.CandideUI.TradingPost.DisplayStates.TownListDisplayData>::MoveNext()System.IDisposable::Dispose()System.Collections.Generic.Dictionary<System.Guid, Candide.CandideUI.TradingPost.DisplayStates.TownListDisplayData>::get_Count()Microsoft.Xna.Framework.Vector2::op_Division(Microsoft.Xna.Framework.Vector2, System.Single)Microsoft.Xna.Framework.Vector2::Distance(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)TradingPostMapUserControl.<>c__DisplayClass8_0::.ctor()System.Nullable<System.Guid>::get_HasValue()TradingPostMapUserControl.<>c__DisplayClass8_1::.ctor()System.Guid::op_Equality(System.Guid, System.Guid)Candide.CandideUI.TradingPost.Components.TownHolder::.ctor(System.Guid, Candide.CandideUI.TradingPost.TradingPostMapUserControl)TradingPostMapUserControl.<>c__DisplayClass8_1::<SetState>b__1()System.Func<System.Collections.Generic.IEnumerable<Candide.CandideUI.CandideUiElement>>::.ctor(System.Object, System.IntPtr)Candide.CandideUI.Components.Holder.CandideHolderBase::set_GetTooltipContent(System.Func<System.Collections.Generic.IEnumerable<Candide.CandideUI.CandideUiElement>>)TradingPostMapUserControl.<>c__DisplayClass8_0::<SetState>b__0(System.Object, System.EventArgs)System.EventHandler::.ctor(System.Object, System.IntPtr)Candide.CandideUI.CandideUiElement::add_Clicked(System.EventHandler)Candide.CandideUI.Components.CandideIcon::.ctor(CandideCreator.Shared.Graphics.IconFlag)Candide.CandideUI.Components.CandideIcon::set_Icon(System.String)System.Collections.Generic.Dictionary<System.Guid, Candide.CandideUI.CandideUiElement>::set_Item(!0, !1)Candide.CandideUI.CandideUiContainerMultipleItems::AddChild(Candide.CandideUI.CandideUiElement, System.Boolean)System.Collections.Generic.Dictionary<System.Guid, Candide.GameModels.Models.TradeRoutes.ClientTradeRoute>::GetEnumerator()
SlotOnClicked
#
private System.Void SlotOnClicked(System.Guid townId)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
7A77932E37D8257E8649FE119F84664628AAA1786A5AB8B72F6673459D02D255 - Body hash
C2610C27D755741BCFB37D4E0514D13B41AD1B6478EFEF1AC50A683FBF2A4786 - IL size217
Referenced calls
Candide.CandideUI.TradingPost.Contexts.TradingPostContext::get_State()System.Nullable<Candide.CandideUI.TradingPost.DisplayStates.TradeRouteEditingData>::get_HasValue()System.Guid::op_Equality(System.Guid, System.Guid)Candide.GameModels.GameState::TryGetTown(System.Guid, Candide.GameModels.Models.ClientTownModel&)Candide.GameModels.Models.ClientTownModel::TryFindTradingPost(Candide.GameModels.Models.Constructions.Building&)System.Nullable<System.Guid>::.ctor(!0)Candide.CandideUI.TradingPost.Contexts.TradingPostContext::SetEditTradeRouteData(Candide.GameModels.Models.ClientTownModel, System.Nullable<System.Guid>, Candide.GameModels.Models.ClientTownModel, System.Nullable<System.Guid>, System.Boolean)Candide.CandideUI.TradingPost.Contexts.TradingPostContext::SetSelectedTown(System.Nullable<System.Guid>, System.Guid, System.Boolean)
Update
#
public System.Void Update(Microsoft.Xna.Framework.GameTime gameTime)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
F44638304B919FB36A93244CECCD0BB2956B33F376DC3F170515D77042625401 - Body hash
5D1321D3C87F3E1FAAEA9FEDD81B0B1B66F34225BF98DB21B1DC220D7165505B - IL size135
Referenced calls
Candide.CandideUI.CandideUiSystem::get_ControllerEnabled()Candide.CandideUI.ControllerUiInputSystem::get_FocusedElement()Candide.CandideUI.CandideUiElement::GetFocusable()System.Nullable<Microsoft.Xna.Framework.Vector2>::.ctor(!0)Candide.CandideUI.Helpers.ControllerMouseSimulator::SetCursorPosition(System.Nullable<Microsoft.Xna.Framework.Vector2>)Candide.CandideUI.Helpers.ControllerMouseSimulator::Update()Microsoft.Xna.Framework.GameTime::get_ElapsedGameTime()System.TimeSpan::get_TotalSeconds()CandideCreator.Shared.Graphics.FrameAnimation::Update(System.Double)Candide.CandideUI.CandideUiContainerMultipleItems::Update(Microsoft.Xna.Framework.GameTime)Candide.CandideUI.TradingPost.TradingPostMapUserControl::UpdateSlotPositions()
UpdateSlotPositions
#
private System.Void UpdateSlotPositions()
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
82491898A57001B94DE17954F0307661EEBC6D2C1153C57A129F1465553D24F7 - Body hash
EE51055415F9ECEC671DA79E8BBD15A81A42D64D39CBA04AE2CEE1D41EA61DB8 - IL size605
Referenced calls
Candide.CandideUI.Components.CandideDraggableMap::GetTileToScreenTransform()Candide.CandideUI.CandideUiElement::CalculateScreenPosition()Candide.CandideUI.TradingPost.Contexts.TradingPostContext::get_State()System.Collections.Generic.Dictionary<System.Guid, Candide.CandideUI.TradingPost.DisplayStates.TownListDisplayData>::GetEnumerator()Dictionary.Enumerator<System.Guid, Candide.CandideUI.TradingPost.DisplayStates.TownListDisplayData>::get_Current()System.Collections.Generic.KeyValuePair<System.Guid, Candide.CandideUI.TradingPost.DisplayStates.TownListDisplayData>::Deconstruct(!0&, !1&)Microsoft.Xna.Framework.Rectangle::get_Center()Microsoft.Xna.Framework.Point::ToVector2()CandideCreator.Shared.Helpers.VectorExtension::Transform(Microsoft.Xna.Framework.Vector2&, Microsoft.Xna.Framework.Matrix&, Microsoft.Xna.Framework.Vector2&)Microsoft.Xna.Framework.Vector2::op_Subtraction(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)System.Collections.Generic.Dictionary<System.Guid, Candide.CandideUI.CandideUiElement>::TryGetValue(!0, !1&)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::.ctor(System.Int32, System.Int32)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendFormatted(System.String)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendLiteral(System.String)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendFormatted(!!0)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::ToStringAndClear()CandideCreator.Shared.Helpers.WarningHelper::Warning(System.String)Candide.CandideUI.CandideUiElement::set_Top(System.Int32)Candide.CandideUI.CandideUiElement::set_Left(System.Int32)Dictionary.Enumerator<System.Guid, Candide.CandideUI.TradingPost.DisplayStates.TownListDisplayData>::MoveNext()System.IDisposable::Dispose()System.Collections.Generic.Dictionary<System.Guid, Candide.CandideUI.TradingPost.Components.UiTradeRouteLine>::GetEnumerator()Dictionary.Enumerator<System.Guid, Candide.CandideUI.TradingPost.Components.UiTradeRouteLine>::get_Current()System.Collections.Generic.KeyValuePair<System.Guid, Candide.CandideUI.TradingPost.Components.UiTradeRouteLine>::Deconstruct(!0&, !1&)Candide.GameModels.GameState::TryGetActiveTradeRoute(System.Guid, Candide.GameModels.Models.TradeRoutes.ClientTradeRoute&)Candide.CandideUI.CandideUiElement::get_Left()Candide.CandideUI.CandideUiSystem::get_Scale()Candide.CandideUI.CandideUiElement::get_Top()Microsoft.Xna.Framework.Vector2::.ctor(System.Single, System.Single)Dictionary.Enumerator<System.Guid, Candide.CandideUI.TradingPost.Components.UiTradeRouteLine>::MoveNext()
String literals
TradingPostMapUserControl: Slots dictionary did not contain town slot with ID: Slots dictionary did not contain home town slot with ID: Slots dictionary did not contain destination town slot with ID