CandideServer.Buildings.BuildingControllers.MaterialStorageController
Type JSONpublic class in CandideServer.Buildings.BuildingControllers
Type metadata
- Assembly
CandideServer - Namespace
CandideServer.Buildings.BuildingControllers - Base type
CandideServer.Buildings.BuildingControllers.AbstractBuildingController - Hash
43E8B7B87F2FFCBF6F9F4F448D6CE6F1174CE824F695777273C966B9ABF0BBE5
Relationships
Fields
| Name | Visibility | Signature |
|---|---|---|
ResourceOffsets# | public | public System.Collections.Generic.Dictionary<System.String, Microsoft.Xna.Framework.Vector2> ResourceOffsets |
Methods
DrawAllOffsets
#
public System.Void DrawAllOffsets(CandideServer.SimulationModels.BuildingSimulationModel building)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
23DB91AAB1223A1ACF5A8F2B02BE0BB4EDCE4698C9BFC974C8841EBAC035A6F5 - Body hash
AC2F19F971B5BD64CD3FEADB07A1B27D43545901D308627C597C61709F32C63D - IL size311
Referenced calls
System.Collections.Generic.Dictionary<System.String, Microsoft.Xna.Framework.Vector2>::.ctor()Microsoft.Xna.Framework.Vector2::.ctor(System.Single, System.Single)System.Collections.Generic.Dictionary<System.String, Microsoft.Xna.Framework.Vector2>::Add(!0, !1)Microsoft.Xna.Framework.Rectangle::get_Center()Microsoft.Xna.Framework.Point::ToVector2()Microsoft.Xna.Framework.Vector2::op_Multiply(Microsoft.Xna.Framework.Vector2, System.Single)System.Collections.Generic.Dictionary<System.String, Microsoft.Xna.Framework.Vector2>::get_Values()Dictionary.ValueCollection<System.String, Microsoft.Xna.Framework.Vector2>::GetEnumerator()Dictionary.ValueCollection.Enumerator<System.String, Microsoft.Xna.Framework.Vector2>::get_Current()Microsoft.Xna.Framework.Vector2::op_Addition(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)Microsoft.Xna.Framework.Color::get_White()CandideCreator.Shared.Graphics.VisualDebug::CircleOutline(Microsoft.Xna.Framework.Vector2, System.Single, System.Single, Microsoft.Xna.Framework.Color, System.Single)Dictionary.ValueCollection.Enumerator<System.String, Microsoft.Xna.Framework.Vector2>::MoveNext()System.IDisposable::Dispose()
String literals
resource:lumberresource:stoneresource:clayresource:bucketresource:brickresource:marbleresource:concrete
GetStorageMaximumForLevel
#
public System.Collections.Generic.Dictionary<System.String, System.Int32> GetStorageMaximumForLevel(System.Int32 level)
Method metadata
- Visibilitypublic
- Return type
System.Collections.Generic.Dictionary<System.String, System.Int32> - StaticFalse
- VirtualFalse
- Hash
E6A1199940DEFE723774F5D330E59BBD1BEA04E45454F1CF7DCBA601B8A912AC - Body hash
85CB3EFDFA85AF71E4AED8AE69134C19399005B58E8B87FA9D73B013BB70ADF5 - IL size405
Referenced calls
System.Collections.Generic.Dictionary<System.String, System.Int32>::.ctor()System.Collections.Generic.Dictionary<System.String, System.Int32>::Add(!0, !1)
Called by
String literals
resource:lumberresource:stoneresource:clayresource:brickresource:marbleresource:concreteresource:bucket
OnLoaded
#
public System.Void OnLoaded()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
B63E00640175D10027842D294C78B62549FF781CC0466E1D8CCFD84F2A46DE12 - Body hash
8A6F127E0053EB13AFDA0F394E4CD706376ECB1E15358DC72521A636A4B8AD55 - IL size1
OnNewlyCreated
#
public System.Void OnNewlyCreated()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
946F87423D18A1B5C1ADFD68D4DCC5C3C15C1D6883F6FF779BBE55CCF999B50C - Body hash
C9E446FC1621237F38E407F97D6BE4F75E0ACE0B0C51B03664E1A96C67924E32 - IL size239
Referenced calls
Shared.Data.ConstructionDataBase::GetConstructionOrMissing(System.String)System.Guid::NewGuid()Shared.Messages.CreateNewInventoryMessage::.ctor()Shared.Text.StringId::op_Implicit(System.String)CandideServer.ServerControllers.BuildingsSController::CreateBuildingInventory(CandideServer.Models.Buildings.BuildingInstanceModel, Shared.Messages.CreateNewInventoryMessage, CandideServer.ServerControllers.IOInventoryCreationType)CandideServer.MessageModels.InternalResourceStorage.CreateNewInternalResourceStorageMessage::.ctor()System.Collections.Generic.Dictionary<System.String, System.Int32>::.ctor()System.Collections.Generic.Dictionary<System.String, System.Int32>::Add(!0, !1)CandideServer.Buildings.BuildingControllers.MaterialStorageController::GetStorageMaximumForLevel(System.Int32)CandideServer.ServerManagers.BuildingsServerManager::CreateInternalResourceStorageForBuilding(CandideServer.Models.Buildings.BuildingInstanceModel, CandideServer.MessageModels.InternalResourceStorage.CreateNewInternalResourceStorageMessage, CandideServer.ServerControllers.IOStorageCreationType)
String literals
Object_Storageresource:lumberresource:stoneresource:clayresource:brickresource:marbleresource:concreteresource:bucket
OnUpgraded
#
public System.Void OnUpgraded(Shared.Models.Construction.ConstructionModel upgradeConstructionModel, Shared.Models.Buildings.BuildingData upgradedBuildingData)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
534963EE70FEE5656C94D7ABC0BDC6B5D25E22B3E428835F5CB7B6EF7E937D06 - Body hash
CF27EC1A3FAF70BCAD7478601415F57503AFA9F23F78A230DA0F43370CF13EED - IL size84
Referenced calls
CandideServer.Buildings.BuildingControllers.AbstractBuildingController::OnUpgraded(Shared.Models.Construction.ConstructionModel, Shared.Models.Buildings.BuildingData)System.Nullable<System.Guid>::get_Value()CandideServer.Buildings.BuildingControllers.MaterialStorageController::GetStorageMaximumForLevel(System.Int32)MaterialStorageController.<>c::<OnUpgraded>b__6_0(System.Collections.Generic.KeyValuePair<System.String, System.Int32>)System.Func<System.Collections.Generic.KeyValuePair<System.String, System.Int32>, Shared.Models.Items.ResourceAmount>::.ctor(System.Object, System.IntPtr)System.Linq.Enumerable::Select(System.Collections.Generic.IEnumerable<!!0>, System.Func<!!0, !!1>)CandideServer.ServerControllers.InternalResourceStorageSController::UpdateInternalResourceStorageMaximums(System.Guid, System.Collections.Generic.IEnumerable<Shared.Models.Items.ResourceAmount>)
SetUpTiles
#
private System.Void SetUpTiles(System.Int32 level)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
F125A5D45C75453F45E37E7B5049CFD8CD30ECE94F77A7478CB36241C3D9F4E4 - Body hash
4E76543465DC69627C29834CE94E7A18CE58B6EB0D27CA7C806715A8D2434CF5 - IL size450
Referenced calls
Microsoft.Xna.Framework.Rectangle::.ctor(System.Int32, System.Int32, System.Int32, System.Int32)System.Nullable<WorldTile.GroundType>::.ctor(!0)System.Nullable<WorldTile.StructureType>::.ctor(!0)CandideServer.ServerManagers.WorldTileServerManager::FillRectangle(Microsoft.Xna.Framework.Rectangle, System.Nullable<WorldTile.GroundType>, System.Nullable<WorldTile.StructureType>)
Update
#
public System.Void Update(System.Single dt)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
BCAD64DA1950849F0BB610F27B210601C9E3AE160AE8E3B13DD2C2349F084303 - Body hash
AED79C466F1182F48EF784464BDD99CA46869D697337175A3BA376404AFBCE67 - IL size40