|
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) |
|
Definition at line 13 of file LuaGame.cs.
◆ LuaGame()
Barotrauma.LuaGame.LuaGame |
( |
| ) |
|
◆ 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()
◆ 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()
◆ GetRespawnSub()
static Submarine Barotrauma.LuaGame.GetRespawnSub |
( |
| ) |
|
|
static |
◆ GetSubmarineSteering()
◆ GetWifiComponent()
◆ 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 |
( |
| ) |
|
◆ 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
◆ UpdatePriorityItems
HashSet<Item> Barotrauma.LuaGame.UpdatePriorityItems = new HashSet<Item>() |
◆ ActiveChatMode
ChatMode Barotrauma.LuaGame.ActiveChatMode |
|
get |
◆ CharacterUpdateInterval
int Barotrauma.LuaGame.CharacterUpdateInterval |
|
getset |
◆ ChatBox
◆ Client
◆ Commands
◆ GameScreen
◆ GameSession
◆ GapUpdateInterval
int Barotrauma.LuaGame.GapUpdateInterval |
|
getset |
◆ IsMultiplayer
bool Barotrauma.LuaGame.IsMultiplayer |
|
get |
◆ IsSingleplayer
bool Barotrauma.LuaGame.IsSingleplayer |
|
get |
◆ IsSubEditor
bool Barotrauma.LuaGame.IsSubEditor |
|
get |
◆ LightManager
◆ LuaAddedCommand
◆ MainMenuScreen
◆ MapEntityUpdateInterval
int Barotrauma.LuaGame.MapEntityUpdateInterval |
|
getset |
◆ MyID
byte Barotrauma.LuaGame.MyID |
|
get |
◆ NetLobbyScreen
◆ ParticleManager
◆ Paused
bool Barotrauma.LuaGame.Paused |
|
get |
◆ Peer
ClientPeer Barotrauma.LuaGame.Peer |
|
get |
◆ PoweredUpdateInterval
int Barotrauma.LuaGame.PoweredUpdateInterval |
|
getset |
◆ RespawnManager
◆ RoundStarted
bool? Barotrauma.LuaGame.RoundStarted |
|
get |
◆ SaveFolder
string Barotrauma.LuaGame.SaveFolder |
|
get |
◆ ServerSettings
◆ SessionId
byte Barotrauma.LuaGame.SessionId |
|
get |
◆ SoundManager
◆ SubEditorScreen
◆ World
World Barotrauma.LuaGame.World |
|
get |