From a06e03f1a8c4de2747074326974e39f11c29b8a8 Mon Sep 17 00:00:00 2001 From: Ghabry Date: Mon, 5 Nov 2018 01:10:58 +0100 Subject: [PATCH] Add Maniac Patch Event commands up to 190920 --- generator/csv/enums_easyrpg.csv | 17 +++++++++++++++++ generator/generate.py | 2 +- src/generated/rpg_eventcommand.h | 18 +++++++++++++++++- 3 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 generator/csv/enums_easyrpg.csv diff --git a/generator/csv/enums_easyrpg.csv b/generator/csv/enums_easyrpg.csv new file mode 100644 index 000000000..b8521b3df --- /dev/null +++ b/generator/csv/enums_easyrpg.csv @@ -0,0 +1,17 @@ +#Structure,Entry,Value,Index +EventCommand,Code,Maniac_GetSaveInfo,3001 +EventCommand,Code,Maniac_Save,3002 +EventCommand,Code,Maniac_Load,3003 +EventCommand,Code,Maniac_EndLoadProcess,3004 +EventCommand,Code,Maniac_GetMousePosition,3005 +EventCommand,Code,Maniac_SetMousePosition,3006 +EventCommand,Code,Maniac_ShowStringPicture,3007 +EventCommand,Code,Maniac_GetPictureInfo,3008 +EventCommand,Code,Maniac_ControlBattle,3009 +EventCommand,Code,Maniac_ControlAtbGauge,3010 +EventCommand,Code,Maniac_ChangeBattleCommandEx,3011 +EventCommand,Code,Maniac_GetBattleInfo,3012 +EventCommand,Code,Maniac_ControlVarArray,3013 +EventCommand,Code,Maniac_KeyInputProcEx,3014 +EventCommand,Code,Maniac_RewriteMap,3015 +EventCommand,Code,Maniac_ControlGlobalSave,3016 diff --git a/generator/generate.py b/generator/generate.py index b823b810f..111b07b47 100755 --- a/generator/generate.py +++ b/generator/generate.py @@ -417,7 +417,7 @@ def main(argv): structs = get_structs('structs.csv','structs_easyrpg.csv') sfields = get_fields('fields.csv','fields_easyrpg.csv') - enums = get_enums('enums.csv') + enums = get_enums('enums.csv','enums_easyrpg.csv') flags = get_flags('flags.csv') setup = get_setup('setup.csv') constants = get_constants() diff --git a/src/generated/rpg_eventcommand.h b/src/generated/rpg_eventcommand.h index c71183dae..c635e507c 100644 --- a/src/generated/rpg_eventcommand.h +++ b/src/generated/rpg_eventcommand.h @@ -153,7 +153,23 @@ namespace RPG { EndLoop = 22210, Comment_2 = 22410, ElseBranch_B = 23310, - EndBranch_B = 23311 + EndBranch_B = 23311, + Maniac_GetSaveInfo = 3001, + Maniac_Save = 3002, + Maniac_Load = 3003, + Maniac_EndLoadProcess = 3004, + Maniac_GetMousePosition = 3005, + Maniac_SetMousePosition = 3006, + Maniac_ShowStringPicture = 3007, + Maniac_GetPictureInfo = 3008, + Maniac_ControlBattle = 3009, + Maniac_ControlAtbGauge = 3010, + Maniac_ChangeBattleCommandEx = 3011, + Maniac_GetBattleInfo = 3012, + Maniac_ControlVarArray = 3013, + Maniac_KeyInputProcEx = 3014, + Maniac_RewriteMap = 3015, + Maniac_ControlGlobalSave = 3016 }; };