ItemDef/EntityDef/Block: Add method cloneTo to definition to other definition
ContentBuilder: Add method `get` to get definition or nullptr ContentLoader: Add functionality to clone from definition specified in `parent` field in json
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#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;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user