CandideServer.Helpers.BucketEntityHelper
Type JSONpublic class in CandideServer.Helpers
Type metadata
- Assembly
CandideServer - Namespace
CandideServer.Helpers - Base type
System.Object - Hash
7D8CD26A36DE06ED00AA9CCA8141E8152B3C48C5E0543894F557921C10AA9447
Relationships
Base type
System.Object
Methods
CreateBucketMaterialAggregateFromEntityParamters
#
public System.Void CreateBucketMaterialAggregateFromEntityParamters(CandideServer.Entities.ServerEntityModel bucketEntity)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
EE9D6FFADADF34B2AA6ECF8A5931B05186DCEABBB2F5DA7563AFA3BDE9089A72 - Body hash
FC5C511D033AA19E8E2685DEAA97224EF6A73B645697496FD35570B08AECCF5B - IL size105
Referenced calls
Shared.Helpers.BucketEntityHelperShared::get_GetNewDefaultConstructionMaterials()System.Collections.Generic.Dictionary<System.String, System.String>::TryGetValue(!0, !1&)System.String::IsNullOrWhiteSpace(System.String)System.Int32::Parse(System.String)System.Collections.Generic.Dictionary<System.String, System.Int32>::set_Item(!0, !1)
String literals
bucket_content_resource_idbucket_content_amount
IsBucketEmpty
#
public System.Boolean IsBucketEmpty(System.Collections.Generic.Dictionary<System.String, System.String> entityParameters)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
86176BF7241D1E14ED1B7AE29F3CADDEB36AA2B9C58CF3CCED104285F63E0A16 - Body hash
188796C83AB68B17B0A1A55EB75912398C73469A23A3CBA3544A089DA3743DF2 - IL size34
Referenced calls
System.Collections.Generic.Dictionary<System.String, System.String>::TryGetValue(!0, !1&)System.String::op_Equality(System.String, System.String)
Called by
String literals
bucket_content_typeEmpty
SetEmpty
#
public System.Void SetEmpty(System.Collections.Generic.Dictionary<System.String, System.String>& parametersRef, Shared.Models.Construction.ConstructionMaterialsAggregate& constructionMaterials)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
631F13D2E8D7D6014ABC3147F6F7ABCD567026E7D00CBADC1215BA62E0F09F04 - Body hash
6482D99F900EA791FF44FCE0A625AEB46244D7CC24D6D05CD26548CFDF035E63 - IL size64
Referenced calls
System.Collections.Generic.Dictionary<System.String, System.String>::set_Item(!0, !1)Shared.Models.Construction.ConstructionMaterialsAggregate::EmptyAllExcept(System.String)
String literals
bucket_content_typeEmptybucket_content_resource_idbucket_content_amount0resource:bucket
TryGetBucketContentFromEntity
#
public System.Boolean TryGetBucketContentFromEntity(CandideServer.Entities.ServerEntityModel bucketEntity, out Shared.Models.Construction.ConstructionMaterialsAggregate& contentAggregate)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
911A5D9424B86F8B558A3E0AC8CDC3A367BA95A02718C0743ECDD78FB4B10F9B - Body hash
D635A80BF264D2FADA502CE9CA0A773A43D049278B5275EAC9B68CF5C7C2C5F5 - IL size254
Referenced calls
System.Collections.Generic.Dictionary<System.String, System.String>::TryGetValue(!0, !1&)System.String::IsNullOrWhiteSpace(System.String)System.Int32::Parse(System.String)Shared.Models.Construction.ConstructionMaterialsAggregate::.ctor()System.Collections.Generic.Dictionary<System.String, System.Int32>::.ctor()System.Collections.Generic.Dictionary<System.String, System.Int32>::Add(!0, !1)Shared.Models.Construction.ConstructionMaterialsAggregate::GetAmountForResource(System.String)System.Collections.Generic.Dictionary<System.String, System.Int32>::GetEnumerator()Dictionary.Enumerator<System.String, System.Int32>::get_Current()System.Collections.Generic.KeyValuePair<System.String, System.Int32>::get_Key()System.String::op_Inequality(System.String, System.String)System.Collections.Generic.KeyValuePair<System.String, System.Int32>::get_Value()System.Collections.Generic.Dictionary<System.String, System.Int32>::set_Item(!0, !1)Dictionary.Enumerator<System.String, System.Int32>::MoveNext()System.IDisposable::Dispose()
Called by
CandideServer.Citizens.GenericServerCitizenController::TryFindNearbyEmptyBucketCandideServer.Citizens.GenericServerCitizenController::TryFindNearbyResourceToPickUpCandideServer.Citizens.GenericServerCitizenController::TryGetClosestEmptyBucketInTownCandideServer.Entities.Controllers.ServerConcreteMixerController::OnInteractCandideServer.ServerServices.BuildingsServerService::OnReceive_GetTryBucketDepositResourceStorageEndpoint
String literals
bucket_content_resource_idbucket_content_amountresource:bucket
TryGetBucketContentFromEntity
#
public System.Boolean TryGetBucketContentFromEntity(CandideServer.Entities.ServerEntityModel bucketEntity, out System.String& contentResourceId, out System.Int32& resourceAmount)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
D5EA469A9C64A4FFFCE090A9B2627205FFFD73B0597E47EA667C85A17E3EA606 - Body hash
1D2FDAB8B249B93CB365570AAC1310BBD1777D717486F8BF7E8D8CADCFB4F4A4 - IL size231
Referenced calls
System.Collections.Generic.Dictionary<System.String, System.String>::TryGetValue(!0, !1&)System.String::IsNullOrWhiteSpace(System.String)System.Int32::Parse(System.String)Shared.Models.Construction.ConstructionMaterialsAggregate::GetAmountForResource(System.String)System.Collections.Generic.Dictionary<System.String, System.Int32>::GetEnumerator()Dictionary.Enumerator<System.String, System.Int32>::get_Current()System.Collections.Generic.KeyValuePair<System.String, System.Int32>::get_Key()System.String::op_Equality(System.String, System.String)System.Collections.Generic.KeyValuePair<System.String, System.Int32>::get_Value()Dictionary.Enumerator<System.String, System.Int32>::MoveNext()System.IDisposable::Dispose()
String literals
bucket_content_resource_idbucket_content_amountresource:bucket
TrySetBucketParameters
#
public System.Boolean TrySetBucketParameters(System.Collections.Generic.Dictionary<System.String, System.String>& parametersRef, Shared.Models.Construction.ConstructionMaterialsAggregate& constructionMaterials, BucketEntityHelperShared.BucketContentType type, System.String resourceId, System.Int32 amount)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
E6E19B172354672B9A8A919801036557DA2FB357AFBAB61C86BED93F8460F510 - Body hash
C76C6DDA56681F7D63A25F1C5E763FF4CBA6C2C62C2CBDEAACB4AEEA02D9F735 - IL size312
Referenced calls
CandideServer.Helpers.BucketEntityHelper::SetEmpty(System.Collections.Generic.Dictionary<System.String, System.String>&, Shared.Models.Construction.ConstructionMaterialsAggregate&)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::.ctor(System.Int32, System.Int32)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendFormatted(System.String)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendLiteral(System.String)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendFormatted(!!0)System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::ToStringAndClear()CandideCreator.Shared.Helpers.ServerWarningHelper::Warning(System.String)Shared.Data.ConstructionResourcesDataBase::GetConstructionResourceOrNull(System.String)System.Nullable<Shared.Models.Construction.ConstructionResourceDataModel>::get_HasValue()System.Object::ToString()System.Collections.Generic.Dictionary<System.String, System.String>::set_Item(!0, !1)System.Int32::ToString()Shared.Models.Construction.ConstructionMaterialsAggregate::EmptyAllExcept(System.String)System.Collections.Generic.Dictionary<System.String, System.Int32>::set_Item(!0, !1)System.ArgumentOutOfRangeException::.ctor(System.String, System.Object, System.String)
String literals
TrySetBucketParameters: Received BucketContentTypebut no resource ID was given. Defaulting tobut could not find the resource ID in the database. Defaulting tobucket_content_typebucket_content_resource_idbucket_content_amountresource:buckettype