CMD table.
Moderator: Moderators
Re: CMD table.
CMD is kinda hard to track down via find in files. I'll get the latest source and try later today. If anyone else can narrow my search down I'd appreciate it.
Re: CMD table.
Not entirely clear what you're after without context, but
https://github.com/spring/spring/blob/d ... nstCMD.cpp
https://github.com/spring/spring/blob/d ... nstCMD.cpp
Re: CMD table.
in lua there is a table CMD
it stores command name and id, so a made up example:
PATROL_FOR_YORDLES with an id 9001
in cmd there are 2 entries for this command
PATROL_FOR_YORDLES = 9001,
9001 = PATROL_FOR_YORDLES,
it stores command name and id, so a made up example:
PATROL_FOR_YORDLES with an id 9001
in cmd there are 2 entries for this command
PATROL_FOR_YORDLES = 9001,
9001 = PATROL_FOR_YORDLES,
Re: CMD table.
Then my link is what you're after, or at least the starting point.
Re: CMD table.
yeah definitely the bit I wanted
#define PUSH_CMD(cmd) LuaInsertDualMapPair(L, #cmd, CMD_ ## cmd);
LuaInsertDualMapPair(L, #cmd, CMD_ ## cmd); is in the lua utilities file blah blah etc.
good I can complete that part.
#define PUSH_CMD(cmd) LuaInsertDualMapPair(L, #cmd, CMD_ ## cmd);
LuaInsertDualMapPair(L, #cmd, CMD_ ## cmd); is in the lua utilities file blah blah etc.
good I can complete that part.