Candide.GameModels.Controllers.BuildingsController
Type JSONpublic class in Candide.GameModels.Controllers
Type metadata
- Assembly
Romestead - Namespace
Candide.GameModels.Controllers - Base type
System.Object - Hash
87FAC5FD7541DCF76439735145ABE2B55625A043AA6D35E2106B33660124062B
Relationships
Base type
System.Object
Fields
| Name | Visibility | Signature |
|---|---|---|
BuildingAdded# | private | private System.EventHandler<Candide.GameModels.Controllers.BuildingAddedArgs> BuildingAdded |
BuildingChanged# | private | private System.EventHandler<Candide.GameModels.Controllers.BuildingChangedArgs> BuildingChanged |
BuildingRemoved# | private | private System.EventHandler<Candide.GameModels.Controllers.BuildingRemovedArgs> BuildingRemoved |
BuildingUpgraded# | private | private System.EventHandler<Candide.GameModels.Controllers.BuildingUpgradedArgs> BuildingUpgraded |
ReuseCitizenSlotList# | private | private System.Collections.Generic.List<Candide.GameModels.Models.Citizens.CitizenSlot> ReuseCitizenSlotList |
Events
| Name | Visibility | Signature |
|---|---|---|
BuildingAdded# | public | public System.EventHandler<Candide.GameModels.Controllers.BuildingAddedArgs> BuildingAdded |
BuildingChanged# | public | public System.EventHandler<Candide.GameModels.Controllers.BuildingChangedArgs> BuildingChanged |
BuildingRemoved# | public | public System.EventHandler<Candide.GameModels.Controllers.BuildingRemovedArgs> BuildingRemoved |
BuildingUpgraded# | public | public System.EventHandler<Candide.GameModels.Controllers.BuildingUpgradedArgs> BuildingUpgraded |
Methods
BuildingSpawned
#
public System.Void BuildingSpawned(CandideServer.Models.Buildings.BuildingInstanceModel instanceModel, System.Collections.Generic.List<CandideServer.Models.Citizen.CitizenSlotModel> buildingCitizenSlots)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
37A574E32F327C8A838985B965BBA4898BF1FF421B25A69334920FF0A5BA4B10 - Body hash
5E6F6F529E006C968E7A2EB5F4C902A147DDDC154456FB536E6F815CF4274548 - IL size179
Referenced calls
System.Collections.Generic.Dictionary<System.Guid, Candide.GameModels.Models.Constructions.Building>::ContainsKey(!0)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::.ctor(System.Int32, System.Int32)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.GameModels.Models.Constructions.Building::.ctor(CandideServer.Models.Buildings.BuildingInstanceModel, System.Collections.Generic.IEnumerable<CandideServer.Models.Citizen.CitizenSlotModel>)System.Collections.Generic.Dictionary<System.Guid, Candide.GameModels.Models.Constructions.Building>::set_Item(!0, !1)System.EventHandler<Candide.GameModels.Controllers.BuildingAddedArgs>::Invoke(System.Object, !0)
String literals
Building spawned with ID:but a building with that id already exists.
RemoveBuilding
#
public System.Void RemoveBuilding(Candide.GameModels.Controllers.BuildingRemovedArgs removeArgs)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
F8F9248D7462251B8BF484BD8E389A01AAE29A44C0A6B2675ABEA46343456118 - Body hash
EF39F8EAE53B7D0D525B22D0D92697F76B145BA5526B9A308A34E036954C46EC - IL size35
Referenced calls
System.Collections.Generic.Dictionary<System.Guid, Candide.GameModels.Models.Constructions.Building>::Remove(!0)System.EventHandler<Candide.GameModels.Controllers.BuildingRemovedArgs>::Invoke(System.Object, !0)
RemoveSlotReferencesToCitizenExceptSlotId
#
private System.Void RemoveSlotReferencesToCitizenExceptSlotId(System.Guid citizenId, System.Guid slotId)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
9DB4AAF7B08366F8AF831458AA04D6EF43D0D9C5353D40C1B61D10688FBC785E - Body hash
C6220CFF2D9CBADC23CB43A2806DA5D94A263F7FCB1CAC06DCB58583E46F27CB - IL size221
Referenced calls
System.Collections.Generic.List<Candide.GameModels.Models.Citizens.CitizenSlot>::Clear()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()System.Collections.Generic.List<Candide.GameModels.Models.Citizens.CitizenSlot>::GetEnumerator()List.Enumerator<Candide.GameModels.Models.Citizens.CitizenSlot>::get_Current()System.Guid::op_Equality(System.Guid, System.Guid)System.Collections.Generic.List<Candide.GameModels.Models.Citizens.CitizenSlot>::Add(!0)List.Enumerator<Candide.GameModels.Models.Citizens.CitizenSlot>::MoveNext()System.IDisposable::Dispose()Dictionary.ValueCollection.Enumerator<System.Guid, Candide.GameModels.Models.Constructions.Building>::MoveNext()
SyncFullGameState
#
public System.Void SyncFullGameState(CandideServer.ServerServices.GetFullGameStateResponse msg)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
4647AE4A37A1695D01E296233C3E852BCB80399A41026C7CDE921524B70D802D - Body hash
13FC8F10F0FF06FDE8B7334C0ED0DCD447EFFFB1DCB4030138E5AF716772F06D - IL size192
Referenced calls
System.Collections.Generic.List<CandideServer.Models.Citizen.CitizenSlotModel>::.ctor()System.Collections.Generic.Dictionary<System.Guid, Candide.GameModels.Models.Constructions.Building>::Clear()System.Collections.Generic.List<CandideServer.Models.Citizen.CitizenSlotModel>::Clear()System.Collections.Generic.List<System.Guid>::GetEnumerator()List.Enumerator<System.Guid>::get_Current()System.Collections.Generic.Dictionary<System.Guid, CandideServer.SimulationModels.CitizenSlotSimulationModel>::get_Item(!0)System.Collections.Generic.List<CandideServer.Models.Citizen.CitizenSlotModel>::Add(!0)List.Enumerator<System.Guid>::MoveNext()System.IDisposable::Dispose()Candide.GameModels.Models.Constructions.Building::.ctor(CandideServer.Models.Buildings.BuildingInstanceModel, System.Collections.Generic.IEnumerable<CandideServer.Models.Citizen.CitizenSlotModel>)System.Collections.Generic.Dictionary<System.Guid, Candide.GameModels.Models.Constructions.Building>::set_Item(!0, !1)Microsoft.Xna.Framework.Rectangle::get_Left()Microsoft.Xna.Framework.Rectangle::get_Top()Microsoft.Xna.Framework.Rectangle::get_Right()Microsoft.Xna.Framework.Rectangle::get_Bottom()Candide.GameModels.Helpers.ClientWorldTileHelper::FillBounds(System.Int32, System.Int32, System.Int32, System.Int32, WorldTile.StructureType)
SyncUpdateBuildingAppeal
#
public System.Void SyncUpdateBuildingAppeal(CandideServer.MessageModels.Buildings.UpdateBuildingAppealMessage msg)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
8DD4A79260EE2F1A4778AF6C9005B1147674B338BD2680CB61E8A82DE23676A6 - Body hash
9B0F87CF29A47E4D3A2F767B6D2168C49D9F22BC2F6994F4E0400CDE950E3103 - IL size77
Referenced calls
System.Nullable<System.Guid>::.ctor(!0)Candide.GameModels.GameState::TryGetBuilding(System.Nullable<System.Guid>, Candide.GameModels.Models.Constructions.Building&)System.EventHandler<Candide.GameModels.Controllers.BuildingChangedArgs>::Invoke(System.Object, !0)
UpdateBuildingParameters
#
public System.Void UpdateBuildingParameters(CandideServer.MessageModels.Buildings.UpdateBuildingParametersMessage msg)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
6CC846B10C423FD4FF6CF07A4E53240CAF03CFF9D14AB23FCD069B1AB4941150 - Body hash
612A658826B973C27D973867E0A066B86B1F7CC21A8E28E7A2C3F22332449B12 - IL size99
Referenced calls
System.Nullable<System.Guid>::.ctor(!0)Candide.GameModels.GameState::TryGetBuilding(System.Nullable<System.Guid>, Candide.GameModels.Models.Constructions.Building&)System.Collections.Generic.Dictionary<System.String, System.String>::GetEnumerator()Dictionary.Enumerator<System.String, System.String>::get_Current()System.Collections.Generic.KeyValuePair<System.String, System.String>::get_Key()System.Collections.Generic.KeyValuePair<System.String, System.String>::get_Value()System.Collections.Generic.Dictionary<System.String, System.String>::set_Item(!0, !1)Dictionary.Enumerator<System.String, System.String>::MoveNext()System.IDisposable::Dispose()
UpdateCitizenAssignments
#
public System.Void UpdateCitizenAssignments(System.Collections.Generic.IEnumerable<CandideServer.MessageModels.Towns.CitizenTownOverviewData> citizenUpdates)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
3F6C332A902F49BFA2DD394E3B384B78645E72D869760027BC72C4959A16D97E - Body hash
59C2C312C659FA033543E5F1BE8CA8E930267A628B889D14E0125DE1283E5B9A - IL size355
Referenced calls
System.Collections.Generic.IEnumerable<CandideServer.MessageModels.Towns.CitizenTownOverviewData>::GetEnumerator()System.Collections.Generic.IEnumerator<CandideServer.MessageModels.Towns.CitizenTownOverviewData>::get_Current()System.Nullable<System.Guid>::get_HasValue()System.Nullable<System.Guid>::get_Value()Candide.GameModels.Controllers.BuildingsController::RemoveSlotReferencesToCitizenExceptSlotId(System.Guid, System.Guid)System.Nullable<System.Guid>::.ctor(!0)Candide.GameModels.GameState::TryGetBuilding(System.Nullable<System.Guid>, Candide.GameModels.Models.Constructions.Building&)Candide.Toolkit.SamuelDevelopmentException::.ctor(System.String)System.Collections.Generic.List<Candide.GameModels.Models.Citizens.CitizenSlot>::GetEnumerator()List.Enumerator<Candide.GameModels.Models.Citizens.CitizenSlot>::get_Current()System.Guid::op_Equality(System.Guid, System.Guid)CandideServer.Data.Citizens.CitizenOverviewData::FromTownOverviewData(CandideServer.MessageModels.Towns.CitizenTownOverviewData)List.Enumerator<Candide.GameModels.Models.Citizens.CitizenSlot>::MoveNext()System.IDisposable::Dispose()System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::.ctor(System.Int32, System.Int32)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendLiteral(System.String)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendFormatted(!!0)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::ToStringAndClear()Candide.GameModels.GameState::TryGetCitizenSlotForCitizenId(System.Guid, Candide.GameModels.Models.Citizens.CitizenSlot&)System.Collections.IEnumerator::MoveNext()
String literals
This should never be possible. Missed setting the values somewhere?Couldn't find the slot for the citizen set to building
UpgradeBuilding
#
public System.Void UpgradeBuilding(CandideServer.Models.Buildings.BuildingInstanceModel buildingInstance, System.Collections.Generic.List<CandideServer.Models.Citizen.CitizenSlotModel> updatedBuildingCitizenSlots)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
C11A340DB284E90A279EC383FA03DC052383CE8EE27E9C0F845DD00A1344FECB - Body hash
3F582330FF9D27FAECA52B31515A3B996C7ECDB5827AB1BFBDE3B4C4E5ECD95F - IL size193
Referenced calls
System.Collections.Generic.Dictionary<System.Guid, Candide.GameModels.Models.Constructions.Building>::TryGetValue(!0, !1&)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::.ctor(System.Int32, System.Int32)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.GameModels.Models.Constructions.Building::UpdateFromModel(CandideServer.Models.Buildings.BuildingInstanceModel, System.Collections.Generic.IEnumerable<CandideServer.Models.Citizen.CitizenSlotModel>)System.EventHandler<Candide.GameModels.Controllers.BuildingUpgradedArgs>::Invoke(System.Object, !0)
String literals
Got message to upgrade building, but we did not have it.