summaryrefslogtreecommitdiff
path: root/src/ai/api
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-03-16 17:30:49 +0000
committeryexo <yexo@openttd.org>2009-03-16 17:30:49 +0000
commit384599ef2c7c6811a423fa86bfd83baf5677a8f1 (patch)
tree9da67ee4ea25da4d09c107f647fd9620d713ca9f /src/ai/api
parentb078f8095a195c07207f10c90da679421baa27ee (diff)
downloadopenttd-384599ef2c7c6811a423fa86bfd83baf5677a8f1.tar.xz
(svn r15743) -Codechange: move the definitions of some fake squirrel types to their own file.
Diffstat (limited to 'src/ai/api')
-rw-r--r--src/ai/api/ai_types.hpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/ai/api/ai_types.hpp b/src/ai/api/ai_types.hpp
index 2ccd1d27d..45db6b324 100644
--- a/src/ai/api/ai_types.hpp
+++ b/src/ai/api/ai_types.hpp
@@ -7,6 +7,7 @@
#include "../../core/overflowsafe_type.hpp"
#include "../../company_type.h"
+#include "../../script/fake_squirrel_types.hpp"
/* Define all types here, so we don't have to include the whole _type.h maze */
typedef uint BridgeType; //!< Internal name, not of any use for you.
@@ -30,12 +31,4 @@ typedef uint AIErrorType; //!< The types of errors inside the NoAI framework.
typedef BridgeType BridgeID; //!< The ID of a bridge.
typedef uint16 SubsidyID; //!< The ID of a subsidy.
-#ifndef _SQUIRREL_H_
-/* Life becomes easier when we can tell about a function it needs the VM, but
- * without really including 'squirrel.h'. */
-typedef struct SQVM *HSQUIRRELVM; //!< Pointer to Squirrel Virtual Machine.
-typedef int SQInteger; //!< Squirrel Integer.
-typedef struct SQObject HSQOBJECT; //!< Squirrel Object (fake declare)
-#endif
-
#endif /* AI_TYPES_HPP */