From 7d4d8e5b445f929db2ae83c1a2ff036caff63307 Mon Sep 17 00:00:00 2001 From: xushTW Date: Wed, 22 Mar 2017 20:52:56 +0100 Subject: [PATCH] added loads of gameserver stuff --- src/engine/server/lua_apidef.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/engine/server/lua_apidef.cpp b/src/engine/server/lua_apidef.cpp index ba4497b5..bf5992e2 100644 --- a/src/engine/server/lua_apidef.cpp +++ b/src/engine/server/lua_apidef.cpp @@ -156,6 +156,26 @@ void CLua::RegisterLuaBindings() .addFunction("IsAuthed", &IServer::IsAuthed) .addFunction("Kick", &IServer::Kick) + + // CGameContext stuff (makes sense in Game.Server IMO) + .addFunction("StartVote", &CGameContext::StartVote) + .addFunction("EndVote", &CGameContext::EndVote) + + .addFunction("CreateDamageInd", &CGameContext::CreateDamageInd) + .addFunction("CreateExplosion", &CGameContext::CreateExplosion) + .addFunction("CreateHammerHit", &CGameContext::CreateHammerHit) + .addFunction("CreatePlayerSpawn", &CGameContext::CreatePlayerSpawn) + .addFunction("CreateDeath", &CGameContext::CreateDeath) + .addFunction("CreateSound", &CGameContext::CreateSound) + .addFunction("CreateSoundGlobal", &CGameContext::CreateSoundGlobal) + + .addFunction("SendChatTarget", &CGameContext::SendChatTarget) + .addFunction("SendChat", &CGameContext::SendChat) + .addFunction("SendEmoticon", &CGameContext::SendEmoticon) + .addFunction("SendWeaponPickup", &CGameContext::SendWeaponPickup) + .addFunction("SendBroadcast", &CGameContext::SendBroadcast) + + .addFunction("SwapTeams", &CGameContext::SwapTeams) .endClass() .beginNamespace("Game")