Barotrauma Server
Loading...
Searching...
No Matches
Barotrauma.LuaGame Class Reference

Public Member Functions

void AddPriorityItem (Item item)
 
void RemovePriorityItem (Item item)
 
void ClearPriorityItem ()
 
void AddPriorityCharacter (Character character)
 
void RemovePriorityCharacter (Character character)
 
void ClearPriorityCharacter ()
 
 LuaGame ()
 
void OverrideTraitors (bool o)
 
void OverrideRespawnSub (bool o)
 
void AllowWifiChat (bool o)
 
void OverrideSignalRadio (bool o)
 
void DisableSpamFilter (bool o)
 
void DisableDisconnectCharacter (bool o)
 
void EnableControlHusk (bool o)
 
bool IsCustomCommandPermitted (Identifier command)
 
void RemoveCommand (string name)
 
void AddCommand (string name, string help, LuaCsAction onExecute, LuaCsFunc getValidArgs=null, bool isCheat=false)
 
void AssignOnExecute (string names, object onExecute)
 
void SaveGame (string path)
 
void LoadGame (string path)
 
void Stop ()
 

Static Public Member Functions

static void Explode (Vector2 pos, float range=100, float force=30, float damage=30, float structureDamage=30, float itemDamage=30, float empStrength=0, float ballastFloraStrength=0)
 
static string SpawnItem (string name, Vector2 pos, bool inventory=false, Character character=null)
 
static ContentPackage[] GetEnabledContentPackages ()
 
static ItemPrefab GetItemPrefab (string itemNameOrId)
 
static Submarine GetRespawnSub ()
 
static Items.Components.Steering GetSubmarineSteering (Submarine sub)
 
static WifiComponent GetWifiComponent (Item item)
 
static LightComponent GetLightComponent (Item item)
 
static CustomInterface GetCustomInterface (Item item)
 
static Fabricator GetFabricatorComponent (Item item)
 
static Holdable GetHoldableComponent (Item item)
 
static void ExecuteCommand (string command)
 
static Signal CreateSignal (string value, int stepsTaken=1, Character sender=null, Item source=null, float power=0, float strength=1)
 

Public Attributes

bool? ForceVoice = null
 
bool? ForceLocalVoice = null
 
DynValue Settings
 
bool allowWifiChat = false
 
bool overrideTraitors = false
 
bool overrideRespawnSub = false
 
bool overrideSignalRadio = false
 
bool disableSpamFilter = false
 
bool disableDisconnectCharacter = false
 
bool enableControlHusk = false
 
HashSet< ItemUpdatePriorityItems = new HashSet<Item>()
 
HashSet< CharacterUpdatePriorityCharacters = new HashSet<Character>()
 

Properties

bool IsSingleplayer [get]
 
bool IsMultiplayer [get]
 
string SaveFolder [get]
 
GameServer Server [get]
 
bool IsDedicated [get]
 
bool Paused [get]
 
ServerSettings ServerSettings [get]
 
RespawnManager RespawnManager [get]
 
int MapEntityUpdateInterval [get, set]
 
int GapUpdateInterval [get, set]
 
int PoweredUpdateInterval [get, set]
 
int CharacterUpdateInterval [get, set]
 
bool RoundStarted [get]
 
GameSession GameSession [get]
 
NetLobbyScreen NetLobbyScreen [get]
 
GameScreen GameScreen [get]
 
World World [get]
 
ClientPeer Peer [get]
 
IEnumerable< DebugConsole.CommandLuaAddedCommand [get]
 
List< DebugConsole.CommandCommands [get]
 

Constructor & Destructor Documentation

◆ LuaGame()

Barotrauma.LuaGame.LuaGame ( )

Member Function Documentation

◆ AddCommand()

void Barotrauma.LuaGame.AddCommand ( string name,
string help,
LuaCsAction onExecute,
LuaCsFunc getValidArgs = null,
bool isCheat = false )

◆ AddPriorityCharacter()

void Barotrauma.LuaGame.AddPriorityCharacter ( Character character)

◆ AddPriorityItem()

void Barotrauma.LuaGame.AddPriorityItem ( Item item)

◆ AllowWifiChat()

void Barotrauma.LuaGame.AllowWifiChat ( bool o)

◆ AssignOnExecute()

void Barotrauma.LuaGame.AssignOnExecute ( string names,
object onExecute )

◆ ClearPriorityCharacter()

void Barotrauma.LuaGame.ClearPriorityCharacter ( )

◆ ClearPriorityItem()

void Barotrauma.LuaGame.ClearPriorityItem ( )

◆ CreateSignal()

static Signal Barotrauma.LuaGame.CreateSignal ( string value,
int stepsTaken = 1,
Character sender = null,
Item source = null,
float power = 0,
float strength = 1 )
static

◆ DisableDisconnectCharacter()

void Barotrauma.LuaGame.DisableDisconnectCharacter ( bool o)

◆ DisableSpamFilter()

void Barotrauma.LuaGame.DisableSpamFilter ( bool o)

◆ EnableControlHusk()

void Barotrauma.LuaGame.EnableControlHusk ( bool o)

◆ ExecuteCommand()

static void Barotrauma.LuaGame.ExecuteCommand ( string command)
static

◆ Explode()

static void Barotrauma.LuaGame.Explode ( Vector2 pos,
float range = 100,
float force = 30,
float damage = 30,
float structureDamage = 30,
float itemDamage = 30,
float empStrength = 0,
float ballastFloraStrength = 0 )
static

◆ GetCustomInterface()

