CandideServer.ServerManagers.LootServerManager
Type JSONpublic class in CandideServer.ServerManagers
Type metadata
- Assembly
CandideServer - Namespace
CandideServer.ServerManagers - Base type
System.Object - Hash
61B74F2FF83A6F6B6AF3360ADC891303CE24A9988FB434559CF20046A9EF166C
Relationships
Base type
System.Object
Fields
| Name | Visibility | Signature |
|---|---|---|
ReuseInventoryUpdateList# | private | private System.Collections.Generic.List<CandideServer.ServerControllers.UpdateInventoryItemInstanceMessage> ReuseInventoryUpdateList |
ReuseItemAmountsDictionary# | private | private System.Collections.Generic.Dictionary<System.ValueTuple<System.String, System.String>, System.Int32> ReuseItemAmountsDictionary |
ReuseList# | private | private System.Collections.Generic.List<CandideServer.ServerManagers.CreateWorldItemArguments> ReuseList |
Methods
AddDroppedItem
#
private System.Void AddDroppedItem(Shared.Models.DropTables.ItemDrop item, System.Single difficulty)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
09F39B00476E426826D5AF62AB407C3A9B07E99B597B33CE2D0804B96E927737 - Body hash
01EFB2437CD138F3FAAE27626151C8DF64CBC970A71B25FC935BC85289C5CAC5 - IL size195
Referenced calls
System.Random::Next(System.Int32, System.Int32)CandideServer.Database.ServerDropTablesDataBase::GetDropTableItemListOrNull(System.String)CandideServer.ServerManagers.LootServerManager::ProcessDropSystem(Shared.Models.DropTables.DropTableSystem, System.Single)System.String::op_Equality(System.String, System.String)CandideServer.Helpers.ServerRandomItemStatsHelper::RollItemAura2(System.Single, System.Collections.Generic.Dictionary<Shared.Models.Auras.ItemAuraTier, System.Collections.Generic.List<System.String>>)System.ValueTuple<System.String, System.String>::.ctor(!0, !1)System.Collections.Generic.Dictionary<System.ValueTuple<System.String, System.String>, System.Int32>::TryGetValue(!0, !1&)System.Collections.Generic.Dictionary<System.ValueTuple<System.String, System.String>, System.Int32>::set_Item(!0, !1)
String literals
(empty)
DropGoods
#
public System.Void DropGoods(Shared.Models.DropTables.DroppedGoods droppedGoods, Microsoft.Xna.Framework.Vector3 position, Microsoft.Xna.Framework.Vector3 extraVelocity, System.Guid worldId, System.Nullable<System.Int32> owningPlayerId)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
2FB5226EFFA288ED9F4ED979EBAC9EBD1CAAC56D07311B24D7FA3BB1DD034A1D - Body hash
1E1EDFC1C7E0876A507094F1B321843DC6FDF26F8B563B32F0F586E4842E3973 - IL size287
Referenced calls
System.Collections.Generic.List<CandideServer.ServerManagers.CreateWorldItemArguments>::Clear()CandideCreator.Shared.Helpers.RandomHelper::NextFloat(System.Random, System.Single, System.Single)CandideCreator.Shared.Helpers.RandomHelper::NextDouble(System.Random, System.Double, System.Double)System.Guid::NewGuid()CandideServer.ServerControllers.ItemInstanceSController::CreateNewItemInstance(System.String, System.Int32, System.Guid, System.Nullable<System.Guid>, System.String)System.Math::Cos(System.Double)System.Math::Sin(System.Double)Microsoft.Xna.Framework.Vector3::.ctor(System.Single, System.Single, System.Single)Microsoft.Xna.Framework.Vector3::op_Multiply(System.Single, Microsoft.Xna.Framework.Vector3)Microsoft.Xna.Framework.Vector3::get_UnitZ()Microsoft.Xna.Framework.Vector3::op_Multiply(Microsoft.Xna.Framework.Vector3, System.Single)Microsoft.Xna.Framework.Vector3::op_Addition(Microsoft.Xna.Framework.Vector3, Microsoft.Xna.Framework.Vector3)System.Collections.Generic.List<CandideServer.ServerManagers.CreateWorldItemArguments>::Add(!0)CandideServer.ServerManagers.WorldItemServerManager::SpawnWorldItems(System.Collections.Generic.List<CandideServer.ServerManagers.CreateWorldItemArguments>, System.Guid, System.Nullable<System.Int32>)
Called by
CandideServer.Entities.Controllers.ServerFlintController::OnOutOfHealthCandideServer.ServerManagers.CropServerManager::HarvestCropCandideServer.ServerManagers.LootServerManager::DropGoodsAndInventoryCandideServer.ServerManagers.LootServerManager::DropLootAtPositionCandideServer.ServerManagers.LootServerManager::EntityDropGoods
DropGoodsAndInventory
#
public System.Void DropGoodsAndInventory(Shared.Entity.EntityWrapper entity, System.Nullable<System.Int32> owningPlayerId)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
091F335110E3B0FC3687DEB245F806A1BB043A45A67B8B39719F1918A1F44AB5 - Body hash
2A0159715BE9E79F0D42450FF8F3F768583770FB904F1068C57516A2B733EC72 - IL size350
Referenced calls
Shared.Entity.EntityWrapper::get_WorldId()Shared.Entity.EntityWrapper::get_Id()System.Collections.Generic.Dictionary<System.Guid, CandideServer.Entities.ServerEntityModel>::TryGetValue(!0, !1&)System.Nullable<System.Guid>::get_HasValue()System.Nullable<System.Guid>::get_Value()System.Collections.Generic.Dictionary<System.Guid, Shared.Models.Items.SharedInventoryModel>::TryGetValue(!0, !1&)Shared.Entity.EntityWrapper::get_Position()Shared.Entity.EntityWrapper::get_Velocity()Microsoft.Xna.Framework.Vector3::op_Division(Microsoft.Xna.Framework.Vector3, System.Single)CandideServer.ServerManagers.LootServerManager::DropInventoryAndDelete(Shared.Models.Items.SharedInventoryModel, Microsoft.Xna.Framework.Vector3, Microsoft.Xna.Framework.Vector3, System.Guid, System.Nullable<System.Int32>)Shared.Entity.EntityWrapper::get_BaseGuid()Shared.Entity.EntityWrapper::get_Frame()System.Nullable<System.Int32>::.ctor(!0)Shared.Data.Furniture.FurnitureDataBase::TryGetFurnitureIdFromEntity(System.Guid, System.Nullable<System.Int32>, System.String&)Microsoft.Xna.Framework.Vector3::.ctor(System.Single, System.Single, System.Single)Microsoft.Xna.Framework.Vector3::op_Addition(Microsoft.Xna.Framework.Vector3, Microsoft.Xna.Framework.Vector3)CandideCreator.Shared.Helpers.RandomHelper::NextPointInHollowCircle(System.Random, System.Single)Microsoft.Xna.Framework.Vector2::op_Multiply(Microsoft.Xna.Framework.Vector2, System.Single)Microsoft.Xna.Framework.Vector3::.ctor(Microsoft.Xna.Framework.Vector2, System.Single)CandideServer.ServerManagers.WorldItemServerManager::SpawnFurnitureWorldItem(System.String, System.Int32, Microsoft.Xna.Framework.Vector3, Microsoft.Xna.Framework.Vector3, System.Guid, System.Nullable<System.Int32>, System.Nullable<System.Int32>)System.Nullable<System.Int32>::get_HasValue()Shared.Entity.EntityWrapper::get_Mask()Shared.Entity.Components.ComponentExtension::HasFlags(Shared.Entity.Components.Component, Shared.Entity.Components.Component)CandideCreator.Shared.Helpers.RandomHelper::NextFloat(System.Random)CandideServer.ServerManagers.LootServerManager::GenerateDroppedGoods(Shared.Models.DropTables.DropTableSystem, System.Single)CandideServer.ServerManagers.LootServerManager::DropGoods(Shared.Models.DropTables.DroppedGoods, Microsoft.Xna.Framework.Vector3, Microsoft.Xna.Framework.Vector3, System.Guid, System.Nullable<System.Int32>)
DropInventoryAndDelete
#
public System.Void DropInventoryAndDelete(Shared.Models.Items.SharedInventoryModel inventory, Microsoft.Xna.Framework.Vector3 position, Microsoft.Xna.Framework.Vector3 extraVelocity, System.Guid worldId, System.Nullable<System.Int32> owningPlayerId)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
8930BEC85372388AAD7EBC1296327F3ACBF7AF5668D380D55623188549D86626 - Body hash
F36244F3A69BBE957458AFC6BE67043E2D6FD384D61FCD869738D7ADA68E5D97 - IL size488
Referenced calls
System.Collections.Generic.List<CandideServer.ServerManagers.CreateWorldItemArguments>::Clear()CandideServer.ServerControllers.SimpleInventorySController::TryDetachItemFromInventory(Shared.Models.Items.SharedInventoryModel, System.Int32)CandideCreator.Shared.Helpers.RandomHelper::NextFloat(System.Random, System.Single, System.Single)CandideCreator.Shared.Helpers.RandomHelper::NextDouble(System.Random, System.Double, System.Double)System.Math::Cos(System.Double)System.Math::Sin(System.Double)Microsoft.Xna.Framework.Vector3::.ctor(System.Single, System.Single, System.Single)Microsoft.Xna.Framework.Vector3::op_Multiply(System.Single, Microsoft.Xna.Framework.Vector3)Microsoft.Xna.Framework.Vector3::get_UnitZ()Microsoft.Xna.Framework.Vector3::op_Multiply(Microsoft.Xna.Framework.Vector3, System.Single)Microsoft.Xna.Framework.Vector3::op_Addition(Microsoft.Xna.Framework.Vector3, Microsoft.Xna.Framework.Vector3)System.Collections.Generic.List<CandideServer.ServerManagers.CreateWorldItemArguments>::Add(!0)Shared.Models.Items.SharedInventoryModel::HasMoneyField()System.Nullable<System.UInt64>::get_Value()CandideServer.ServerControllers.ItemInstanceSController::CreateMoneyItemInstancesFromMoney(System.UInt64, System.Nullable<System.Guid>)System.Collections.Generic.List<Shared.Models.Items.ItemInstanceModel>::GetEnumerator()List.Enumerator<Shared.Models.Items.ItemInstanceModel>::get_Current()List.Enumerator<Shared.Models.Items.ItemInstanceModel>::MoveNext()System.IDisposable::Dispose()CandideServer.ServerControllers.SimpleInventorySController::RemoveInventory(Shared.Models.Items.SharedInventoryModel, System.Boolean)CandideServer.ServerManagers.WorldItemServerManager::SpawnWorldItems(System.Collections.Generic.List<CandideServer.ServerManagers.CreateWorldItemArguments>, System.Guid, System.Nullable<System.Int32>)
Called by
CandideServer.Entities.ControllerSets.AutoBallista.ServerAutoBallistaController::OnRemoveCandideServer.ServerManagers.LootServerManager::DropGoodsAndInventoryCandideServer.ServerManagers.LootServerManager::EntityDropInventoryCandideServer.ServerManagers.TradeRoutesServerManager::HandleCancellation
DropInventoryButDoNotDelete
#
public System.Void DropInventoryButDoNotDelete(Shared.Models.Items.SharedInventoryModel inventory, Microsoft.Xna.Framework.Vector3 position, Microsoft.Xna.Framework.Vector3 extraVelocity, System.Guid worldId, System.Single horizontalSpeedScale, System.Nullable<System.Int32> owningPlayerId)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
A8C2AD99BDA3183A2A508B41FF398594C436A18E3CDF45A3ECBC83F4F694A923 - Body hash
CDC467EDC9E570578C8EDEFE2784873221095FA8DAC18ECA5182B7BBED0DCA69 - IL size575
Referenced calls
System.Collections.Generic.List<CandideServer.ServerManagers.CreateWorldItemArguments>::Clear()System.Collections.Generic.List<CandideServer.ServerControllers.UpdateInventoryItemInstanceMessage>::Clear()CandideServer.ServerControllers.SimpleInventorySController::TryDetachItemFromInventory(Shared.Models.Items.SharedInventoryModel, System.Int32)CandideCreator.Shared.Helpers.RandomHelper::NextFloat(System.Random, System.Single, System.Single)CandideCreator.Shared.Helpers.RandomHelper::NextDouble(System.Random, System.Double, System.Double)System.Math::Cos(System.Double)System.Math::Sin(System.Double)Microsoft.Xna.Framework.Vector3::.ctor(System.Single, System.Single, System.Single)Microsoft.Xna.Framework.Vector3::op_Multiply(System.Single, Microsoft.Xna.Framework.Vector3)Microsoft.Xna.Framework.Vector3::get_UnitZ()Microsoft.Xna.Framework.Vector3::op_Multiply(Microsoft.Xna.Framework.Vector3, System.Single)Microsoft.Xna.Framework.Vector3::op_Addition(Microsoft.Xna.Framework.Vector3, Microsoft.Xna.Framework.Vector3)System.Collections.Generic.List<CandideServer.ServerManagers.CreateWorldItemArguments>::Add(!0)CandideServer.ServerControllers.UpdateInventoryItemInstanceMessage::.ctor()System.Collections.Generic.List<CandideServer.ServerControllers.UpdateInventoryItemInstanceMessage>::Add(!0)Shared.Models.Items.SharedInventoryModel::HasMoneyField()System.Nullable<System.UInt64>::get_Value()CandideServer.ServerControllers.ItemInstanceSController::CreateMoneyItemInstancesFromMoney(System.UInt64, System.Nullable<System.Guid>)System.Collections.Generic.List<Shared.Models.Items.ItemInstanceModel>::GetEnumerator()List.Enumerator<Shared.Models.Items.ItemInstanceModel>::get_Current()List.Enumerator<Shared.Models.Items.ItemInstanceModel>::MoveNext()System.IDisposable::Dispose()CandideServer.ServerManagers.WorldItemServerManager::SpawnWorldItems(System.Collections.Generic.List<CandideServer.ServerManagers.CreateWorldItemArguments>, System.Guid, System.Nullable<System.Int32>)CandideServer.MessageModels.Inventories.UpdateInventoriesItemInstancesMessage::.ctor()System.Collections.Generic.List<CandideServer.ServerControllers.UpdateInventoryItemInstanceMessage>::ToArray()System.Array::Empty()CandideServer.ServerServices.SimpleInventoryServerService::Send_InventoriesChanged(CandideServer.MessageModels.Inventories.UpdateInventoriesItemInstancesMessage)
DropLootAtPosition
#
public System.Void DropLootAtPosition(System.String dropTableId, Microsoft.Xna.Framework.Vector3 position, Microsoft.Xna.Framework.Vector3 extraVelocity, System.Guid worldId, System.Nullable<System.Int32> owningPlayerId)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
41827379C8C8C2E5D699CFF4F98A465A669FAF2FD9B8C870CD2D36ED3852701B - Body hash
E038849E27EB8BBE0EC0CCA006A6645CEB3B2F64F90643E50F0769C10D6A1C4A - IL size38
Referenced calls
CandideServer.Database.ServerDropTablesDataBase::GetDropTableItemListOrNull(System.String)CandideServer.ServerManagers.LootServerManager::GenerateDroppedGoods(Shared.Models.DropTables.DropTableSystem, System.Single)CandideServer.ServerManagers.LootServerManager::DropGoods(Shared.Models.DropTables.DroppedGoods, Microsoft.Xna.Framework.Vector3, Microsoft.Xna.Framework.Vector3, System.Guid, System.Nullable<System.Int32>)
EntityDropGoods
#
public System.Void EntityDropGoods(CandideServer.Entities.ServerEntityModel entity, Shared.Models.DropTables.DroppedGoods droppedGoods, System.Nullable<System.Int32> owningPlayerId, System.Nullable<Microsoft.Xna.Framework.Vector3> overrideDropLocation)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
CBEC0B28F85E8D1E3A48DB813F933FAC5B779287C252A0255EFF73CF4A0F3B3C - Body hash
77D9F6762689F8634C27CFFC7A5C86054CDD01870414E4FA2B8F6DC9356E7528 - IL size56
Referenced calls
System.Nullable<Microsoft.Xna.Framework.Vector3>::get_HasValue()System.Nullable<Microsoft.Xna.Framework.Vector3>::GetValueOrDefault()Microsoft.Xna.Framework.Vector3::op_Division(Microsoft.Xna.Framework.Vector3, System.Single)CandideServer.ServerManagers.LootServerManager::DropGoods(Shared.Models.DropTables.DroppedGoods, Microsoft.Xna.Framework.Vector3, Microsoft.Xna.Framework.Vector3, System.Guid, System.Nullable<System.Int32>)
EntityDropInventory
#
public System.Void EntityDropInventory(CandideServer.Entities.ServerEntityModel entity, Shared.Models.Items.SharedInventoryModel inventory, System.Nullable<System.Int32> owningPlayerId)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
8D09E90689DBC5CE987182D75FF5792C28600CA1BD4ACFEEF6372B3D0F4DFACD - Body hash
F66AAA89761C6B2FE73799FF11B3080B73D37FC4394153C7C74206326E46BEBF - IL size36
Referenced calls
Microsoft.Xna.Framework.Vector3::op_Division(Microsoft.Xna.Framework.Vector3, System.Single)CandideServer.ServerManagers.LootServerManager::DropInventoryAndDelete(Shared.Models.Items.SharedInventoryModel, Microsoft.Xna.Framework.Vector3, Microsoft.Xna.Framework.Vector3, System.Guid, System.Nullable<System.Int32>)
GenerateDroppedGoods
#
public Shared.Models.DropTables.DroppedGoods GenerateDroppedGoods(Shared.Models.DropTables.DropTableSystem system, System.Single difficulty)
Method metadata
- Visibilitypublic
- Return type
Shared.Models.DropTables.DroppedGoods - StaticTrue
- VirtualFalse
- Hash
5DD00C6DA603244497522B17675A8EDFEA80E33EB1B5314C225DF25610AAA267 - Body hash
DC0D8B832C2B8E40748886799F8D8F03ED3F8DDD1D7D719C352E26B107EEBB1E - IL size105
Referenced calls
System.Array::Empty()System.Collections.Generic.Dictionary<System.ValueTuple<System.String, System.String>, System.Int32>::Clear()CandideServer.ServerManagers.LootServerManager::ProcessDropSystem(Shared.Models.DropTables.DropTableSystem, System.Single)LootServerManager.<>c::<GenerateDroppedGoods>b__9_0(System.Collections.Generic.KeyValuePair<System.ValueTuple<System.String, System.String>, System.Int32>)System.Func<System.Collections.Generic.KeyValuePair<System.ValueTuple<System.String, System.String>, System.Int32>, System.ValueTuple<System.String, System.Int32, System.String>>::.ctor(System.Object, System.IntPtr)System.Linq.Enumerable::Select(System.Collections.Generic.IEnumerable<!!0>, System.Func<!!0, !!1>)System.Linq.Enumerable::ToArray(System.Collections.Generic.IEnumerable<!!0>)
Called by
CandideServer.Entities.Controllers.Barbeque.ServerHarvestableObjectController::OnInteractCandideServer.Entities.Controllers.ServerBasicFurnaceController::UpdateCandideServer.Entities.Controllers.ServerFlintController::OnOutOfHealthCandideServer.Entities.Controllers.ServerHiddenTreasureController::SpawnChestFromEntityCandideServer.Entities.Controllers.ServerInteriorFurnaceController::UpdateCandideServer.Entities.ControllerSets.Chest.ServerChestController::FillInventoryWithDropsCandideServer.Entities.ControllerSets.ServerSulphurVentController::LaunchHiddenGoodsCandideServer.ServerManagers.LootServerManager::DropGoodsAndInventoryCandideServer.ServerManagers.LootServerManager::DropLootAtPositionCandide.TestAndDebug::TestDroptableRolling
GenerateDroppedGoods
#
public Shared.Models.DropTables.DroppedGoods GenerateDroppedGoods(Shared.Models.DropTables.DropTableSystem system, System.Single difficulty, System.Func<System.ValueTuple<System.String, System.Int32, System.String>, System.ValueTuple<System.String, System.Int32, System.String>> itemFilter)
Method metadata
- Visibilitypublic
- Return type
Shared.Models.DropTables.DroppedGoods - StaticTrue
- VirtualFalse
- Hash
1945C8C31827F003B663150FB2F19411A66DF269A99A7EDA0E388CF427C7C6EF - Body hash
3FC46661F00E78F4046A775E453B50559D9328CE40B11B206DB6F6E1A288DA59 - IL size99
Referenced calls
LootServerManager.<>c__DisplayClass10_0::.ctor()System.Array::Empty()System.Collections.Generic.Dictionary<System.ValueTuple<System.String, System.String>, System.Int32>::Clear()CandideServer.ServerManagers.LootServerManager::ProcessDropSystem(Shared.Models.DropTables.DropTableSystem, System.Single)LootServerManager.<>c__DisplayClass10_0::<GenerateDroppedGoods>b__0(System.Collections.Generic.KeyValuePair<System.ValueTuple<System.String, System.String>, System.Int32>)System.Func<System.Collections.Generic.KeyValuePair<System.ValueTuple<System.String, System.String>, System.Int32>, System.ValueTuple<System.String, System.Int32, System.String>>::.ctor(System.Object, System.IntPtr)System.Linq.Enumerable::Select(System.Collections.Generic.IEnumerable<!!0>, System.Func<!!0, !!1>)System.Linq.Enumerable::ToArray(System.Collections.Generic.IEnumerable<!!0>)
ProcessDropSystem
#
private System.Void ProcessDropSystem(Shared.Models.DropTables.DropTableSystem system, System.Single difficulty)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
0C9B6DAD523A02C6B3CED65C6B74BAEDE3ED3D1B4D8E0CE272A2B909F284E3CD - Body hash
98CC8DC9BCD1E5008346EB3AA51AEECC99B81484CF34B653398298C5930B144A - IL size215
Referenced calls
CandideCreator.Shared.Helpers.RandomHelper::NextFloat(System.Random, System.Single, System.Single)CandideServer.ServerManagers.LootServerManager::AddDroppedItem(Shared.Models.DropTables.ItemDrop, System.Single)System.Collections.Generic.Dictionary<System.Int32, Shared.Models.DropTables.DropTableSlot>::GetEnumerator()Dictionary.Enumerator<System.Int32, Shared.Models.DropTables.DropTableSlot>::get_Current()System.Collections.Generic.KeyValuePair<System.Int32, Shared.Models.DropTables.DropTableSlot>::Deconstruct(!0&, !1&)Dictionary.Enumerator<System.Int32, Shared.Models.DropTables.DropTableSlot>::MoveNext()System.IDisposable::Dispose()