Candide.CandideUI.TradingPost.Contexts.TradingPostContext
Type JSONpublic class in Candide.CandideUI.TradingPost.Contexts
Type metadata
- Assembly
Romestead - Namespace
Candide.CandideUI.TradingPost.Contexts - Base type
System.Object - Hash
282E696CD3AFA93492A626BECC952D5ED72E2943DEF062F2D5C237E31BF049EF
Relationships
Base type
System.Object
Fields
| Name | Visibility | Signature |
|---|---|---|
StateUpdated_EditTradeRoute# | private | private System.EventHandler StateUpdated_EditTradeRoute |
StateUpdated_Error# | private | private System.EventHandler StateUpdated_Error |
StateUpdated_SelectedTown# | private | private System.EventHandler StateUpdated_SelectedTown |
StateUpdated_ToggleCreateNewTradeRoute# | private | private System.EventHandler StateUpdated_ToggleCreateNewTradeRoute |
StateUpdated_TownList# | private | private System.EventHandler StateUpdated_TownList |
StateUpdated_TradeRoutes# | private | private System.EventHandler StateUpdated_TradeRoutes |
_getCitizensHandle# | private | private Candide.Multiplayer.Network.GetResponseHandler _getCitizensHandle |
_getTradeRoutesHandle# | private | private Candide.Multiplayer.Network.GetResponseHandler _getTradeRoutesHandle |
_isActivated# | private | private System.Boolean _isActivated |
_state# | private | private Candide.CandideUI.TradingPost.DisplayStates.TradingPostDisplayState _state |
Properties
| Name | Visibility | Signature |
|---|---|---|
State# | public | public Candide.CandideUI.TradingPost.DisplayStates.TradingPostDisplayState State |
Events
| Name | Visibility | Signature |
|---|---|---|
StateUpdated_EditTradeRoute# | public | public System.EventHandler StateUpdated_EditTradeRoute |
StateUpdated_Error# | public | public System.EventHandler StateUpdated_Error |
StateUpdated_SelectedTown# | public | public System.EventHandler StateUpdated_SelectedTown |
StateUpdated_ToggleCreateNewTradeRoute# | public | public System.EventHandler StateUpdated_ToggleCreateNewTradeRoute |
StateUpdated_TownList# | public | public System.EventHandler StateUpdated_TownList |
StateUpdated_TradeRoutes# | public | public System.EventHandler StateUpdated_TradeRoutes |
Methods
Activate
#
public System.Void Activate()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
0B0AC121AD9EF16902AB2D46D3ADE753FB8E28B9F2841BDB86C252B5F633C414 - Body hash
0A7436BCC859AA6C0ABA53A2DFF0D1EFFF747A6813BEE6150D83E6224FB39651 - IL size123
Referenced calls
Candide.CandideUI.TradingPost.Contexts.TradingPostContext::get_State()Candide.CandideUI.TradingPost.DisplayStates.TradingPostDisplayState::Clear()Candide.CandideUI.TradingPost.Contexts.TradingPostContext::OnTradeRoutesChanged(Candide.GameModels.Controllers.GameStateActiveTradeRoutesChangedArgs)TradeRoutesController.GameStateActiveTradeRoutesChanged::.ctor(System.Object, System.IntPtr)Candide.GameModels.Controllers.TradeRoutesController::add_TradeRoutesChanged(TradeRoutesController.GameStateActiveTradeRoutesChanged)Candide.CandideUI.TradingPost.Contexts.TradingPostContext::OnTownsChanged(Candide.GameModels.Controllers.GameStateTownChangedArgs)TownsController.GameStateTownsChanged::.ctor(System.Object, System.IntPtr)Candide.GameModels.Controllers.TownsController::add_TownsChanged(TownsController.GameStateTownsChanged)Candide.CandideUI.TradingPost.Contexts.TradingPostContext::OnBuildingRemoved(System.Object, Candide.GameModels.Controllers.BuildingRemovedArgs)System.EventHandler<Candide.GameModels.Controllers.BuildingRemovedArgs>::.ctor(System.Object, System.IntPtr)Candide.GameModels.Controllers.BuildingsController::add_BuildingRemoved(System.EventHandler<Candide.GameModels.Controllers.BuildingRemovedArgs>)Candide.CandideUI.TradingPost.Contexts.TradingPostContext::UpdateTownList()Candide.CandideUI.TradingPost.Contexts.TradingPostContext::UpdateActiveTradeRoutes()
Deactivate
#
public System.Void Deactivate()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
FEA157F4185081B6AAB491AE25F1AC34532F30C65B485BB4468F71CCBAB1A632 - Body hash
83A8F098BF408C46568799CEBCDDC477601E6BA7158B249C72C3C564D7ACEA1C - IL size118
Referenced calls
Candide.CandideUI.TradingPost.Contexts.TradingPostContext::OnTradeRoutesChanged(Candide.GameModels.Controllers.GameStateActiveTradeRoutesChangedArgs)TradeRoutesController.GameStateActiveTradeRoutesChanged::.ctor(System.Object, System.IntPtr)Candide.GameModels.Controllers.TradeRoutesController::remove_TradeRoutesChanged(TradeRoutesController.GameStateActiveTradeRoutesChanged)Candide.CandideUI.TradingPost.Contexts.TradingPostContext::OnTownsChanged(Candide.GameModels.Controllers.GameStateTownChangedArgs)TownsController.GameStateTownsChanged::.ctor(System.Object, System.IntPtr)Candide.GameModels.Controllers.TownsController::remove_TownsChanged(TownsController.GameStateTownsChanged)Candide.CandideUI.TradingPost.Contexts.TradingPostContext::OnBuildingRemoved(System.Object, Candide.GameModels.Controllers.BuildingRemovedArgs)System.EventHandler<Candide.GameModels.Controllers.BuildingRemovedArgs>::.ctor(System.Object, System.IntPtr)Candide.GameModels.Controllers.BuildingsController::remove_BuildingRemoved(System.EventHandler<Candide.GameModels.Controllers.BuildingRemovedArgs>)Candide.CandideUI.TradingPost.Contexts.TradingPostContext::ResetGetters()Candide.CandideUI.TradingPost.Contexts.TradingPostContext::get_State()Candide.CandideUI.TradingPost.DisplayStates.TradingPostDisplayState::Clear()
OnBuildingRemoved
#
private System.Void OnBuildingRemoved(System.Object sender, Candide.GameModels.Controllers.BuildingRemovedArgs e)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
51C818C65E6A040D3EC76B15A99402206586F1E15349F80E37B3C32FA15AC218 - Body hash
4817BA35D14F5B5366BCDED83BB8F668D2CB36306BB1CE7F3C599CC8E0AA1390 - IL size66
Referenced calls
Candide.CandideUI.TradingPost.Contexts.TradingPostContext::get_State()System.Guid::op_Equality(System.Guid, System.Guid)Candide.CandideUI.TradingPost.Contexts.TradingPostContext::SetSelectedTown(System.Nullable<System.Guid>, System.Guid, System.Boolean)Candide.CandideUI.TradingPost.Contexts.TradingPostContext::UpdateTownList()
OnTownsChanged
#
private System.Void OnTownsChanged(Candide.GameModels.Controllers.GameStateTownChangedArgs args)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
9E9316996FA3425D33DB6CC6BA730CA3BB5959119374933E85197BA8F011F4B7 - Body hash
593BA84248C4DE18D99213B03C31F005D3DE1F7CBCFA57DE273F09DDB44FAAEF - IL size6
OnTradeRoutesChanged
#
private System.Void OnTradeRoutesChanged(Candide.GameModels.Controllers.GameStateActiveTradeRoutesChangedArgs args)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
37E5E0A1E7D66D925F701E4F4CAB4ECF936C066D4B8AAC3A2CA5FA041ABBA223 - Body hash
CA38919F2E47833D6357D6CA9D9C79F5A98ABEC322A4FA6BD09AB1488A6FB1F5 - IL size170
Referenced calls
Candide.CandideUI.TradingPost.Contexts.TradingPostContext::get_State()System.Collections.Generic.HashSet<System.Guid>::Remove(!0)System.Guid::op_Equality(System.Guid, System.Guid)System.Collections.Generic.HashSet<System.Guid>::Add(!0)System.EventHandler::Invoke(System.Object, System.EventArgs)
ResetGetters
#
private System.Void ResetGetters()
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
3A68D976755BC09EAE513E0F760454676A44718D092C30914A8432AD38EC29ED - Body hash
E1FDBF4BA396F15EA096C4A456DFAFD2C21204829097B9AE1F5FCD6A24A4056B - IL size136
Referenced calls
Candide.Multiplayer.Network.GetResponseHandler::Remove()Candide.GameModels.Services.TradeRoutesService::Send_StopListeningOnTradeRoutes()Candide.CandideUI.TradingPost.Contexts.TradingPostContext::get_State()System.Nullable<Candide.CandideUI.TradingPost.DisplayStates.TradeRouteEditingData>::get_HasValue()System.Nullable<Candide.CandideUI.TradingPost.DisplayStates.TradeRouteEditingData>::GetValueOrDefault()System.Collections.Generic.HashSet<System.Guid>::get_Count()CandideServer.MessageModels.Citizens.StopListeningToCitizensMessage::.ctor()System.Nullable<Candide.CandideUI.TradingPost.DisplayStates.TradeRouteEditingData>::get_Value()System.Linq.Enumerable::ToArray(System.Collections.Generic.IEnumerable<!!0>)Candide.GameModels.Services.CitizenService::SendStopListeningToCitizens(CandideServer.MessageModels.Citizens.StopListeningToCitizensMessage)
SetEditTradeRouteData
#
public System.Void SetEditTradeRouteData(Candide.GameModels.Models.ClientTownModel homeTown, System.Nullable<System.Guid> homeTownTradingPostId, Candide.GameModels.Models.ClientTownModel destinationTown, System.Nullable<System.Guid> destinationTownTradingPostId, System.Boolean isNew)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
8809105091AF417C018B52751CD96229827CDD811EE2DFE98D1F41D1C48B93BE - Body hash
15A08FDBC25D7C83027BFD5639F89AD5BB3B2470FDAB765A499943AE847A8890 - IL size656
Referenced calls
TradingPostContext.<>c__DisplayClass30_0::.ctor()Candide.CandideUI.TradingPost.Contexts.TradingPostContext::get_State()System.EventHandler::Invoke(System.Object, System.EventArgs)System.Nullable<System.Guid>::get_HasValue()System.Collections.Generic.Dictionary<System.Guid, Candide.GameModels.Models.ClientTownModel>::ContainsKey(!0)System.Nullable<System.Guid>::get_Value()System.Collections.Generic.HashSet<System.Guid>::Contains(!0)System.Nullable<System.Guid>::.ctor(!0)Candide.GameModels.GameState::TryGetBuilding(System.Nullable<System.Guid>, Candide.GameModels.Models.Constructions.Building&)System.Nullable<Candide.CandideUI.TradingPost.DisplayStates.TradeRouteEditingData>::get_HasValue()System.Nullable<Candide.CandideUI.TradingPost.DisplayStates.TradeRouteEditingData>::GetValueOrDefault()System.Collections.Generic.HashSet<System.Guid>::get_Count()CandideServer.MessageModels.Citizens.StopListeningToCitizensMessage::.ctor()System.Nullable<Candide.CandideUI.TradingPost.DisplayStates.TradeRouteEditingData>::get_Value()System.Linq.Enumerable::ToArray(System.Collections.Generic.IEnumerable<!!0>)Candide.GameModels.Services.CitizenService::SendStopListeningToCitizens(CandideServer.MessageModels.Citizens.StopListeningToCitizensMessage)System.Nullable<System.Guid>::GetValueOrDefault()System.Guid::op_Inequality(System.Guid, System.Guid)Candide.Toolkit.SamuelDevelopmentException::.ctor(System.String)<>z__ReadOnlyArray<System.Guid>::.ctor(T[])Candide.GameModels.Helpers.GameStateHelper::GetAllCarrierCitizenIdsForTowns(System.Collections.Generic.IEnumerable<System.Guid>)Candide.Multiplayer.Network.GetResponseHandler::Remove()CandideServer.MessageModels.Citizens.GetAndListenToCitizensRequest::.ctor()TradingPostContext.<>c__DisplayClass30_0::<SetEditTradeRouteData>b__0(CandideServer.MessageModels.Citizens.GetAndListenToCitizensResponse)System.Action<CandideServer.MessageModels.Citizens.GetAndListenToCitizensResponse>::.ctor(System.Object, System.IntPtr)TradingPostContext.<>c::<SetEditTradeRouteData>b__30_1(System.Byte)System.Action<System.Byte>::.ctor(System.Object, System.IntPtr)Candide.GameModels.Services.CitizenService::GetAndListenToCitizens(CandideServer.MessageModels.Citizens.GetAndListenToCitizensRequest, System.Action<CandideServer.MessageModels.Citizens.GetAndListenToCitizensResponse>, System.Action<System.Byte>, System.Single)
String literals
SetEditTradeRouteData: SelectedTownDisplayData town ID is not equal to the hometown ID
SetSelectedTown
#
public System.Void SetSelectedTown(System.Nullable<System.Guid> selectedTown, System.Guid tradingPostId, System.Boolean forceUpdate)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
1D92D504BC866365415F3132CC4540B3ABBFD1972BCFCD2C16C5B2610572780E - Body hash
A76EF5E074066D7AED9FA19BD84EB62A67D1B0B1D412634AA5DFB373C2A81F5D - IL size493
Referenced calls
System.Nullable<System.Guid>::get_HasValue()System.Nullable<System.Guid>::get_Value()Candide.GameModels.GameState::TryGetTown(System.Guid, Candide.GameModels.Models.ClientTownModel&)Candide.Multiplayer.Network.GetResponseHandler::Remove()Candide.CandideUI.TradingPost.Contexts.TradingPostContext::get_State()Candide.GameModels.Services.TradeRoutesService::Send_StopListeningOnTradeRoutes()System.EventHandler::Invoke(System.Object, System.EventArgs)System.Collections.Generic.Dictionary<System.Guid, Candide.CandideUI.TradingPost.DisplayStates.TownListDisplayData>::ContainsKey(!0)System.Collections.Generic.Dictionary<System.Guid, Candide.CandideUI.TradingPost.DisplayStates.TownListDisplayData>::get_Item(!0)System.Nullable<System.Guid>::GetValueOrDefault()System.Guid::op_Inequality(System.Guid, System.Guid)System.Nullable<System.Guid>::.ctor(!0)System.Guid::op_Equality(System.Guid, System.Guid)Candide.CandideUI.TradingPost.DisplayStates.SelectedTownDisplayData::.ctor(Candide.GameModels.Models.ClientTownModel, System.Guid)System.Collections.Generic.Dictionary<System.Guid, Candide.GameModels.Models.TradeRoutes.ClientTradeRoute>::GetEnumerator()Dictionary.Enumerator<System.Guid, Candide.GameModels.Models.TradeRoutes.ClientTradeRoute>::get_Current()System.Collections.Generic.KeyValuePair<System.Guid, Candide.GameModels.Models.TradeRoutes.ClientTradeRoute>::Deconstruct(!0&, !1&)System.Collections.Generic.HashSet<System.Guid>::Add(!0)Dictionary.Enumerator<System.Guid, Candide.GameModels.Models.TradeRoutes.ClientTradeRoute>::MoveNext()System.IDisposable::Dispose()
Called by
SetToggleCreateNewTradeRoute
#
public System.Void SetToggleCreateNewTradeRoute(System.Boolean b)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
93AA26BC6B0BAAC9E6ECCFE58C8FEBC261745E7DAEE8FB6181560CE1A055D77B - Body hash
9E623F83FF0B326532B738FF57C2F72417111C2DB127E142562547ACB767B769 - IL size33
Referenced calls
System.EventHandler::Invoke(System.Object, System.EventArgs)
UpdateActiveTradeRoutes
#
private System.Void UpdateActiveTradeRoutes()
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
D3A7CC794016ECF5649817A26460359D01765667E4D735DC1514A27520380D6A - Body hash
84D60E4FEC61001BB41BE0F47457C10061C74795607322D4AE1F12A821B14168 - IL size152
Referenced calls
Candide.CandideUI.TradingPost.Contexts.TradingPostContext::get_State()System.Collections.Generic.Dictionary<System.Guid, Candide.CandideUI.TradingPost.DisplayStates.TownListDisplayData>::get_Count()CandideCreator.Shared.Helpers.WarningHelper::Warning(System.String)CandideServer.MessageModels.TradeRoutes.GetAndListenOnTradeRoutesForTownRequest::.ctor()System.Linq.Enumerable::First(System.Collections.Generic.IEnumerable<!!0>)System.Collections.Generic.KeyValuePair<System.Guid, Candide.CandideUI.TradingPost.DisplayStates.TownListDisplayData>::get_Value()TradingPostContext.<>c::<UpdateActiveTradeRoutes>b__34_0(CandideServer.MessageModels.TradeRoutes.GetAndListenOnTradeRoutesForTownResponse)System.Action<CandideServer.MessageModels.TradeRoutes.GetAndListenOnTradeRoutesForTownResponse>::.ctor(System.Object, System.IntPtr)TradingPostContext.<>c::<UpdateActiveTradeRoutes>b__34_1(System.Byte)System.Action<System.Byte>::.ctor(System.Object, System.IntPtr)Candide.GameModels.Services.TradeRoutesService::GetAndListenOnTradeRoutesForTown(CandideServer.MessageModels.TradeRoutes.GetAndListenOnTradeRoutesForTownRequest, System.Action<CandideServer.MessageModels.TradeRoutes.GetAndListenOnTradeRoutesForTownResponse>, System.Action<System.Byte>, System.Single)
String literals
TradingPostContext: Town list count was null
UpdateTownList
#
private System.Void UpdateTownList()
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
6D2E140AB790A2B5CC915AD6EEBDAFC6A9EF07D2BF28933B85159F823BE44FCB - Body hash
8030E4DD1782FCAAC01621564EAF8F0637A168D2A80612E28C61164041B6A521 - IL size350
Referenced calls
Candide.CandideUI.TradingPost.Contexts.TradingPostContext::get_State()System.Collections.Generic.Dictionary<System.Guid, Candide.CandideUI.TradingPost.DisplayStates.TownListDisplayData>::Clear()System.Collections.Generic.Dictionary<System.Guid, Candide.GameModels.Models.ClientTownModel>::GetEnumerator()Dictionary.Enumerator<System.Guid, Candide.GameModels.Models.ClientTownModel>::get_Current()System.Collections.Generic.KeyValuePair<System.Guid, Candide.GameModels.Models.ClientTownModel>::Deconstruct(!0&, !1&)System.Collections.Generic.HashSet<System.Guid>::GetEnumerator()HashSet.Enumerator<System.Guid>::get_Current()System.Nullable<System.Guid>::.ctor(!0)Candide.GameModels.GameState::TryGetBuilding(System.Nullable<System.Guid>, Candide.GameModels.Models.Constructions.Building&)System.Collections.Generic.List<Candide.GameModels.Models.Citizens.CitizenSlot>::get_Count()System.String::op_Equality(System.String, System.String)HashSet.Enumerator<System.Guid>::MoveNext()System.IDisposable::Dispose()System.Collections.Generic.HashSet<System.Guid>::get_Count()Candide.CandideUI.TradingPost.DisplayStates.TownListDisplayData::.ctor(Candide.GameModels.Models.ClientTownModel, System.Int32, System.Int32, System.Nullable<System.Guid>)System.Collections.Generic.Dictionary<System.Guid, Candide.CandideUI.TradingPost.DisplayStates.TownListDisplayData>::set_Item(!0, !1)Dictionary.Enumerator<System.Guid, Candide.GameModels.Models.ClientTownModel>::MoveNext()System.Collections.Generic.Dictionary<System.Guid, Candide.CandideUI.TradingPost.DisplayStates.TownListDisplayData>::ContainsKey(!0)Candide.CandideUI.TradingPost.Contexts.TradingPostContext::SetSelectedTown(System.Nullable<System.Guid>, System.Guid, System.Boolean)System.EventHandler::Invoke(System.Object, System.EventArgs)
Called by
String literals
trading_post