static CustomInterface Barotrauma.LuaGame.GetCustomInterface ( Item item)
static

◆ GetEnabledContentPackages()

static ContentPackage[] Barotrauma.LuaGame.GetEnabledContentPackages ( )
static

◆ GetFabricatorComponent()

static Fabricator Barotrauma.LuaGame.GetFabricatorComponent ( Item item)
static

◆ GetHoldableComponent()

static Holdable Barotrauma.LuaGame.GetHoldableComponent ( Item item)
static

◆ GetItemPrefab()

static ItemPrefab Barotrauma.LuaGame.GetItemPrefab ( string itemNameOrId)
static

◆ GetLightComponent()

static LightComponent Barotrauma.LuaGame.GetLightComponent ( Item item)
static

◆ GetRespawnSub()

static Submarine Barotrauma.LuaGame.GetRespawnSub ( )
static

◆ GetSubmarineSteering()

static Items.Components.Steering Barotrauma.LuaGame.GetSubmarineSteering ( Submarine sub)
static

◆ GetWifiComponent()

static WifiComponent Barotrauma.LuaGame.GetWifiComponent ( Item item)
static

◆ IsCustomCommandPermitted()

bool Barotrauma.LuaGame.IsCustomCommandPermitted ( Identifier command)

◆ LoadGame()

void Barotrauma.LuaGame.LoadGame ( string path)

◆ OverrideRespawnSub()

void Barotrauma.LuaGame.OverrideRespawnSub ( bool o)

◆ OverrideSignalRadio()

void Barotrauma.LuaGame.OverrideSignalRadio ( bool o)

◆ OverrideTraitors()

void Barotrauma.LuaGame.OverrideTraitors ( bool o)

◆ RemoveCommand()

void Barotrauma.LuaGame.RemoveCommand ( string name)

◆ RemovePriorityCharacter()

void Barotrauma.LuaGame.RemovePriorityCharacter ( Character character)

◆ RemovePriorityItem()

void Barotrauma.LuaGame.RemovePriorityItem ( Item item)

◆ SaveGame()

void Barotrauma.LuaGame.SaveGame ( string path)

◆ SpawnItem()

static string Barotrauma.LuaGame.SpawnItem ( string name,
Vector2 pos,
bool inventory = false,
Character character = null )
static

◆ Stop()

void Barotrauma.LuaGame.Stop ( )

Member Data Documentation

◆ allowWifiChat

bool Barotrauma.LuaGame.allowWifiChat = false

◆ disableDisconnectCharacter

bool Barotrauma.LuaGame.disableDisconnectCharacter = false

◆ disableSpamFilter

bool Barotrauma.LuaGame.disableSpamFilter = false

◆ enableControlHusk

bool Barotrauma.LuaGame.enableControlHusk = false

◆ ForceLocalVoice

bool? Barotrauma.LuaGame.ForceLocalVoice = null

◆ ForceVoice

bool? Barotrauma.LuaGame.ForceVoice = null

◆ overrideRespawnSub

bool Barotrauma.LuaGame.overrideRespawnSub = false

◆ overrideSignalRadio

bool Barotrauma.LuaGame.overrideSignalRadio = false

◆ overrideTraitors

bool Barotrauma.LuaGame.overrideTraitors = false

◆ Settings

DynValue Barotrauma.LuaGame.Settings

◆ UpdatePriorityCharacters

HashSet<Character> Barotrauma.LuaGame.UpdatePriorityCharacters = new HashSet<Character>()

◆ UpdatePriorityItems

HashSet<Item> Barotrauma.LuaGame.UpdatePriorityItems = new HashSet<Item>()

Property Documentation

◆ CharacterUpdateInterval

int Barotrauma.LuaGame.CharacterUpdateInterval
getset

◆ Commands

List<DebugConsole.Command> Barotrauma.LuaGame.Commands
get

◆ GameScreen

GameScreen Barotrauma.LuaGame.GameScreen
get

◆ GameSession

GameSession Barotrauma.LuaGame.GameSession
get

◆ GapUpdateInterval

int Barotrauma.LuaGame.GapUpdateInterval
getset

◆ IsDedicated

bool Barotrauma.LuaGame.IsDedicated
get

◆ IsMultiplayer

bool Barotrauma.LuaGame.IsMultiplayer
get

◆ IsSingleplayer

bool Barotrauma.LuaGame.IsSingleplayer
get

◆ LuaAddedCommand

IEnumerable<DebugConsole.Command> Barotrauma.LuaGame.LuaAddedCommand
get

◆ MapEntityUpdateInterval

int Barotrauma.LuaGame.MapEntityUpdateInterval
getset

◆ NetLobbyScreen

NetLobbyScreen Barotrauma.LuaGame.NetLobbyScreen
get

◆ Paused

bool Barotrauma.LuaGame.Paused
get

◆ Peer

ClientPeer Barotrauma.LuaGame.Peer
get

◆ PoweredUpdateInterval

int Barotrauma.LuaGame.PoweredUpdateInterval
getset

◆ RespawnManager

RespawnManager Barotrauma.LuaGame.RespawnManager
get

◆ RoundStarted

bool Barotrauma.LuaGame.RoundStarted
get

◆ SaveFolder

string Barotrauma.LuaGame.SaveFolder
get

◆ Server

GameServer Barotrauma.LuaGame.Server
get

◆ ServerSettings

ServerSettings Barotrauma.LuaGame.ServerSettings
get

◆ World

World Barotrauma.LuaGame.World
get

The documentation for this class was generated from the following file: