update to 1.6.1

--HG--
branch : openttd
This commit is contained in:
Pavel Stupnikov
2016-07-01 01:42:17 +03:00
parent b42123c570
commit ecdb1590ab
86 changed files with 5892 additions and 533 deletions

View File

@@ -1,4 +1,4 @@
/* $Id: ai_changelog.hpp 27519 2016-03-01 20:06:23Z frosch $ */
/* $Id: ai_changelog.hpp 27596 2016-06-01 18:35:24Z frosch $ */
/*
* This file is part of OpenTTD.
@@ -15,6 +15,10 @@
* functions may still be available if you return an older API version
* in GetAPIVersion() in info.nut.
*
* \b 1.6.1
*
* No changes
*
* \b 1.6.0
*
* No changes

View File

@@ -1,4 +1,4 @@
/* $Id: game_changelog.hpp 27519 2016-03-01 20:06:23Z frosch $ */
/* $Id: game_changelog.hpp 27596 2016-06-01 18:35:24Z frosch $ */
/*
* This file is part of OpenTTD.
@@ -15,6 +15,10 @@
* functions may still be available if you return an older API version
* in GetAPIVersion() in info.nut.
*
* \b 1.6.1
*
* No changes
*
* \b 1.6.0
*
* No changes

View File

@@ -1,4 +1,4 @@
/* $Id: script_execmode.hpp 27379 2015-08-10 20:04:31Z frosch $ */
/* $Id: script_execmode.hpp 27587 2016-05-29 18:52:56Z frosch $ */
/*
* This file is part of OpenTTD.
@@ -47,6 +47,9 @@ public:
*/
~ScriptExecMode();
/**
* @api -all
*/
virtual void FinalRelease();
};

View File

@@ -1,4 +1,4 @@
/* $Id: script_testmode.hpp 27379 2015-08-10 20:04:31Z frosch $ */
/* $Id: script_testmode.hpp 27587 2016-05-29 18:52:56Z frosch $ */
/*
* This file is part of OpenTTD.
@@ -49,6 +49,9 @@ public:
*/
~ScriptTestMode();
/**
* @api -all
*/
virtual void FinalRelease();
};

View File

@@ -1,4 +1,4 @@
/* $Id: script_text.hpp 27102 2015-01-01 20:50:43Z rubidium $ */
/* $Id: script_text.hpp 27587 2016-05-29 18:52:56Z frosch $ */
/*
* This file is part of OpenTTD.
@@ -124,7 +124,10 @@ public:
ScriptText *AddParam(Object value);
#endif /* DOXYGEN_API */
/* virtual */ const char *GetEncodedText();
/**
* @api -all
*/
virtual const char *GetEncodedText();
private:
StringID string;

View File

@@ -1,4 +1,4 @@
# $Id: squirrel_export.awk 24288 2012-05-26 14:16:27Z frosch $
# $Id: squirrel_export.awk 27587 2016-05-29 18:52:56Z frosch $
# This file is part of OpenTTD.
# OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
@@ -81,7 +81,6 @@ function reset_reader()
struct_size = 0
method_size = 0
static_method_size = 0
virtual_class = "false"
cls = ""
start_squirrel_define_on_next_line = "false"
cls_level = 0
@@ -97,7 +96,6 @@ BEGIN {
struct_size = 0
method_size = 0
static_method_size = 0
virtual_class = "false"
super_cls = ""
cls = ""
api_selected = ""
@@ -340,7 +338,7 @@ BEGIN {
} else {
print " SQ" api_cls ".PreRegister(engine, \"" api_super_cls "\");"
}
if (virtual_class == "false" && super_cls != "ScriptEvent") {
if (super_cls != "ScriptEvent") {
if (cls_param[2] == "v") {
print " SQ" api_cls ".AddSQAdvancedConstructor(engine);"
} else {
@@ -409,22 +407,21 @@ BEGIN {
}
if (static_method_size != 0) print ""
if (virtual_class == "false") {
# Non-static methods
mlen = 0
for (i = 1; i <= method_size; i++) {
if (mlen <= length(methods[i, 0])) mlen = length(methods[i, 0])
}
for (i = 1; i <= method_size; i++) {
if (methods[i, 2] == "v") {
print " SQ" api_cls ".DefSQAdvancedMethod(engine, &" cls "::" methods[i, 0] ", " substr(spaces, 1, mlen - length(methods[i, 0]) - 8) "\"" methods[i, 0] "\");"
} else {
print " SQ" api_cls ".DefSQMethod(engine, &" cls "::" methods[i, 0] ", " substr(spaces, 1, mlen - length(methods[i, 0])) "\"" methods[i, 0] "\", " substr(spaces, 1, mlen - length(methods[i, 0])) "" methods[i, 1] ", \"" methods[i, 2] "\");"
}
delete methods[i]
}
if (method_size != 0) print ""
# Non-static methods
mlen = 0
for (i = 1; i <= method_size; i++) {
if (mlen <= length(methods[i, 0])) mlen = length(methods[i, 0])
}
for (i = 1; i <= method_size; i++) {
if (methods[i, 2] == "v") {
print " SQ" api_cls ".DefSQAdvancedMethod(engine, &" cls "::" methods[i, 0] ", " substr(spaces, 1, mlen - length(methods[i, 0]) - 8) "\"" methods[i, 0] "\");"
} else {
print " SQ" api_cls ".DefSQMethod(engine, &" cls "::" methods[i, 0] ", " substr(spaces, 1, mlen - length(methods[i, 0])) "\"" methods[i, 0] "\", " substr(spaces, 1, mlen - length(methods[i, 0])) "" methods[i, 1] ", \"" methods[i, 2] "\");"
}
delete methods[i]
}
if (method_size != 0) print ""
print " SQ" api_cls ".PostRegister(engine);"
print "}"
@@ -489,9 +486,6 @@ BEGIN {
}
is_static = match($0, "static")
if (match($0, "virtual")) {
virtual_class = "true"
}
gsub("\\yvirtual\\y", "", $0)
gsub("\\ystatic\\y", "", $0)
gsub("\\yconst\\y", "", $0)