mirror of
https://github.com/whoahq/whoa.git
synced 2026-03-18 05:31:07 +03:00
feat(ui): implement Script_GetGameTime
This commit is contained in:
parent
efd3f8e8f4
commit
50a24e8564
@ -20,7 +20,6 @@
|
||||
#include "ui/FrameXML.hpp"
|
||||
#include "ui/Game.hpp"
|
||||
#include "util/Random.hpp"
|
||||
#include "util/Time.hpp"
|
||||
#include "world/World.hpp"
|
||||
#include <bc/Debug.hpp>
|
||||
#include <common/Prop.hpp>
|
||||
|
||||
@ -2,10 +2,10 @@
|
||||
#define CLIENT_CLIENT_HPP
|
||||
|
||||
#include "event/Event.hpp"
|
||||
#include "util/Time.hpp"
|
||||
#include <tempest/Vector.hpp>
|
||||
|
||||
class CVar;
|
||||
class CGameTime;
|
||||
|
||||
namespace Client {
|
||||
extern CVar* g_accountNameVar;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
#include "ui/FrameScript.hpp"
|
||||
#include "client/Client.hpp"
|
||||
#include "ui/ScriptFunctionsShared.hpp"
|
||||
#include "ui/Types.hpp"
|
||||
#include "util/Lua.hpp"
|
||||
@ -14,10 +15,10 @@ int32_t Script_GetTime(lua_State* L) {
|
||||
}
|
||||
|
||||
int32_t Script_GetGameTime(lua_State* L) {
|
||||
// TODO real implementation
|
||||
lua_pushnumber(L, 1.0);
|
||||
lua_pushnumber(L, 15.0);
|
||||
WHOA_UNIMPLEMENTED(2);
|
||||
lua_pushnumber(L, g_clientGameTime.m_hour);
|
||||
lua_pushnumber(L, g_clientGameTime.m_minute);
|
||||
|
||||
return 2;
|
||||
}
|
||||
|
||||
int32_t Script_ConsoleExec(lua_State* L) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user