mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
refactor: add 'const' qualifier for content units
This commit is contained in:
parent
2689e13cea
commit
333cbfe6f5
5 changed files with 7 additions and 15 deletions
|
|
@ -75,7 +75,7 @@ static sensorcallback create_sensor_callback(Entities* entities) {
|
|||
}
|
||||
|
||||
static void initialize_body(
|
||||
EntityDef& def, Rigidbody& body, entityid_t id, Entities* entities
|
||||
const EntityDef& def, Rigidbody& body, entityid_t id, Entities* entities
|
||||
) {
|
||||
body.sensors.resize(def.radialSensors.size() + def.boxSensors.size());
|
||||
for (auto& [i, box] : def.boxSensors) {
|
||||
|
|
@ -111,7 +111,7 @@ static void initialize_body(
|
|||
}
|
||||
|
||||
entityid_t Entities::spawn(
|
||||
EntityDef& def,
|
||||
const EntityDef& def,
|
||||
glm::vec3 position,
|
||||
dynamic::Map_sptr args,
|
||||
dynamic::Map_sptr saved,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue