Polyphase Game Engine
Loading...
Searching...
No Matches
TimelinePlayer_Lua.h
Go to the documentation of this file.
1#pragma once
2
3#include "EngineTypes.h"
4#include "Log.h"
5#include "Engine.h"
6
8
11
12#if LUA_ENABLED
13
14#define TIMELINE_PLAYER_LUA_NAME "TimelinePlayer"
15#define TIMELINE_PLAYER_LUA_FLAG "cfTimelinePlayer"
16#define CHECK_TIMELINE_PLAYER(L, arg) static_cast<TimelinePlayer*>(CheckNodeLuaType(L, arg, TIMELINE_PLAYER_LUA_NAME, TIMELINE_PLAYER_LUA_FLAG));
17
18struct TimelinePlayer_Lua
19{
20 static int Play(lua_State* L);
21 static int Pause(lua_State* L);
22 static int Stop(lua_State* L);
23 static int SetTime(lua_State* L);
24 static int GetTime(lua_State* L);
25 static int GetDuration(lua_State* L);
26 static int IsPlaying(lua_State* L);
27 static int IsPaused(lua_State* L);
28 static int GetProgress(lua_State* L);
29 static int SetTimeline(lua_State* L);
30 static int GetTimeline(lua_State* L);
31 static int SetPlayOnStart(lua_State* L);
32 static int GetPlayOnStart(lua_State* L);
33
34 static void Bind();
35};
36
37#endif
bool IsPlaying()
Definition Engine.cpp:1327
bool IsPaused()
Definition Engine.cpp:1473