1 | /* |
1 | /* |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
3 | * |
3 | * |
|
|
4 | * Copyright (©) 2017,2018 Marc Alexander Lehmann / the Deliantra team |
4 | * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2002 Mark Wedel & Crossfire Development Team |
6 | * Copyright (©) 2002 Mark Wedel & Crossfire Development Team |
6 | * Copyright (©) 1992 Frank Tore Johansen |
7 | * Copyright (©) 1992 Frank Tore Johansen |
7 | * |
8 | * |
8 | * Deliantra is free software: you can redistribute it and/or modify it under |
9 | * Deliantra is free software: you can redistribute it and/or modify it under |
… | |
… | |
89 | {"run" , command_run , 0.0}, |
90 | {"run" , command_run , 0.0}, |
90 | {"run_stop" , command_run_stop , 0.0}, |
91 | {"run_stop" , command_run_stop , 0.0}, |
91 | {"fire" , command_fire , 0.0}, |
92 | {"fire" , command_fire , 0.0}, |
92 | {"fire_stop", command_fire_stop, 0.0}, |
93 | {"fire_stop", command_fire_stop, 0.0}, |
93 | }; |
94 | }; |
94 | static const int CommandsSize = array_length (Commands); |
95 | static const int CommandsSize = ecb_array_length (Commands); |
95 | |
96 | |
96 | /* |
97 | /* |
97 | * Wizard commands (for both) |
98 | * Wizard commands (for both) |
98 | */ |
99 | */ |
99 | static CommArray_s WizCommands[] = { |
100 | static CommArray_s WizCommands[] = { |
… | |
… | |
121 | {"stack_push", command_stack_push, 0.0}, |
122 | {"stack_push", command_stack_push, 0.0}, |
122 | {"stats", command_stats, 0.0}, |
123 | {"stats", command_stats, 0.0}, |
123 | {"summon", command_summon, 0.0}, |
124 | {"summon", command_summon, 0.0}, |
124 | //{"overlay_save", command_save_overlay, 0.0}, |
125 | //{"overlay_save", command_save_overlay, 0.0}, |
125 | }; |
126 | }; |
126 | static const int WizCommandsSize = array_length (WizCommands); |
127 | static const int WizCommandsSize = ecb_array_length (WizCommands); |
127 | |
128 | |
128 | static int |
129 | static int |
129 | compare_A (const void *a, const void *b) |
130 | compare_A (const void *a, const void *b) |
130 | { |
131 | { |
131 | return strcmp (((CommArray_s *)a)->name, ((CommArray_s *)b)->name); |
132 | return strcmp (((CommArray_s *)a)->name, ((CommArray_s *)b)->name); |