Generate actions

This commit is contained in:
Léo Lam
2020-12-26 22:42:23 +01:00
parent dff91d6b4c
commit 02c583ca4d
3864 changed files with 138282 additions and 6792 deletions
+5
View File
@@ -24,6 +24,11 @@ struct ActionFactory {
using CreateFn = Action* (*)(const Action::InitArg& arg, sead::Heap* heap);
u32 hash;
CreateFn create_fn;
template <typename T>
static Action* make(const Action::InitArg& arg, sead::Heap* heap) {
return new (heap) T(arg);
}
};
class Actions {