mirror of https://github.com/zeldaret/botw.git
tools/generate_bgparamlist_struct: Generate includes as well
For convenience :)
This commit is contained in:
parent
5ff20fa250
commit
dccd9cc720
|
|
@ -77,6 +77,17 @@ def main() -> None:
|
|||
|
||||
class_name = f"GParamListObject{args.object}"
|
||||
|
||||
# Includes
|
||||
print("""\
|
||||
#pragma once
|
||||
|
||||
#include <agl/Utils/aglParameter.h>
|
||||
#include "KingSystem/Resource/GeneralParamList/resGParamListObject.h"
|
||||
#include "KingSystem/Utils/Types.h"
|
||||
|
||||
namespace ksys::res {
|
||||
""")
|
||||
|
||||
# Generate the class definition.
|
||||
print(f"class {class_name} : public GParamListObject {{")
|
||||
print(f"public:")
|
||||
|
|
@ -102,6 +113,9 @@ def main() -> None:
|
|||
print(f' m{name}.init({default_value_repr}, "{name}", "", obj);')
|
||||
print("}")
|
||||
|
||||
print()
|
||||
print("} // namespace ksys::res")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
|||
Loading…
Reference in New Issue