C# Class GarrysModLuaShared.Global

Class that contains global functions.
显示文件 Open project: OmegaExtern/gmod-csharp-binary-module

Public Methods

Method Description
Angle ( double pitch = default(double), double yaw = default(double), double roll = default(double) ) : Angle
Color ( byte red = default(byte), byte green = default(byte), byte blue = default(byte), byte alpha = byte.MaxValue ) : LuaTable
CompileFile ( LuaState luaState, string path ) : lua_CFunction
CompileString ( LuaState luaState, string code, string identifier, bool handleError = true ) : lua_CFunction
CurTime ( LuaState luaState ) : double
Entity ( uint entityId ) : Entity
FrameTime ( LuaState luaState ) : double
GetConVar ( string name ) : ConVar
IsColor ( LuaState luaState, object variable ) : bool
IsValid ( LuaState luaState, object toBeValidated ) : bool
Lerp ( LuaState luaState, double t, double from, double to ) : double
LocalPlayer ( ) : Player
Matrix ( LuaTable data ) : VMatrix
Msg ( LuaState luaState ) : void
MsgN ( LuaState luaState ) : void
Player ( uint userId ) : Player
PrintTable ( LuaState luaState, LuaTable tableToPrint, double indent = default(double), LuaTable done = null ) : void
ProtectedCall ( LuaState luaState, lua_CFunction function ) : bool
RealFrameTime ( LuaState luaState ) : double
RealTime ( LuaState luaState ) : double
RunConsoleCommand ( LuaState luaState, string command ) : void
RunString ( LuaState luaState, string code ) : void
RunStringEx ( LuaState luaState, string code, string identifier = "RunString" ) : void
ScrH ( LuaState luaState ) : uint
ScrW ( LuaState luaState ) : uint
SysTime ( LuaState luaState ) : double
Vector ( double x = default(double), double y = default(double), double z = default(double) ) : Vector
include ( LuaState luaState, string fileName ) : void
isangle ( LuaState luaState, object variable ) : bool
isbool ( LuaState luaState, object variable ) : bool
isentity ( LuaState luaState, object variable ) : bool
isfunction ( LuaState luaState, object variable ) : bool
isnumber ( LuaState luaState, object variable ) : bool
ispanel ( LuaState luaState, object variable ) : bool
isstring ( LuaState luaState, object variable ) : bool
istable ( LuaState luaState, object variable ) : bool
isvector ( LuaState luaState, object variable ) : bool
print ( ) : void
print ( LuaState luaState ) : void
require ( LuaState luaState, string name ) : void

Method Details

Angle() public static method

public static Angle ( double pitch = default(double), double yaw = default(double), double roll = default(double) ) : Angle
pitch double
yaw double
roll double
return Angle

Color() public static method

public static Color ( byte red = default(byte), byte green = default(byte), byte blue = default(byte), byte alpha = byte.MaxValue ) : LuaTable
red byte
green byte
blue byte
alpha byte
return LuaTable

CompileFile() public static method

public static CompileFile ( LuaState luaState, string path ) : lua_CFunction
luaState LuaState
path string
return lua_CFunction

CompileString() public static method

public static CompileString ( LuaState luaState, string code, string identifier, bool handleError = true ) : lua_CFunction
luaState LuaState
code string
identifier string
handleError bool
return lua_CFunction

CurTime() public static method

public static CurTime ( LuaState luaState ) : double
luaState LuaState
return double

Entity() public static method

public static Entity ( uint entityId ) : Entity
entityId uint
return GarrysModLuaShared.Classes.Entity

FrameTime() public static method

public static FrameTime ( LuaState luaState ) : double
luaState LuaState
return double

GetConVar() public static method

public static GetConVar ( string name ) : ConVar
name string
return ConVar

IsColor() public static method

public static IsColor ( LuaState luaState, object variable ) : bool
luaState LuaState
variable object
return bool

IsValid() public static method

public static IsValid ( LuaState luaState, object toBeValidated ) : bool
luaState LuaState
toBeValidated object
return bool

Lerp() public static method

public static Lerp ( LuaState luaState, double t, double from, double to ) : double
luaState LuaState
t double
from double
to double
return double

LocalPlayer() public static method

public static LocalPlayer ( ) : Player
return GarrysModLuaShared.Classes.Player

Matrix() public static method

public static Matrix ( LuaTable data ) : VMatrix
data LuaTable
return GarrysModLuaShared.Classes.VMatrix

Msg() public static method

public static Msg ( LuaState luaState ) : void
luaState LuaState
return void

MsgN() public static method

public static MsgN ( LuaState luaState ) : void
luaState LuaState
return void

Player() public static method

public static Player ( uint userId ) : Player
userId uint
return GarrysModLuaShared.Classes.Player

PrintTable() public static method

public static PrintTable ( LuaState luaState, LuaTable tableToPrint, double indent = default(double), LuaTable done = null ) : void
luaState LuaState
tableToPrint LuaTable
indent double
done LuaTable
return void

ProtectedCall() public static method

public static ProtectedCall ( LuaState luaState, lua_CFunction function ) : bool
luaState LuaState
function lua_CFunction
return bool

RealFrameTime() public static method

public static RealFrameTime ( LuaState luaState ) : double
luaState LuaState
return double

RealTime() public static method

public static RealTime ( LuaState luaState ) : double
luaState LuaState
return double

RunConsoleCommand() public static method

public static RunConsoleCommand ( LuaState luaState, string command ) : void
luaState LuaState
command string
return void

RunString() public static method

public static RunString ( LuaState luaState, string code ) : void
luaState LuaState
code string
return void

RunStringEx() public static method

public static RunStringEx ( LuaState luaState, string code, string identifier = "RunString" ) : void
luaState LuaState
code string
identifier string
return void

ScrH() public static method

public static ScrH ( LuaState luaState ) : uint
luaState LuaState
return uint

ScrW() public static method

public static ScrW ( LuaState luaState ) : uint
luaState LuaState
return uint

SysTime() public static method

public static SysTime ( LuaState luaState ) : double
luaState LuaState
return double

Vector() public static method

public static Vector ( double x = default(double), double y = default(double), double z = default(double) ) : Vector
x double
y double
z double
return Vector

include() public static method

public static include ( LuaState luaState, string fileName ) : void
luaState LuaState
fileName string
return void

isangle() public static method

public static isangle ( LuaState luaState, object variable ) : bool
luaState LuaState
variable object
return bool

isbool() public static method

public static isbool ( LuaState luaState, object variable ) : bool
luaState LuaState
variable object
return bool

isentity() public static method

public static isentity ( LuaState luaState, object variable ) : bool
luaState LuaState
variable object
return bool

isfunction() public static method

public static isfunction ( LuaState luaState, object variable ) : bool
luaState LuaState
variable object
return bool

isnumber() public static method

public static isnumber ( LuaState luaState, object variable ) : bool
luaState LuaState
variable object
return bool

ispanel() public static method

public static ispanel ( LuaState luaState, object variable ) : bool
luaState LuaState
variable object
return bool

isstring() public static method

public static isstring ( LuaState luaState, object variable ) : bool
luaState LuaState
variable object
return bool

istable() public static method

public static istable ( LuaState luaState, object variable ) : bool
luaState LuaState
variable object
return bool

isvector() public static method

public static isvector ( LuaState luaState, object variable ) : bool
luaState LuaState
variable object
return bool

print() public static method

public static print ( ) : void
return void

print() public static method

public static print ( LuaState luaState ) : void
luaState LuaState
return void

require() public static method

public static require ( LuaState luaState, string name ) : void
luaState LuaState
name string
return void