Barotrauma Client Doc
Barotrauma.LuaCsSetup Class Reference

Classes

class  LuaCsModStore
 

Public Member Functions

 LuaCsSetup ()
 
void ToggleDebugger (int port=41912)
 
void AttachDebugger ()
 
void DetachDebugger ()
 
void UpdateConfigVars ()
 
void UpdateConfig ()
 
DynValue CallLuaFunction (object function, params object[] args)
 
void Update ()
 
void Stop ()
 
void Initialize (bool forceEnableCs=false)
 
void AddToGUIUpdateList ()
 
void CheckInitialize ()
 

Static Public Member Functions

static void PrintLuaError (object message)
 
static void PrintCsError (object message)
 
static void PrintGenericError (object message)
 
static void PrintCsMessage (object message)
 
static Type GetType (string typeName, bool throwOnError=false, bool ignoreCase=false)
 
static ContentPackage GetPackage (ContentPackageId id, bool fallbackToAll=true, bool useBackup=false)
 

Static Public Attributes

const string LuaSetupFile = "Lua/LuaSetup.lua"
 
const string VersionFile = "luacsversion.txt"
 
static ContentPackageId CsForBarotraumaId = new SteamWorkshopId(2795927223)
 
const bool IsServer = false
 
const bool IsClient = true
 

Properties

static bool IsRunningInsideWorkshop [get]
 
Script Lua [get]
 
LuaScriptLoader LuaScriptLoader [get]
 
LuaGame Game [get]
 
LuaCsHook Hook [get]
 
LuaCsTimer Timer [get]
 
LuaCsNetworking Networking [get]
 
LuaCsSteam Steam [get]
 
LuaCsPerformanceCounter PerformanceCounter [get]
 
static AssemblyManager AssemblyManager [get]
 
CsPackageManager PluginPackageManager [get]
 
LuaCsModStore ModStore [get]
 
LuaCsSetupConfig Config [get]
 
MoonSharpVsCodeDebugServer DebugServer [get]
 
bool IsInitialized [get]
 

Detailed Description

Definition at line 11 of file LuaConverters.cs.

Constructor & Destructor Documentation

◆ LuaCsSetup()

Barotrauma.LuaCsSetup.LuaCsSetup ( )

Member Function Documentation

◆ AddToGUIUpdateList()

void Barotrauma.LuaCsSetup.AddToGUIUpdateList ( )

◆ AttachDebugger()

void Barotrauma.LuaCsSetup.AttachDebugger ( )

◆ CallLuaFunction()

DynValue Barotrauma.LuaCsSetup.CallLuaFunction ( object  function,
params object[]  args 
)

◆ CheckInitialize()

void Barotrauma.LuaCsSetup.CheckInitialize ( )

◆ DetachDebugger()

void Barotrauma.LuaCsSetup.DetachDebugger ( )

◆ GetPackage()

static ContentPackage Barotrauma.LuaCsSetup.GetPackage ( ContentPackageId  id,
bool  fallbackToAll = true,
bool  useBackup = false 
)
static

◆ GetType()

static Type Barotrauma.LuaCsSetup.GetType ( string  typeName,
bool  throwOnError = false,
bool  ignoreCase = false 
)
static

◆ Initialize()

void Barotrauma.LuaCsSetup.Initialize ( bool  forceEnableCs = false)

◆ PrintCsError()

static void Barotrauma.LuaCsSetup.PrintCsError ( object  message)
static

◆ PrintCsMessage()

static void Barotrauma.LuaCsSetup.PrintCsMessage ( object  message)
static

◆ PrintGenericError()

static void Barotrauma.LuaCsSetup.PrintGenericError ( object  message)
static

◆ PrintLuaError()

static void Barotrauma.LuaCsSetup.PrintLuaError ( object  message)
static

◆ Stop()

void Barotrauma.LuaCsSetup.Stop ( )

◆ ToggleDebugger()

void Barotrauma.LuaCsSetup.ToggleDebugger ( int  port = 41912)

◆ Update()

void Barotrauma.LuaCsSetup.Update ( )

◆ UpdateConfig()

void Barotrauma.LuaCsSetup.UpdateConfig ( )

◆ UpdateConfigVars()

void Barotrauma.LuaCsSetup.UpdateConfigVars ( )

Member Data Documentation

◆ CsForBarotraumaId

ContentPackageId Barotrauma.LuaCsSetup.CsForBarotraumaId = new SteamWorkshopId(2795927223)
static

◆ IsClient

const bool Barotrauma.LuaCsSetup.IsClient = true
static

◆ IsServer

const bool Barotrauma.LuaCsSetup.IsServer = false
static

◆ LuaSetupFile

const string Barotrauma.LuaCsSetup.LuaSetupFile = "Lua/LuaSetup.lua"
static

◆ VersionFile

const string Barotrauma.LuaCsSetup.VersionFile = "luacsversion.txt"
static

Property Documentation

◆ AssemblyManager

AssemblyManager Barotrauma.LuaCsSetup.AssemblyManager
staticget

◆ Config

LuaCsSetupConfig Barotrauma.LuaCsSetup.Config
get

◆ DebugServer

MoonSharpVsCodeDebugServer Barotrauma.LuaCsSetup.DebugServer
get

◆ Game

LuaGame Barotrauma.LuaCsSetup.Game
get

◆ Hook

LuaCsHook Barotrauma.LuaCsSetup.Hook
get

◆ IsInitialized

bool Barotrauma.LuaCsSetup.IsInitialized
get

◆ IsRunningInsideWorkshop

bool Barotrauma.LuaCsSetup.IsRunningInsideWorkshop
staticget

◆ Lua

Script Barotrauma.LuaCsSetup.Lua
get

◆ LuaScriptLoader

LuaScriptLoader Barotrauma.LuaCsSetup.LuaScriptLoader
get

◆ ModStore

LuaCsModStore Barotrauma.LuaCsSetup.ModStore
get

◆ Networking

LuaCsNetworking Barotrauma.LuaCsSetup.Networking
get

◆ PerformanceCounter

LuaCsPerformanceCounter Barotrauma.LuaCsSetup.PerformanceCounter
get

◆ PluginPackageManager

CsPackageManager Barotrauma.LuaCsSetup.PluginPackageManager
get

◆ Steam

LuaCsSteam Barotrauma.LuaCsSetup.Steam
get

◆ Timer

LuaCsTimer Barotrauma.LuaCsSetup.Timer
get