Generate AIs

This commit is contained in:
Léo Lam
2020-12-31 14:06:35 +01:00
parent a226027828
commit 3869e440e7
2534 changed files with 78759 additions and 5 deletions
+5
View File
@@ -64,6 +64,11 @@ struct AiFactory {
using CreateFn = Ai* (*)(const Ai::InitArg& arg, sead::Heap* heap);
u32 hash;
CreateFn create_fn;
template <typename T>
static Ai* make(const Ai::InitArg& arg, sead::Heap* heap) {
return new (heap) T(arg);
}
};
class Ais {