summaryrefslogtreecommitdiff
path: root/src/command_type.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-08 14:40:18 +0000
committerrubidium <rubidium@openttd.org>2009-01-08 14:40:18 +0000
commit427e2d30c538e2edc1e9a570a2bf349b36dc5d75 (patch)
treeaaad012b34556fa555a78f97f1b9ff51be515025 /src/command_type.h
parent38bd396f9022748b8768a543be5234c46c7d68fa (diff)
downloadopenttd-427e2d30c538e2edc1e9a570a2bf349b36dc5d75.tar.xz
(svn r14915) -Codechange: unify the receiving and sending of commands, and thus unifying most of the validity checking too.
Diffstat (limited to 'src/command_type.h')
-rw-r--r--src/command_type.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/command_type.h b/src/command_type.h
index ccc0df26c..e61464504 100644
--- a/src/command_type.h
+++ b/src/command_type.h
@@ -389,4 +389,16 @@ struct Command {
*/
typedef void CommandCallback(bool success, TileIndex tile, uint32 p1, uint32 p2);
+/**
+ * Structure for buffering the build command when selecting a station to join.
+ */
+struct CommandContainer {
+ TileIndex tile; ///< tile command being executed on
+ uint32 p1; ///< parameter p1
+ uint32 p2; ///< parameter p2
+ uint32 cmd; ///< command being executed
+ CommandCallback *callback; ///< any callback function executed upon successful completion of the command
+ char text[80]; ///< possible text sent for name changes etc
+};
+
#endif /* COMMAND_TYPE_H */