C# 클래스 GarrysModLuaShared.system

The system library provides functions that allow you to gather information about the system running the game, such as operating system, uptime and battery level.
파일 보기 프로젝트 열기: OmegaExtern/gmod-csharp-binary-module

공개 메소드들

메소드 설명
AppTime ( LuaState luaState ) : uint

Returns the total uptime of the current application. This will return a similar value to Global.SysTime.

BatteryPower ( LuaState luaState ) : byte

Returns the current battery power.

FlashWindow ( LuaState luaState ) : void

Flashes the window. Currently works only on Windows platform.

GetCountry ( LuaState luaState ) : string

Returns the country code of this computer, determined by the localisation settings of the OS.

HasFocus ( LuaState luaState ) : bool

Returns whether or not the game window has focus. This does nothing on dedicated servers. Returns true 100% of the time on OS X and returns nil on Linux platform.

IsLinux ( LuaState luaState ) : bool

Returns whether the current OS is Linux.

IsOSX ( LuaState luaState ) : bool

Returns whether the current OS is OSX.

IsWindowed ( LuaState luaState ) : bool

Returns true if the game is currently running windowed; otherwise false if it is fullscreen.

IsWindows ( LuaState luaState ) : bool

Returns whether the current OS is Windows.

SteamTime ( LuaState luaState ) : uint

Returns the synchronized steam time. This is the number of seconds since the Unix epoch.

UpTime ( LuaState luaState ) : uint

Returns the total uptime of operating system.

메소드 상세

AppTime() 공개 정적인 메소드

Returns the total uptime of the current application. This will return a similar value to Global.SysTime.
public static AppTime ( LuaState luaState ) : uint
luaState LuaState Pointer to lua_State struct.
리턴 uint

BatteryPower() 공개 정적인 메소드

Returns the current battery power.
public static BatteryPower ( LuaState luaState ) : byte
luaState LuaState Pointer to lua_State struct.
리턴 byte

FlashWindow() 공개 정적인 메소드

Flashes the window. Currently works only on Windows platform.
public static FlashWindow ( LuaState luaState ) : void
luaState LuaState Pointer to lua_State struct.
리턴 void

GetCountry() 공개 정적인 메소드

Returns the country code of this computer, determined by the localisation settings of the OS.
public static GetCountry ( LuaState luaState ) : string
luaState LuaState Pointer to lua_State struct.
리턴 string

HasFocus() 공개 정적인 메소드

Returns whether or not the game window has focus. This does nothing on dedicated servers. Returns true 100% of the time on OS X and returns nil on Linux platform.
public static HasFocus ( LuaState luaState ) : bool
luaState LuaState Pointer to lua_State struct.
리턴 bool

IsLinux() 공개 정적인 메소드

Returns whether the current OS is Linux.
public static IsLinux ( LuaState luaState ) : bool
luaState LuaState Pointer to lua_State struct.
리턴 bool

IsOSX() 공개 정적인 메소드

Returns whether the current OS is OSX.
public static IsOSX ( LuaState luaState ) : bool
luaState LuaState Pointer to lua_State struct.
리턴 bool

IsWindowed() 공개 정적인 메소드

Returns true if the game is currently running windowed; otherwise false if it is fullscreen.
public static IsWindowed ( LuaState luaState ) : bool
luaState LuaState Pointer to lua_State struct.
리턴 bool

IsWindows() 공개 정적인 메소드

Returns whether the current OS is Windows.
public static IsWindows ( LuaState luaState ) : bool
luaState LuaState Pointer to lua_State struct.
리턴 bool

SteamTime() 공개 정적인 메소드

Returns the synchronized steam time. This is the number of seconds since the Unix epoch.
public static SteamTime ( LuaState luaState ) : uint
luaState LuaState Pointer to lua_State struct.
리턴 uint

UpTime() 공개 정적인 메소드

Returns the total uptime of operating system.
public static UpTime ( LuaState luaState ) : uint
luaState LuaState Pointer to lua_State struct.
리턴 uint