// Copyright (c) 2023 Alex Diener. All rights reserved. #include "PROJECT_NAME/EntityComponent_facing.h" #define stemobject_implementation EntityComponent_facing stemobject_vtable_begin(); stemobject_vtable_entry(dispose); stemobject_vtable_entry(initCopy); stemobject_vtable_end(); bool EntityComponent_facing_init(EntityComponent_facing * self, FacingDirection facing) { call_super(init, self); self->facing = facing; return true; } void EntityComponent_facing_dispose(EntityComponent_facing * self) { call_super_virtual(dispose, self); } void EntityComponent_facing_initCopy(EntityComponent_facing * self, compat_type(GameEntityComponent *) originalUntyped) { call_super_virtual(initCopy, self, originalUntyped); EntityComponent_facing * original = originalUntyped; self->facing = original->facing; }