HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...
Feature #656845 ยป LuaCalendarAccess.patch
common/scriptcore/api_game_methods.c (working copy) | ||
---|---|---|
/* common */
|
||
#include "achievements.h"
|
||
#include "actions.h"
|
||
#include "calendar.h"
|
||
#include "citizens.h"
|
||
#include "culture.h"
|
||
#include "game.h"
|
||
... | ... | |
}
|
||
/*****************************************************************************
|
||
Return the current year.
|
||
*****************************************************************************/
|
||
int api_methods_game_year(lua_State *L)
|
||
{
|
||
LUASCRIPT_CHECK_STATE(L, FALSE);
|
||
return game.info.year;
|
||
}
|
||
/*****************************************************************************
|
||
Return the current year fragment.
|
||
*****************************************************************************/
|
||
int api_methods_game_year_fragment(lua_State *L)
|
||
{
|
||
LUASCRIPT_CHECK_STATE(L, FALSE);
|
||
return game.info.fragment_count;
|
||
}
|
||
/*****************************************************************************
|
||
Return the current year fragment.
|
||
*****************************************************************************/
|
||
const char *api_methods_game_year_text(lua_State *L)
|
||
{
|
||
LUASCRIPT_CHECK_STATE(L, FALSE);
|
||
return calendar_text();
|
||
}
|
||
/*****************************************************************************
|
||
Return the current turn, as if real turns started from 0.
|
||
*****************************************************************************/
|
||
int api_methods_game_turn_deprecated(lua_State *L)
|
common/scriptcore/api_game_methods.h (working copy) | ||
---|---|---|
/* Game */
|
||
int api_methods_game_turn(lua_State *L);
|
||
int api_methods_game_turn_deprecated(lua_State *L);
|
||
int api_methods_game_year(lua_State *L);
|
||
int api_methods_game_year_fragment(lua_State *L);
|
||
const char *api_methods_game_year_text(lua_State *L);
|
||
const char *api_methods_game_rulesetdir(lua_State *L);
|
||
const char *api_methods_game_ruleset_name(lua_State *L);
|
||
common/scriptcore/tolua_game.pkg (working copy) | ||
---|---|---|
int api_methods_game_turn_deprecated
|
||
@ turn (lua_State *L);
|
||
int api_methods_game_year
|
||
@ current_year (lua_State *L);
|
||
int api_methods_game_year_fragment
|
||
@ current_fragment (lua_State *L);
|
||
const char *api_methods_game_year_text
|
||
@ current_year_text (lua_State *L);
|
||
const char *api_methods_game_rulesetdir
|
||
@ rulesetdir (lua_State *L);
|
||