Skip to content

Commit

Permalink
added loads of gameserver stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
xushTW committed Mar 22, 2017
1 parent 087cd4d commit 7d4d8e5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/engine/server/lua_apidef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 7d4d8e5

Please sign in to comment.