Candide.Database.Doodad.DoodadDatabaseManager
Type JSONpublic class in Candide.Database.Doodad
Type metadata
- Assembly
Romestead - Namespace
Candide.Database.Doodad - Base type
System.Object - Hash
484C737F0F441B992A059F74D3FDD87CF346FF08E7ABEC853533C8462A0CEC42
Relationships
Base type
System.Object
Fields
| Name | Visibility | Signature |
|---|---|---|
AiFieldString# | private | private System.String AiFieldString |
BaseDoodads# | public | public System.Collections.Generic.Dictionary<System.Guid, CandideCreator.Shared.Models.BaseDoodad> BaseDoodads |
ControllerFieldString# | private | private System.String ControllerFieldString |
Databases# | public | public System.Collections.Generic.Dictionary<System.String, CandideCreator.Shared.Models.DoodadDatabase> Databases |
EntitySystems# | public | public System.Collections.Generic.Dictionary<System.Guid, Shared.Entity.EntitySystem> EntitySystems |
LuaInstance# | public | public NLua.Lua LuaInstance |
Names# | public | public System.Collections.Generic.Dictionary<System.String, System.Guid> Names |
Methods
ApplyCustomPropertiesAndScript
#
public System.Void ApplyCustomPropertiesAndScript(CandideCreator.Shared.Models.WorldDoodad doodad, Shared.Entity.EntityWrapper entity)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
C425DFE3C84426F548B1649ADDEAB6CDE4B602FA06284C7809061A5C5DB6C872 - Body hash
4AAAD2702AFD007BE1C149C6FC629102817FF6380C3AE7B4D7E75AF30DEBFD99 - IL size78
Referenced calls
Shared.Entity.EntityWrapper::get_Mask()Shared.Entity.Components.ComponentExtension::HasFlags(Shared.Entity.Components.Component, Shared.Entity.Components.Component)Shared.Entity.EntityWrapper::get_Controller()CandideCreator.Shared.Helpers.Parameters::AddOrOverwrite(CandideCreator.Shared.Helpers.IParameters)Shared.Entity.Base.AbstractController::EntityInitialize()
ConfigureReflection
#
public System.Void ConfigureReflection(CandideCreator.Shared.Serialization.CandideReflection reflection)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
5F70E234DCCD9638708F490F2F3F47B3123A3B70D64504CCF888F0893A7FD690 - Body hash
FBC9DF0DEE45AB2BAE352D4E4158C6E0197F92C2B55C3C45EE5ACF3A09C341F3 - IL size172
Referenced calls
Candide.Database.Doodad.EntityWrapperSerializer::.ctor()CandideCreator.Shared.Serialization.CandideReflection::Register(CandideCreator.Shared.Serialization.ITypeSerializer)Candide.Database.Doodad.ControllerTypeHandler::.ctor(System.Int32)CandideCreator.Shared.Serialization.CandideReflection::Register(CandideCreator.Shared.Serialization.ITypeHandler)CandideCreator.Shared.Serialization.CandideReflection::Configure()CandideCreator.Shared.Serialization.TypeHandlers.GenericTypeHandler::SetExtraDataType()DoodadDatabaseManager.<>c::<ConfigureReflection>b__7_0(CandideCreator.Shared.Serialization.CandideDeserializer, CandideCreator.Shared.Models.BaseDoodad)System.Action<CandideCreator.Shared.Serialization.CandideDeserializer, CandideCreator.Shared.Models.BaseDoodad>::.ctor(System.Object, System.IntPtr)CandideCreator.Shared.Serialization.TypeHandlers.GenericTypeHandler::AfterDeserialize(System.Action<CandideCreator.Shared.Serialization.CandideDeserializer, !!0>)DoodadDatabaseManager.<>c::<ConfigureReflection>b__7_1(CandideCreator.Shared.Serialization.CandideDeserializer, Shared.Models.Items.ItemInstanceModel)System.Action<CandideCreator.Shared.Serialization.CandideDeserializer, Shared.Models.Items.ItemInstanceModel>::.ctor(System.Object, System.IntPtr)DoodadDatabaseManager.<>c::<ConfigureReflection>b__7_2(CandideCreator.Shared.Serialization.CandideDeserializer, CandideCreator.Shared.Models.World)System.Action<CandideCreator.Shared.Serialization.CandideDeserializer, CandideCreator.Shared.Models.World>::.ctor(System.Object, System.IntPtr)
CountDoodads
#
public System.ValueTuple<System.Int32, System.Int32> CountDoodads(CandideCreator.Shared.Models.World worldData)
Method metadata
- Visibilitypublic
- Return type
System.ValueTuple<System.Int32, System.Int32> - StaticTrue
- VirtualFalse
- Hash
4DDCC424B179F837429551141472F2E4D081E919FF55AD46CD930DD95DC6CFE2 - Body hash
9A97C94DFEF614118A5058782998F81765CE8D58C1CB9659E210BF6B5E007D26 - IL size105
Referenced calls
CandideCreator.Shared.Models.World::get_Doodads()System.Collections.ObjectModel.Collection<CandideCreator.Shared.Models.WorldDoodad>::GetEnumerator()System.Collections.Generic.IEnumerator<CandideCreator.Shared.Models.WorldDoodad>::get_Current()System.Collections.Generic.Dictionary<System.Guid, Shared.Entity.EntitySystem>::TryGetValue(!0, !1&)Candide.Database.Doodad.DoodadDatabaseManager::IsComplexEntity(Shared.Entity.EntitySystem)System.Collections.IEnumerator::MoveNext()System.IDisposable::Dispose()System.ValueTuple<System.Int32, System.Int32>::.ctor(!0, !1)
IsComplexEntity
#
public System.Boolean IsComplexEntity(Shared.Entity.EntitySystem entityData)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
84A9C68179CF7E496D7D18A60DE8837A3C05076A3DC0BBBDCE4C8FCC1ABD38B9 - Body hash
F7ED7408B2AE2FC6F900539A544A3132E8EC358EE77E9E49D4B280A1C1E04704 - IL size59
Referenced calls
LoadComplexDoodads
#
public System.Void LoadComplexDoodads(Candide.World.ExteriorWorldData worldData, Shared.Entity.EntitySystem entitySystem)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
388795F044D4CCE90188E2741CCE063FD8927F4EF5C8BF999E5D2060052EDF5F - Body hash
9328CAB06A373F8941B62E8BBC9287554BAE05B7BE0A1F387774DE0CD3A66A54 - IL size242
Referenced calls
CandideCreator.Shared.Models.World::get_Doodads()System.Collections.ObjectModel.Collection<CandideCreator.Shared.Models.WorldDoodad>::GetEnumerator()System.Collections.Generic.IEnumerator<CandideCreator.Shared.Models.WorldDoodad>::get_Current()System.Collections.Generic.Dictionary<System.Guid, Shared.Entity.EntitySystem>::TryGetValue(!0, !1&)Candide.Database.Doodad.DoodadDatabaseManager::IsComplexEntity(Shared.Entity.EntitySystem)Candide.Database.Doodad.DoodadDatabaseManager::SpawnDoodad(System.Guid, Shared.Entity.EntitySystem, System.Boolean, System.Boolean)System.Guid::.ctor(System.Int32, System.Int16, System.Int16, System.Byte, System.Byte, System.Byte, System.Byte, System.Byte, System.Byte, System.Byte, System.Byte)Shared.Entity.EntityWrapper::set_Id(System.Guid)CandideCreator.Shared.Models.WorldDoodad::get_Position()CandideCreator.Shared.Helpers.VectorExtension::ToXzy(Microsoft.Xna.Framework.Vector3)Shared.Entity.EntityWrapper::set_Position(Microsoft.Xna.Framework.Vector3)Shared.Entity.EntityWrapper::set_Direction(System.Single)CandideCreator.Shared.Models.WorldDoodad::get_FrameOverride()System.Nullable<System.Int32>::get_HasValue()CandideCreator.Shared.Models.WorldDoodad::get_Frame()System.Nullable<System.Int32>::GetValueOrDefault()Shared.Entity.EntityWrapper::set_Frame(System.Int32)Candide.Database.Doodad.DoodadDatabaseManager::ApplyCustomPropertiesAndScript(CandideCreator.Shared.Models.WorldDoodad, Shared.Entity.EntityWrapper)System.Collections.IEnumerator::MoveNext()System.IDisposable::Dispose()
Called by
LoadDoodadDatabase
#
public System.Void LoadDoodadDatabase(Microsoft.Xna.Framework.Content.ContentManager content, System.String directoryPath, System.String fileName)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
AB9D8A399D12AD4E3E41C8632686B0EC081FB1537DC5446ED485C2D4A1DABE87 - Body hash
0A5E49EEFE3A1BDFC59BF1A9A663094596AA7C896DDF8EF86FF706920DE6EFEE - IL size182
Referenced calls
System.Threading.Monitor::Enter(System.Object, System.Boolean&)System.Collections.Generic.Dictionary<System.String, CandideCreator.Shared.Models.DoodadDatabase>::ContainsKey(!0)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::ToStringAndClear()CandideCreator.Shared.Storage.DoodadDatabaseReader::ReadDatabase(System.String, Microsoft.Xna.Framework.Graphics.GraphicsDevice, Microsoft.Xna.Framework.Content.ContentManager, CandideCreator.Shared.Serialization.CandideReflection)System.String::Concat(System.String, System.String, System.String, System.String)CandideCreator.Shared.Helpers.WarningHelper::Warning(System.String)System.Collections.Generic.Dictionary<System.String, CandideCreator.Shared.Models.DoodadDatabase>::set_Item(!0, !1)System.Threading.Monitor::Exit(System.Object)
String literals
/.cdbFailed to load doodad database
LoadDoodads
#
public System.Void LoadDoodads(Candide.World.World world)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
E3F091041A401EB32508250DB92FF476312E3AE40306D7F9CF7AC48737AE6590 - Body hash
84940CA9F1709C23B3766569C0F2AA3A4EF2510EF940F5228B2C41DFBE3911D0 - IL size126
Referenced calls
CandideCreator.Shared.Models.World::get_Doodads()System.Collections.ObjectModel.Collection<CandideCreator.Shared.Models.WorldDoodad>::GetEnumerator()System.Collections.Generic.IEnumerator<CandideCreator.Shared.Models.WorldDoodad>::get_Current()Candide.Database.Doodad.DoodadDatabaseManager::SpawnDoodad(System.Guid, Shared.Entity.EntitySystem, System.Boolean, System.Boolean)CandideCreator.Shared.Models.WorldDoodad::get_Position()CandideCreator.Shared.Helpers.VectorExtension::ToXzy(Microsoft.Xna.Framework.Vector3)Shared.Entity.EntityWrapper::set_Position(Microsoft.Xna.Framework.Vector3)Shared.Entity.EntityWrapper::set_Direction(System.Single)Candide.Database.Doodad.DoodadDatabaseManager::ApplyCustomPropertiesAndScript(CandideCreator.Shared.Models.WorldDoodad, Shared.Entity.EntityWrapper)System.Collections.IEnumerator::MoveNext()System.IDisposable::Dispose()
Called by
LoadNonComplexDoodads
#
public System.Void LoadNonComplexDoodads(Candide.World.ExteriorWorldData worldData)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
A75604C122F5A000A92A29E862CD255C1CCB0FF78C92891220DF398B8D0FCB11 - Body hash
C193382B8F3836DE58F55F3BC43648A21DDF2F826639628D56DB869FE7BAC97E - IL size221
Referenced calls
CandideCreator.Shared.Models.World::get_Doodads()System.Collections.ObjectModel.Collection<CandideCreator.Shared.Models.WorldDoodad>::GetEnumerator()System.Collections.Generic.IEnumerator<CandideCreator.Shared.Models.WorldDoodad>::get_Current()System.Collections.Generic.Dictionary<System.Guid, Shared.Entity.EntitySystem>::TryGetValue(!0, !1&)Candide.Database.Doodad.DoodadDatabaseManager::IsComplexEntity(Shared.Entity.EntitySystem)Candide.Database.Doodad.DoodadDatabaseManager::SpawnDoodad(System.Guid, Shared.Entity.EntitySystem, System.Boolean, System.Boolean)CandideCreator.Shared.Models.WorldDoodad::get_Position()CandideCreator.Shared.Helpers.VectorExtension::ToXzy(Microsoft.Xna.Framework.Vector3)Shared.Entity.EntityWrapper::set_Position(Microsoft.Xna.Framework.Vector3)Shared.Entity.EntityWrapper::set_Direction(System.Single)CandideCreator.Shared.Models.WorldDoodad::get_FrameOverride()System.Nullable<System.Int32>::get_HasValue()CandideCreator.Shared.Models.WorldDoodad::get_Frame()System.Nullable<System.Int32>::GetValueOrDefault()Shared.Entity.EntityWrapper::set_Frame(System.Int32)Shared.Entity.EntityWrapper::get_MaskRef()Shared.Entity.Components.ComponentExtension::RemoveFlag(Shared.Entity.Components.Component&, Shared.Entity.Components.Component)Candide.Database.Doodad.DoodadDatabaseManager::ApplyCustomPropertiesAndScript(CandideCreator.Shared.Models.WorldDoodad, Shared.Entity.EntityWrapper)System.Collections.IEnumerator::MoveNext()System.IDisposable::Dispose()
RunEntityLoadScript
#
public System.Void RunEntityLoadScript(CandideCreator.Shared.Models.WorldDoodad doodad, Shared.Entity.EntityWrapper entity, CandideCreator.Shared.Helpers.Parameters parameters)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
1C84C70083EA482A3FB8332DC395F00A9DF9EC0F45BB5A3E8040C17D6640301B - Body hash
A45A5D74E5495293F7512DD9DF8597E2A10647705D02A8F55E6E82CB4A188495 - IL size637
Referenced calls
NLua.Lua::get_State()KeraLua.Lua::LoadString(System.String, System.String)KeraLua.Lua::SetGlobal(System.String)KeraLua.Lua::NewTable()NLua.Lua::set_Item(System.String, System.Object)Candide.Scripts.LuaMethods::Vec2(System.Single, System.Single)System.Func<System.Single, System.Single, Microsoft.Xna.Framework.Vector2>::.ctor(System.Object, System.IntPtr)Candide.Scripts.LuaMethods::Vec3(System.Single, System.Single, System.Single)System.Func<System.Single, System.Single, System.Single, Microsoft.Xna.Framework.Vector3>::.ctor(System.Object, System.IntPtr)Candide.Scripts.LuaMethods::Vec4(System.Single, System.Single, System.Single, System.Single)System.Func<System.Single, System.Single, System.Single, System.Single, Microsoft.Xna.Framework.Vector4>::.ctor(System.Object, System.IntPtr)KeraLua.Lua::GetGlobal(System.String)KeraLua.Lua::SetUpValue(System.Int32, System.Int32)NLua.Lua::GetFunction(System.String)System.Array::Empty()NLua.LuaFunction::Call(System.Object[])NLua.Lua::GetTable(System.String)NLua.Lua::GetTableDict(NLua.LuaTable)System.Collections.Generic.Dictionary<System.Object, System.Object>::GetEnumerator()Dictionary.Enumerator<System.Object, System.Object>::get_Current()System.Collections.Generic.KeyValuePair<System.Object, System.Object>::Deconstruct(!0&, !1&)System.String::op_Equality(System.String, System.String)System.Object::ToString()CandideCreator.Shared.Helpers.Parameters::get_Dictionary()System.Collections.Generic.Dictionary<System.String, System.String>::set_Item(!0, !1)Dictionary.Enumerator<System.Object, System.Object>::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()CandideCreator.Shared.Helpers.WarningHelper::Warning(System.String)
String literals
doodad_loaddoodad_load_envdoodad_load_env.entitydoodad_load_env.Entitydoodad_load_env.vec2doodad_load_env.vec3doodad_load_env.vec4doodad_load_env.paramsdoodad_load_env.ParamsparamsParamsentityEntityException when running entity load script.
SetBaseDoodadData
#
public System.Void SetBaseDoodadData(CandideCreator.Shared.Models.BaseDoodad baseDoodad, Shared.Entity.EntitySystem data)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
9C479AF8880D47783F0EC8385C716FCA1A47D4C8E4E9E4D43A5B9F70473A0F11 - Body hash
B19F00EB94D54CC7A05BFBC3727363815B36E77414AA042463F1B37937BBC8B7 - IL size18
Referenced calls
System.Collections.Generic.Dictionary<System.Guid, Shared.Entity.EntitySystem>::set_Item(!0, !1)
SpawnDoodad
#
public Shared.Entity.EntityWrapper SpawnDoodad(System.Guid guid, Shared.Entity.EntitySystem targetSystem, System.Boolean initializeAi, System.Boolean ignoreControllers)
Method metadata
- Visibilitypublic
- Return type
Shared.Entity.EntityWrapper - StaticTrue
- VirtualFalse
- Hash
FD68D4A843AC67BF129D64AD1E508AD7281BF6931995E2590B050C2123E7FA7A - Body hash
712C4631AAA77494754B04E27C6CFC725571A29D2942D8912812DF1CFC6B5F18 - IL size74
Referenced calls
System.Collections.Generic.Dictionary<System.Guid, Shared.Entity.EntitySystem>::TryGetValue(!0, !1&)CandideCreator.Shared.Helpers.WarningHelper::Warning(System.String)Shared.Entity.EntitySystem::NewEntity()Shared.Entity.EntityCopyHelper::DeepCopyEntity(Shared.Entity.EntitySystem, System.Int32, Shared.Entity.EntitySystem, System.Int32, System.Boolean, System.Boolean, CandideCreator.Shared.Serialization.CandideReflection)Shared.Entity.EntitySystem::GetWrapper(System.Int32)
Called by
Candide.Database.Doodad.DoodadDatabaseManager::LoadComplexDoodadsCandide.Database.Doodad.DoodadDatabaseManager::LoadDoodadsCandide.Database.Doodad.DoodadDatabaseManager::LoadNonComplexDoodadsCandide.Entities.Controllers.Legacy.BanditBruteController::StartThrowCandide.Entities.Controllers.Legacy.ThrowableSourceController::UpdateCandide.GameModels.Controllers.EntityController::SpawnEntityBaseCandide.Multiplayer.PlayerManager::CreatePlayerEntity
String literals
Failed to spawn doodad because doodad data could not be found.Failed to spawn doodad because target entity system is full.
TryGetEntityBaseData
#
public System.Boolean TryGetEntityBaseData(System.Guid baseId, out Shared.Entity.EntityWrapper& entityWrapper)
Method metadata
- Visibilitypublic
- Return type
System.Boolean - StaticTrue
- VirtualFalse
- Hash
77F447BF0CD41FBE7E2C3C7A22FA5F5F9EDCBD2B1A6ED07BC881EE9D62B9D3FE - Body hash
F89AA2D1424956149456D63170E9D8E4D5A9E6F9C20DB009A077344E9E2B2690 - IL size41
Referenced calls
System.Collections.Generic.Dictionary<System.Guid, Shared.Entity.EntitySystem>::TryGetValue(!0, !1&)
Called by
Candide.CandideUI.Helpers.EntityWorkRecipeFilter::SatisfiesFilterCandide.CandideUI.JobUiNew.UserControls.FurnitureRecipeDetailsUserControl::UpdateGhostCandide.CandideUI.Tooltip.CandideTooltipHelper::BuildEntityTooltipContentCandide.Entities.Controllers.Other.AutomaticMillController::EntityInitializeCandide.Entities.Controllers.Other.Cart2Controller::EntityInitializeCandide.Entities.Controllers.Other.CatapultController::EntityInitializeCandide.Entities.Controllers.Other.ConcreteMixerController::EntityInitializeCandide.Entities.Controllers.Other.ManualMillController::EntityInitializeCandide.PlayerMode.Furniture.FurnitureListView::CanSelectOptionCandide.PlayerMode.Furniture.FurnitureListView::InternalDrawCandide.PlayerMode.Furniture.FurnitureListView::LayoutFurnitureOptionsToShowCandide.PlayerMode.Furniture.FurnitureListView::SetUpRecipeViewCandide.PlayerMode.Furniture.FurnitureListView::SetUpRotationAndStyleViewCandide.PlayerMode.Furniture.FurnitureListView::SetUpSidebarViewCandide.PlayerMode.Furniture.FurnitureListView::SetUpStyleViewCandide.PlayerMode.Furniture.FurnitureModeManager::DrawInWorldUiCandide.PlayerMode.Furniture.FurnitureModeManager::PlaceCandide.PlayerMode.Furniture.FurnitureModeManager::RotateButtonOnClickActionCandide.PlayerMode.Furniture.FurnitureModeManager::UpdatePlacingMode