ContentBuilder: Add method `get` to get definition or nullptr ContentLoader: Add functionality to clone from definition specified in `parent` field in json
12 lines
315 B
C++
12 lines
315 B
C++
#include "EntityDef.hpp"
|
|
void EntityDef::cloneTo(EntityDef& dst) {
|
|
dst.components = components;
|
|
dst.bodyType = bodyType;
|
|
dst.hitbox = hitbox;
|
|
dst.boxSensors = boxSensors;
|
|
dst.radialSensors = radialSensors;
|
|
dst.skeletonName = skeletonName;
|
|
dst.blocking = blocking;
|
|
dst.save = save;
|
|
|
|
} |