mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
add 'player-entity' to defaults.toml
This commit is contained in:
parent
f0c7bc6377
commit
3430e5cd6f
10 changed files with 34 additions and 11 deletions
|
|
@ -201,6 +201,7 @@ class Content {
|
|||
UptrsMap<std::string, ContentPackRuntime> packs;
|
||||
UptrsMap<std::string, BlockMaterial> blockMaterials;
|
||||
UptrsMap<std::string, rigging::SkeletonConfig> skeletons;
|
||||
dv::value defaults = nullptr;
|
||||
public:
|
||||
ContentUnitDefs<Block> blocks;
|
||||
ContentUnitDefs<ItemDef> items;
|
||||
|
|
@ -219,7 +220,8 @@ public:
|
|||
UptrsMap<std::string, ContentPackRuntime> packs,
|
||||
UptrsMap<std::string, BlockMaterial> blockMaterials,
|
||||
UptrsMap<std::string, rigging::SkeletonConfig> skeletons,
|
||||
ResourceIndicesSet resourceIndices
|
||||
ResourceIndicesSet resourceIndices,
|
||||
dv::value defaults
|
||||
);
|
||||
~Content();
|
||||
|
||||
|
|
@ -231,6 +233,10 @@ public:
|
|||
return resourceIndices[static_cast<size_t>(type)];
|
||||
}
|
||||
|
||||
inline const dv::value& getDefaults() const {
|
||||
return defaults;
|
||||
}
|
||||
|
||||
const rigging::SkeletonConfig* getSkeleton(const std::string& id) const;
|
||||
const BlockMaterial* findBlockMaterial(const std::string& id) const;
|
||||
const ContentPackRuntime* getPackRuntime(const std::string& id) const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue