Romestead Assembly Reference

CandideServer.ServerManagers.BuildingsServerManager

Type JSON

public class in CandideServer.ServerManagers

Methods13
Properties0
Fields0
Events0
Type metadata
  • AssemblyCandideServer
  • NamespaceCandideServer.ServerManagers
  • Base typeSystem.Object
  • HashC07723569B7C6F33084FF57EE70E075D811323340CACD8DE11A7249FB9A6EF63

Relationships

Base type

System.Object

Methods

CreateInternalResourceStorageForBuilding

public CandideServer.Models.InternalResourceStorageModel CreateInternalResourceStorageForBuilding(CandideServer.Models.Buildings.BuildingInstanceModel buildingInstance, CandideServer.MessageModels.InternalResourceStorage.CreateNewInternalResourceStorageMessage msg, CandideServer.ServerControllers.IOStorageCreationType type)

Method metadata
  • Visibilitypublic
  • Return typeCandideServer.Models.InternalResourceStorageModel
  • StaticTrue
  • VirtualFalse
  • HashA42E5C21CE3FC58117EE27E3DBF9BAE8C4D1332DC90C76AFF7D361E76554D3DF
  • Body hash3731BED19C5DD4BE577D9AE979DCBC4F017BCF5D0054D3644463B40079BCCFF3
  • IL size99
Referenced calls
Called by
String literals
  • Failed creating InternalResourceStorage for building
  • with ID

DepleteOutputResourceStorage

public System.Nullable<System.Int32> DepleteOutputResourceStorage(CandideServer.ServerManagers.DepleteOutputResourceStorageArgs args)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Nullable<System.Int32>
  • StaticTrue
  • VirtualFalse
  • Hash4C0F8CF23AE9C4B1AE63B31C750D668FB40A3C385CDEF06D2ABDBF8001B0F9A9
  • Body hash84EAA72EF9F40AB5D5804BFB2B0583AA8126515CB4D1C933E17D39D708D0B3F5
  • IL size412
Referenced calls
Called by
String literals
  • Building
  • with ID
  • does not have an internal resource storage.

GetBuildingOutsideWorldId

public System.Guid GetBuildingOutsideWorldId(CandideServer.Models.Buildings.BuildingInstanceModel buildingInstanceModel)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Guid
  • StaticTrue
  • VirtualFalse
  • HashDCB2B7407E06232E54A58C71DEE2C13EFB0D083CBA107EAA64AAFEBE33E819C0
  • Body hash3D8A5B728ED20254B685DC7988E7868D07615F5142CC0C133B7F4A419B25E55F
  • IL size6
Referenced calls
  • System.NotImplementedException::.ctor()

GetBuildingsIntersectingCircleArea

public System.Collections.Generic.IEnumerable<CandideServer.SimulationModels.BuildingSimulationModel> GetBuildingsIntersectingCircleArea(Microsoft.Xna.Framework.Vector2 circlePos, System.Single radius)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Collections.Generic.IEnumerable<CandideServer.SimulationModels.BuildingSimulationModel>
  • StaticTrue
  • VirtualFalse
  • Hash699D69F2695607C2AB27FF703A0C39220CB1E458F89066E0B6E892FDE91F404F
  • Body hashF3CBA3BB4786723AD280A3B4A0B1BBC290D07A3BC1B43BC2F3C45C9B7E61F6A6
  • IL size22
Referenced calls
  • BuildingsServerManager.<GetBuildingsIntersectingCircleArea>d__9::.ctor(System.Int32)
Called by

GetClosestBuilding

public CandideServer.SimulationModels.BuildingSimulationModel GetClosestBuilding(Microsoft.Xna.Framework.Vector2 circlePos, System.String exclusiveBuildingTypeId)

Method metadata
Referenced calls
  • System.Collections.Generic.Dictionary<System.Guid, CandideServer.SimulationModels.BuildingSimulationModel>::get_Values()
  • Dictionary.ValueCollection<System.Guid, CandideServer.SimulationModels.BuildingSimulationModel>::GetEnumerator()
  • Dictionary.ValueCollection.Enumerator<System.Guid, CandideServer.SimulationModels.BuildingSimulationModel>::get_Current()
  • System.String::op_Inequality(System.String, System.String)
  • CandideServer.Toolkit.TileBoundsHelper::GetCenteredPositionFromTileBounds(Microsoft.Xna.Framework.Rectangle)
  • Microsoft.Xna.Framework.Vector2::op_Subtraction(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)
  • Microsoft.Xna.Framework.Vector2::LengthSquared()
  • Dictionary.ValueCollection.Enumerator<System.Guid, CandideServer.SimulationModels.BuildingSimulationModel>::MoveNext()
  • System.IDisposable::Dispose()

