openttd updated to 1.5.0-beta2

--HG--
branch : openttd
This commit is contained in:
Pavel Stupnikov
2015-03-01 00:30:53 +03:00
parent 0abb47ce90
commit d201932121
682 changed files with 26103 additions and 16553 deletions

View File

@@ -1,4 +1,4 @@
/* $Id: squirrel.hpp 23604 2011-12-19 20:50:54Z truebrain $ */
/* $Id: squirrel.hpp 26771 2014-09-06 17:30:33Z rubidium $ */
/*
* This file is part of OpenTTD.
@@ -41,6 +41,11 @@ private:
*/
const char *GetAPIName() { return this->APIName; }
/** Perform all initialization steps to create the engine. */
void Initialize();
/** Perform all the cleanups for the engine. */
void Uninitialize();
protected:
/**
* The CompileError handler.
@@ -194,7 +199,7 @@ public:
/**
* Convert a Squirrel-object to a string.
*/
static const char *ObjectToString(HSQOBJECT *ptr) { return SQ2OTTD(sq_objtostring(ptr)); }
static const char *ObjectToString(HSQOBJECT *ptr) { return sq_objtostring(ptr); }
/**
* Convert a Squirrel-object to an integer.
@@ -225,7 +230,7 @@ public:
/**
* Throw a Squirrel error that will be nicely displayed to the user.
*/
void ThrowError(const char *error) { sq_throwerror(this->vm, OTTD2SQ(error)); }
void ThrowError(const char *error) { sq_throwerror(this->vm, error); }
/**
* Release a SQ object.
@@ -248,11 +253,6 @@ public:
*/
bool HasScriptCrashed();
/**
* Reset the crashed status.
*/
void ResetCrashed();
/**
* Set the script status to crashed.
*/
@@ -267,6 +267,11 @@ public:
* How many operations can we execute till suspension?
*/
SQInteger GetOpsTillSuspend();
/**
* Completely reset the engine; start from scratch.
*/
void Reset();
};
#endif /* SQUIRREL_HPP */