Candide.PlayerMode.Logistics.LogisticsModeManager
Type JSONpublic class in Candide.PlayerMode.Logistics
Type metadata
- Assembly
Romestead - Namespace
Candide.PlayerMode.Logistics - Base type
Candide.PlayerMode.AbstractModeManager - Hash
D9EC6F5A374D0DFDEABB867C0BCE1AAE9EA259F2BDBE17E854B87579F20259CF
Relationships
Base type
Fields
| Name | Visibility | Signature |
|---|---|---|
Instance# | public | public Candide.PlayerMode.Logistics.LogisticsModeManager Instance |
IoButtonSheet# | private | private CandideCreator.Shared.Graphics.SpriteSheet IoButtonSheet |
Town# | public | public CandideServer.Models.Town.TownModel Town |
_editingConnection# | private | private System.Nullable<Candide.PlayerMode.Logistics.EditingConnection> _editingConnection |
_hoveredBuildingInput# | private | private System.Nullable<System.Guid> _hoveredBuildingInput |
_hoveredBuildingInputPos# | private | private System.Nullable<Microsoft.Xna.Framework.Vector2> _hoveredBuildingInputPos |
_hoveredBuildingOutput# | private | private System.Nullable<System.Guid> _hoveredBuildingOutput |
_hoveredBuildingOutputPos# | private | private System.Nullable<Microsoft.Xna.Framework.Vector2> _hoveredBuildingOutputPos |
_hoveredConnection# | private | private System.Nullable<System.Guid> _hoveredConnection |
_timer# | private | private System.Single _timer |
Properties
| Name | Visibility | Signature |
|---|---|---|
CandideDesktop# | public | public Candide.CandideUI.CandideDesktop CandideDesktop |
CursorWindowPos# | private | private Microsoft.Xna.Framework.Vector2 CursorWindowPos |
CursorWorldPos# | private | private Microsoft.Xna.Framework.Vector2 CursorWorldPos |
Methods
DrawAnimatedLine
#
private System.Void DrawAnimatedLine(Microsoft.Xna.Framework.Graphics.SpriteBatch batch, Microsoft.Xna.Framework.Vector2 start, Microsoft.Xna.Framework.Vector2 end, CandideServer.Models.Logistics.LogisticsConnectionModel connectionModel, System.Nullable<System.Int32> connectionIndex, System.Single scale, System.Nullable<Microsoft.Xna.Framework.Color> arrowColor)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
77ACABC5DBF5D23276E48123CDD3C71EE2BDB008683B09DA2ADBA4FA183DAF16 - Body hash
F160892EE8FEB97DD29A8E780CE86DA72C5B2B6F3B3F6774C8E9E3822610E129 - IL size1160
Referenced calls
System.Nullable<Candide.PlayerMode.Logistics.EditingConnection>::get_HasValue()System.Nullable<Candide.PlayerMode.Logistics.EditingConnection>::get_Value()System.Nullable<System.Guid>::get_HasValue()System.Nullable<System.Guid>::GetValueOrDefault()System.Guid::op_Equality(System.Guid, System.Guid)Microsoft.Xna.Framework.Vector2::op_Subtraction(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)System.Math::Atan2(System.Double, System.Double)Microsoft.Xna.Framework.Vector2::Length()Microsoft.Xna.Framework.Vector2::Normalize(Microsoft.Xna.Framework.Vector2)CandideCreator.Shared.Helpers.VectorExtension::ToNormalDirection(Microsoft.Xna.Framework.Vector2&)Candide.PlayerMode.Logistics.LogisticsModeManager::get_CursorWorldPos()Microsoft.Xna.Framework.Vector2::Dot(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)System.Math::Abs(System.Single)Candide.PlayerMode.AbstractModeManager::get_IsMouseOverGui()System.Nullable<System.Guid>::.ctor(!0)System.Nullable<Microsoft.Xna.Framework.Color>::get_HasValue()System.Nullable<Microsoft.Xna.Framework.Color>::GetValueOrDefault()CandideCreator.Shared.Helpers.VectorExtension::AngleToVector(System.Single)Microsoft.Xna.Framework.Vector2::op_Multiply(Microsoft.Xna.Framework.Vector2, System.Single)Microsoft.Xna.Framework.Vector2::op_Division(Microsoft.Xna.Framework.Vector2, System.Single)CandideCreator.Shared.Graphics.PrimitiveRenderer::DrawLine(Microsoft.Xna.Framework.Graphics.SpriteBatch, Microsoft.Xna.Framework.Vector2, System.Single, System.Single, Microsoft.Xna.Framework.Color, System.Single)System.Nullable<System.Int32>::get_HasValue()Candide.Graphics.Fonts.IFontProvider::GetRenderFont(System.Single)Microsoft.Xna.Framework.Vector2::.ctor(System.Single)Microsoft.Xna.Framework.Vector2::Normalize()Microsoft.Xna.Framework.Vector2::op_Addition(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)System.Nullable<System.Int32>::GetValueOrDefault()System.Nullable<System.Int32>::.ctor(!0)System.Object::ToString()Microsoft.Xna.Framework.Color::get_Black()Microsoft.Xna.Framework.Vector2::op_Multiply(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)System.Nullable<Microsoft.Xna.Framework.Vector2>::.ctor(!0)
String literals
event:/interface/holder_pickup
DrawInWorldUi
#
public System.Void DrawInWorldUi(Microsoft.Xna.Framework.Graphics.SpriteBatch batch)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
B1820CB44BE7B8A9B1684EB7D4EEFF6983A3ADFD11D13D86E15CF75FF991190B - Body hash
043399D0AD7A5153ABDD35A199E4062888F67EF1ACB34B28FEF15277E46A17AA - IL size749
Referenced calls
System.Collections.Generic.Dictionary<System.Guid, CandideServer.Models.Logistics.LogisticsConnectionModel>::get_Values()Dictionary.ValueCollection<System.Guid, CandideServer.Models.Logistics.LogisticsConnectionModel>::GetEnumerator()Dictionary.ValueCollection.Enumerator<System.Guid, CandideServer.Models.Logistics.LogisticsConnectionModel>::get_Current()System.Nullable<System.Guid>::.ctor(!0)Candide.GameModels.GameState::TryGetBuilding(System.Nullable<System.Guid>, Candide.GameModels.Models.Constructions.Building&)System.Nullable<System.Guid>::get_HasValue()System.Nullable<System.Guid>::GetValueOrDefault()System.Guid::op_Inequality(System.Guid, System.Guid)System.Collections.Generic.List<System.Guid>::IndexOf(!0)System.Nullable<System.Int32>::.ctor(!0)System.Nullable<System.Int32>::GetValueOrDefault()CandideServer.Toolkit.TileBoundsHelper::GetCenteredPositionFromTileBounds(Microsoft.Xna.Framework.Rectangle)Candide.PlayerMode.Logistics.LogisticsModeManager::GetPos(Microsoft.Xna.Framework.Vector2, System.Boolean)Microsoft.Xna.Framework.Color::get_Black()System.Nullable<Microsoft.Xna.Framework.Color>::.ctor(!0)Candide.PlayerMode.Logistics.LogisticsModeManager::DrawAnimatedLine(Microsoft.Xna.Framework.Graphics.SpriteBatch, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2, CandideServer.Models.Logistics.LogisticsConnectionModel, System.Nullable<System.Int32>, System.Single, System.Nullable<Microsoft.Xna.Framework.Color>)Dictionary.ValueCollection.Enumerator<System.Guid, CandideServer.Models.Logistics.LogisticsConnectionModel>::MoveNext()System.IDisposable::Dispose()System.Nullable<Candide.PlayerMode.Logistics.EditingConnection>::get_HasValue()System.Nullable<Candide.PlayerMode.Logistics.EditingConnection>::GetValueOrDefault()Candide.PlayerMode.Logistics.LogisticsModeManager::get_CursorWorldPos()System.Collections.Generic.Dictionary<System.Guid, Candide.GameModels.Models.Constructions.Building>::TryGetValue(!0, !1&)System.Collections.Generic.Dictionary<System.Guid, Candide.GameModels.Models.Constructions.Building>::GetEnumerator()Dictionary.Enumerator<System.Guid, Candide.GameModels.Models.Constructions.Building>::get_Current()System.Collections.Generic.KeyValuePair<System.Guid, Candide.GameModels.Models.Constructions.Building>::Deconstruct(!0&, !1&)Candide.PlayerMode.Logistics.LogisticsModeManager::DrawIoButtons(Microsoft.Xna.Framework.Graphics.SpriteBatch, Microsoft.Xna.Framework.Vector2, Candide.GameModels.Models.Constructions.Building)Dictionary.Enumerator<System.Guid, Candide.GameModels.Models.Constructions.Building>::MoveNext()
DrawIoButtons
#
private System.Void DrawIoButtons(Microsoft.Xna.Framework.Graphics.SpriteBatch batch, Microsoft.Xna.Framework.Vector2 centerPos, Candide.GameModels.Models.Constructions.Building building)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
AEC9AF48D6B80D0A2052FCA6F6193C2C16FB212F1DE9D3F9B8E132B8C56F9BC9 - Body hash
0FB5E371C0F86091B2A8CA2EA3F1233C963A0A428067F0CB9063911241390BB0 - IL size719
Referenced calls
Candide.PlayerMode.Logistics.LogisticsModeManager::get_CursorWorldPos()Microsoft.Xna.Framework.Vector2::op_Division(Microsoft.Xna.Framework.Vector2, System.Single)Microsoft.Xna.Framework.Rectangle::Contains(Microsoft.Xna.Framework.Vector2)System.Nullable<System.Guid>::get_HasValue()System.Nullable<Candide.PlayerMode.Logistics.EditingConnection>::get_HasValue()System.Nullable<Candide.PlayerMode.Logistics.EditingConnection>::get_Value()System.Guid::op_Inequality(System.Guid, System.Guid)Candide.PlayerMode.Logistics.LogisticsModeManager::GetPos(Microsoft.Xna.Framework.Vector2, System.Boolean)System.Nullable<Shared.Models.Buildings.BuildingLogisticsConfig>::get_HasValue()Microsoft.Xna.Framework.Vector2::op_Subtraction(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)Microsoft.Xna.Framework.Vector2::LengthSquared()System.Nullable<System.Guid>::get_Value()System.Guid::op_Equality(System.Guid, System.Guid)System.Nullable<System.Guid>::.ctor(!0)System.Nullable<Microsoft.Xna.Framework.Vector2>::.ctor(!0)Microsoft.Xna.Framework.Color::get_White()CandideCreator.Shared.Graphics.SpriteSheet::DrawCentered(Microsoft.Xna.Framework.Graphics.SpriteBatch, Microsoft.Xna.Framework.Vector2, System.Int32, Microsoft.Xna.Framework.Color, System.Single)
DrawTooltip
#
public System.Void DrawTooltip(Candide.CandideUI.UiRenderContext renderContext, Candide.GameModels.Models.Constructions.Building hoveredBuilding, System.Boolean isOutput, System.Nullable<Microsoft.Xna.Framework.Vector2> pos)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
42332FF6009A9D47D43C014B3A2C63C3A09FAEB21E2620526754BB09C3B8B6C4 - Body hash
58E7E5526790112D18DB3ED99DB2514E300267BE3F529285EC11D86A363C034A - IL size402
Referenced calls
Candide.PlayerMode.AbstractModeManager::get_IsMouseOverGui()Shared.Data.ConstructionDataBase::GetConstructionOrMissing(System.String)Candide.Database.IconDataBase::GetIconOrMissing(System.String)Candide.Graphics.Fonts.CandideFont::get_RenderFont()Shared.Text.StringExtensions::GetTranslation(Shared.Text.StringId)Candide.CandideUI.ImmediateUi.ImmediateCandideIconLabel::Measure(CandideCreator.Shared.Graphics.IconFlag, FontStashSharp.SpriteFontBase, System.String)System.Nullable<Microsoft.Xna.Framework.Vector2>::get_HasValue()Candide.Graphics.Camera::GetMatrix()System.Nullable<Microsoft.Xna.Framework.Vector2>::get_Value()Candide.CandideUI.UiMathExtensions::Transform(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Matrix&)Candide.CandideUI.CandideUiSystem::get_Scale()System.MathF::Ceiling(System.Single)Microsoft.Xna.Framework.Vector2::.ctor(System.Single, System.Single)Microsoft.Xna.Framework.Vector2::op_Subtraction(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)Candide.PlayerMode.Logistics.LogisticsModeManager::get_CursorWindowPos()Microsoft.Xna.Framework.Vector2::.ctor(System.Single)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)Microsoft.Xna.Framework.Vector2::get_Zero()Microsoft.Xna.Framework.Vector2::get_One()Candide.CandideUI.Transform::.ctor(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2, System.Single)Candide.CandideUI.ImmediateUi.ImmediateCandideWindow::Draw(Candide.CandideUI.UiRenderContext, System.Single, System.Single, Microsoft.Xna.Framework.Vector2, System.Single)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)Candide.CandideUI.Transform::AddTransform(Candide.CandideUI.Transform&)Shared.Text.StringDefinitions::GetString(System.String)Candide.CandideUI.ImmediateUi.ImmediateCandideTextLabel::Draw(Candide.CandideUI.UiRenderContext, FontStashSharp.SpriteFontBase, System.String, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Color)
String literals
Buildings_InputBuildings_Output
DrawUI
#
public System.Void DrawUI(Candide.CandideUI.UiRenderContext renderContext)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
8934928F3FFD2594B3804CDB04860722DB2DF42C2AC1CCCDC9B65E39639CC0A6 - Body hash
89E0740F8710056E4FA5D53CD994CD9154ED29637E7E78733C63D5AFB11FD801 - IL size241
Referenced calls
System.Nullable<System.Guid>::get_HasValue()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&)Candide.PlayerMode.Logistics.LogisticsModeManager::DrawTooltip(Candide.CandideUI.UiRenderContext, Candide.GameModels.Models.Constructions.Building, System.Boolean, System.Nullable<Microsoft.Xna.Framework.Vector2>)System.Nullable<Candide.PlayerMode.Logistics.EditingConnection>::get_HasValue()System.Nullable<Candide.PlayerMode.Logistics.EditingConnection>::get_Value()CandideServer.Toolkit.TileBoundsHelper::GetCenteredPositionFromTileBounds(Microsoft.Xna.Framework.Rectangle)Candide.PlayerMode.Logistics.LogisticsModeManager::GetPos(Microsoft.Xna.Framework.Vector2, System.Boolean)System.Nullable<Microsoft.Xna.Framework.Vector2>::.ctor(!0)Candide.CandideUI.CandideUiSystem::get_ControllerEnabled()Candide.Globals::get_CenterOfScreen()Candide.CandideUI.CandideUiSystem::get_Scale()Microsoft.Xna.Framework.Color::get_White()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)
Exit
#
public System.Void Exit()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
DBF23BC1F0F98E885F98189ADD7C1B82B889585F4CB151D4FE155513BC60E0E3 - Body hash
98BF9A474307AFDB5F5DADEDD81E9A27F7FC4FD35C13B50766A8FB2AAA376542 - IL size17
Referenced calls
GetPos
#
private Microsoft.Xna.Framework.Vector2 GetPos(Microsoft.Xna.Framework.Vector2 centerPos, System.Boolean isOutput)
Method metadata
- Visibilityprivate
- Return type
Microsoft.Xna.Framework.Vector2 - StaticTrue
- VirtualFalse
- Hash
59165A171CDDFDAEFE0AB3ECF2BAEF567409E07102A445A57E01544F4B009C9B - Body hash
067D7CD2BB89E730EAAA78BB1BCC95C7D84B547D9FE5943150252A724552382D - IL size47
Referenced calls
Microsoft.Xna.Framework.Vector2::.ctor(System.Single, System.Single)Microsoft.Xna.Framework.Vector2::op_Addition(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)Microsoft.Xna.Framework.Vector2::op_Subtraction(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)
OnEntering
#
public System.Void OnEntering()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
457C5ABF0DBA7BBE970900D0FBFA78F993A4CA6B5570E96D3261EB880E67C39E - Body hash
B58B638421C7D03371388B4079D9E720508CE2269F89B2CECCB912CCE2DAABF5 - IL size140
Referenced calls
Candide.CandideUI.CandideExtendedInteractionsHandler::ResetDraggedContent()CandideCreator.Shared.Helpers.WarningHelper::Warning(System.String)Candide.PlayerMode.Logistics.LogisticsModeManager::Exit()Candide.Sound.SoundPlayer::PlayEventOneShot(System.String, System.Single, System.Single)Candide.PlayerMode.AbstractModeManager::get_CandideDesktop()Candide.CandideUI.CandideUiSystem::SetDesktop(Candide.CandideUI.CandideDesktop)Candide.CandideUI.ControllerUiInputSystem::set_DisableUiTemporarily(System.Boolean)
String literals
Town is nullevent:/interface/ui_logistics_mode_enter
OnLeaving
#
public System.Void OnLeaving()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
69EEFA6A81FA8E2013D54DE29DF17DCC0C53888EC736968D45FB9247FA326ACC - Body hash
67955D4B956AA6C5B2BA896BA130E1356C0ECB9D7ADD4EEB8E38C84090290667 - IL size18
Referenced calls
Candide.CandideUI.ControllerUiInputSystem::set_DisableUiTemporarily(System.Boolean)Candide.PlayerMode.AbstractModeManager::get_CandideDesktop()Candide.CandideUI.CandideDesktop::CloseAll()
Update
#
public System.Void Update(Microsoft.Xna.Framework.GameTime gameTime)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
35B35B0657BA8C0510577F681AC2A64825C4FD9464E0EDEB9737828F579B1051 - Body hash
D9AC966990E3C24452C4E5DD529A0A535B2131CBC2089840A0CE9FEFC025D1C1 - IL size670
Referenced calls
Candide.Input.SuperKeybind::Pressed()Candide.PlayerMode.AbstractModeManager::get_CandideDesktop()Candide.CandideUI.Windows.CandideModalWindow::ModalAlreadyExists(Candide.CandideUI.CandideDesktop)Candide.CandideUI.CandideUiSystem::get_InputFocusableElement()System.Nullable<Candide.PlayerMode.Logistics.EditingConnection>::get_HasValue()Candide.CandideUI.CandideUiSystem::get_ControllerEnabled()Candide.PlayerMode.Construction.ConstructionContext::SetSubMode(Candide.PlayerMode.SubMode)Candide.PlayerMode.Logistics.LogisticsModeManager::Exit()Microsoft.Xna.Framework.GameTime::get_ElapsedGameTime()System.TimeSpan::get_TotalSeconds()Candide.PlayerMode.AbstractModeManager::get_IsMouseOverGui()System.Nullable<Candide.PlayerMode.Logistics.EditingConnection>::GetValueOrDefault()System.Nullable<System.Guid>::get_HasValue()Candide.Input.SuperKeybind::Down()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&)System.Nullable<Candide.PlayerMode.Logistics.EditingConnection>::.ctor(!0)Candide.Sound.SoundPlayer::PlayEventOneShot(System.String, System.Single, System.Single)Candide.Input.SuperKeybind::Up()System.Nullable<System.Guid>::GetValueOrDefault()System.Guid::op_Inequality(System.Guid, System.Guid)System.Collections.Generic.Dictionary<System.Guid, CandideServer.Models.Logistics.LogisticsConnectionModel>::get_Values()Dictionary.ValueCollection<System.Guid, CandideServer.Models.Logistics.LogisticsConnectionModel>::GetEnumerator()Dictionary.ValueCollection.Enumerator<System.Guid, CandideServer.Models.Logistics.LogisticsConnectionModel>::get_Current()Dictionary.ValueCollection.Enumerator<System.Guid, CandideServer.Models.Logistics.LogisticsConnectionModel>::MoveNext()System.IDisposable::Dispose()Candide.GameModels.Services.LogisticsService::Send_LogisticsRemoveConnection(System.Guid)LogisticsModeManager.<>c::<Update>b__20_0()System.Action::.ctor(System.Object, System.IntPtr)Candide.GameModels.Managers.LogisticsManager::TryCreateNewConnection(Candide.CandideUI.CandideDesktop, System.Guid, System.Guid, System.Action)Candide.CandideUI.ControllerUiInputSystem::set_DisableUiTemporarily(System.Boolean)
String literals
event:/interface/holder_pickupevent:/interface/holder_drop