Etterna 0.75.1
Loading...
Searching...
No Matches
LunaGameState Class Reference

Allow Lua to have access to the GameState. More...

Inheritance diagram for LunaGameState:
Collaboration diagram for LunaGameState:

Public Member Functions

 DEFINE_METHOD (PlayerIsUsingModifier, PlayerIsUsingModifier(PLAYER_1, SArg(2))) static int GetSongPosition(T *p
 DEFINE_METHOD (GetSongOptionsString, m_SongOptions.GetCurrent().GetString()) static int GetSessionTime(T *p
 DEFINE_METHOD (GetEditLocalProfileID, m_sEditLocalProfileID.Get())
 DEFINE_METHOD (GetPreferredSongGroup, m_sPreferredSongGroup.Get())
Public Member Functions inherited from Luna< GameState >
auto GetClassName () const -> const std::string &override
auto GetBaseClassName () const -> const std::string &override
Public Member Functions inherited from LuaBinding
void Register (lua_State *L)
auto IsDerivedClass () const -> bool

Static Public Member Functions

static int SetNumMultiplayerNoteFields (T *p, lua_State *L)
static int GetPlayerState (T *p, lua_State *L)
static int GetMultiPlayerState (T *p, lua_State *L)
static int ApplyGameCommand (T *p, lua_State *L)
static int GetCurrentSong (T *p, lua_State *L)
static int SetCurrentSong (T *p, lua_State *L)
static int CanSafelyEnterGameplay (T *p, lua_State *L)
static void SetCompatibleStyleOrError (T *p, lua_State *L, StepsType stype, PlayerNumber pn)
static int GetCurrentSteps (T *p, lua_State *L)
static int SetCurrentSteps (T *p, lua_State *L)
static int GetPreferredSong (T *p, lua_State *L)
static int SetPreferredSong (T *p, lua_State *L)
static int SetTemporaryEventMode (T *p, lua_State *L)
static int Env (T *p, lua_State *L)
static int SetLastSongGroup (T *p, lua_State *L)
static int SetPreferredDifficulty (T *p, lua_State *L)
static int GetSongOptions (T *p, lua_State *L)
static int GetSongOptionsObject (T *p, lua_State *L)
static int GetDefaultSongOptions (T *p, lua_State *L)
static int ApplyPreferredSongOptionsToOtherLevels (T *p, lua_State *L)
static int ApplyStageModifiers (T *p, lua_State *L)
static int ApplyPreferredModifiers (T *p, lua_State *L)
static int SetSongOptions (T *p, lua_State *L)
static int GetCurrentGame (T *p, lua_State *L)
static int GetEditLocalProfile (T *p, lua_State *L)
static int GetCurrentStepsCredits (T *t, lua_State *L)
static int SetPreferredSongGroup (T *p, lua_State *L)
static int GetHumanPlayers (T *p, lua_State *L)
static int GetEnabledPlayers (T *, lua_State *L)
static int GetCurrentStyle (T *p, lua_State *L)
static int GetNumStagesForCurrentSongAndStepsOrCourse (T *, lua_State *L)
static int GetNumStagesLeft (T *p, lua_State *L)
static int GetGameSeed (T *p, lua_State *L)
static int JoinInput (T *p, lua_State *L)
static int Reset (T *p, lua_State *L)
static int JoinPlayer (T *p, lua_State *L)
static int UnjoinPlayer (T *p, lua_State *L)
static int GetSongPercent (T *p, lua_State *L)
static int GetExpandedSectionName (T *p, lua_State *L)
static int AddStageToPlayer (T *p, lua_State *L)
static int InsertCoin (T *p, lua_State *L)
static int InsertCredit (T *p, lua_State *L)
static int CurrentOptionsDisqualifyPlayer (T *p, lua_State *L)
static int ResetPlayerOptions (T *p, lua_State *L)
static int RefreshNoteSkinData (T *p, lua_State *L)
static int LoadProfiles (T *p, lua_State *L)
static int SaveProfiles (T *p, lua_State *L)
static int SetFailTypeExplicitlySet (T *p, lua_State *L)
static int StoreRankingName (T *p, lua_State *L)
static int SetCurrentStyle (T *p, lua_State *L)
static int IsCourseMode (T *p, lua_State *L)
static int GetCoinMode (T *p, lua_State *L)
static int IsPaused (T *p, lua_State *L)
static int SetAutoplay (T *p, lua_State *L)
static int GetGameplayMode (T *p, lua_State *L)
static int SetPracticeMode (T *p, lua_State *L)
static int GetTimingScales (T *p, lua_State *L)
static int GetPreferredStepsType (T *p, lua_State *L)
Static Public Member Functions inherited from Luna< GameState >
static auto check (lua_State *L, int narg, bool bIsSelf=false) -> T *
static auto get (lua_State *L, int narg) -> T *
static void PushObject (Lua *L, const std::string &sDerivedClassName, T *p)
Static Public Member Functions inherited from LuaBinding
static void RegisterTypes (lua_State *L)
static void ApplyDerivedType (Lua *L, const std::string &sClassname, void *pSelf)
static auto CheckLuaObjectType (lua_State *L, int narg, std::string const &szType) -> bool

Public Attributes

lua_State * L
 return

Additional Inherited Members

Static Public Attributes inherited from Luna< GameState >
static std::string m_sClassName
static std::string m_sBaseClassName
Protected Types inherited from Luna< GameState >
using T
using binding_t
Protected Member Functions inherited from Luna< GameState >
void Register (Lua *L, int iMethods, int iMetatable) override
void AddMethod (std::string const &regName, int(*pFunc)(T *p, lua_State *L))
Static Protected Member Functions inherited from LuaBinding
static void CreateMethodsTable (lua_State *L, const std::string &szName)
static auto GetPointerFromStack (Lua *L, const std::string &sType, int iArg) -> void *
static auto Equal (lua_State *L) -> bool
static auto PushEqual (lua_State *L) -> int

Detailed Description

Allow Lua to have access to the GameState.

Member Data Documentation

◆ L

lua_State * LunaGameState::L
Initial value:
{
p->m_Position.PushSelf(L)

The documentation for this class was generated from the following file:
  • /home/runner/work/etterna/etterna/src/Etterna/Singletons/GameState.cpp