Merge pull request #5 from busheezy/exports

ADD: server exports and manifest version to mapmanager
This commit is contained in:
リーフストーム
2017-06-09 09:32:23 +02:00
committed by GitHub
2 changed files with 14 additions and 1 deletions

View File

@@ -7,3 +7,12 @@ server_scripts {
"mapmanager_server.lua",
"mapmanager_shared.lua"
}
resource_manifest_version "77731fab-63ca-442c-a67b-abc70f28dfa5"
server_export "getCurrentGameType"
server_export "getCurrentMap"
server_export "changeGameType"
server_export "changeMap"
server_export "doesMapSupportGameType"
server_export "getMaps"

View File

@@ -267,6 +267,10 @@ function getCurrentMap()
return currentMap
end
function getMaps()
return maps
end
function changeGameType(gameType)
if currentMap and not doesMapSupportGameType(gameType, currentMap) then
StopResource(currentMap)