GetClosestBuildingIntersectingCircleArea

public CandideServer.SimulationModels.BuildingSimulationModel GetClosestBuildingIntersectingCircleArea(Microsoft.Xna.Framework.Vector2 circlePos, System.Single radius, System.Nullable<System.Guid> townId, System.String exclusiveBuildingTypeId)

Method metadata
Referenced calls
Called by

TryAddResourceAggregateIntoStorage

public System.Boolean TryAddResourceAggregateIntoStorage(Shared.Models.Construction.ConstructionMaterialsAggregate resourceAggregate, CandideServer.SimulationModels.BuildingSimulationModel building)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • Hash65266D56D0943C607984014D5CCADD316E7F59DDCE8D75D9A11A7FD35BC868C7
  • Body hash0DA3B8AF42EF23A5E79993292CECAF7B443B47EEB19D45188A2D8F40DB8579C8
  • IL size184
Referenced calls
Called by
String literals
  • TryAddResourceAggregateIntoStorage
  • : Building does not have an internal resource storage ID set. Building with data
  • and Guid:

TryAddResourceAggregateIntoStorage

public System.Boolean TryAddResourceAggregateIntoStorage(System.String resourceId, System.Int32 resourceAmount, CandideServer.SimulationModels.BuildingSimulationModel building)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • Hash7276C3CF1648E9122C5682DF1D53CC549E526DB9BECF2E87757E87049A3BEEF3
  • Body hashD561F37D2A19DB742A1B3C3767C1802C04CDE78E40D6BF37D2CAC7C14A13F28E
  • IL size185
Referenced calls
String literals
  • TryAddResourceAggregateIntoStorage
  • : Building does not have an internal resource storage ID set. Building with data
  • and Guid:

TryAdjustInternalResourceStorage

public System.Boolean TryAdjustInternalResourceStorage(CandideServer.SimulationModels.BuildingSimulationModel building, Shared.Models.Construction.ConstructionMaterialsAggregate constructionMaterials)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • HashEAAB39320BE96F8E0B2EF0F5E304EC1C4A6BF2A934C7B534BFC513944BBDDD71
  • Body hash7099D82E99CFD583489248AB88BEC4BFDFDB51B69DE6152CE3F7BA411A4C3256
  • IL size184
Referenced calls
Called by
String literals
  • BuildingsServerManager
  • : Building does not have an internal resource storage ID set. Building with data
  • and Guid:

TryDepositResourceEntityIntoStorage

public System.Boolean TryDepositResourceEntityIntoStorage(CandideServer.Entities.ServerEntityModel entity, System.Guid buildingId)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • HashCA041C7C55C8E5115523BC7A7AD059094608D705FE56CCEFF11D0D93A2B46F2A
  • Body hashE434C226C487BC32327C6A4BA61D0E66B2977E1D8D45D897A2D36CEE0A9C1872
  • IL size126
Referenced calls
Called by
String literals
  • TryDepositResourceEntityIntoStorage: Entity does not have any ConstructionMaterials defined or it's empty.
  • resource:bucket

TryRemoveBuilding

public System.Boolean TryRemoveBuilding(System.Guid buildingId, CandideServer.SyncStrategies.SyncStrategy syncStrategy)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • HashAB17EB4E26ED0C6A1DE0EB345001BD40F5B9F562C2898A02460E6AD8CD87BCBB
  • Body hash432FFC03632F76A0587BC5D5FC8747B01ED702DC4ADC112D77384622E7F36D29
  • IL size20
Referenced calls
Called by

TryUpgradeBuilding

public System.Boolean TryUpgradeBuilding(System.Guid buildingId, System.String constructionId, System.Boolean consumeMaterials)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticTrue
  • VirtualFalse
  • HashA6B3AB6861D38E76FC12AD39B8298C363E0F3A6020D9009159211A1D70CA2B88
  • Body hash1D8C777046F665714F167FEB54E65E3090F5EE0334CD3D37B14F0309FB70BCCC
  • IL size434
Referenced calls
Called by
String literals
  • TryUpgradeBuilding: Can't consume materials for upgrade because building doesn't have a town ID.

UpdateBuildingParameters

public System.Void UpdateBuildingParameters(CandideServer.MessageModels.Buildings.UpdateBuildingParametersMessage msg)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticTrue
  • VirtualFalse
  • Hash530432C4A2C87EBE06503A261F8EDBE4FDFB3CCE835DD2F061E892863E2850F3
  • Body hashC0DE6702D6DF054839954F527EE2962BA41A18E54C44721E542C061021DE24BF
  • IL size13
Referenced calls
Called by