mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-08 17:48:46 -10:00
15 lines
455 B
C++
15 lines
455 B
C++
#include "multi.h"
|
|
|
|
#include "network/multi.h"
|
|
|
|
namespace scripting {
|
|
namespace api {
|
|
//**********LIBRARY: Multi
|
|
ADE_LIB(l_Multi, "Multi", "multi", "Functions for scripting for and in multiplayer environments.");
|
|
|
|
ADE_FUNC(isServer, l_Multi, nullptr, "Prints a string", "boolean", "true if the script is running on the server, false if it is running on a client or in singleplayer.")
|
|
{
|
|
return ade_set_args(L, "b", MULTIPLAYER_MASTER);
|
|
}
|
|
}
|
|
} |