|
| 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) |
| |
| static void | SendMessage (string msg, ChatMessageType? messageType=null, Client sender=null, Character character=null) |
| |
| static void | SendTraitorMessage (WriteOnlyMessage message, Client client) |
| |
| static void | SendDirectChatMessage (string sendername, string text, Character sender, ChatMessageType messageType=ChatMessageType.Private, Client client=null, string iconStyle="") |
| |
| static void | SendDirectChatMessage (ChatMessage chatMessage, Client client) |
| |
| static void | Log (string message, ServerLog.MessageType type) |
| |
| static void | DispatchRespawnSub () |
| |
| static bool | StartGame () |
| |
| static void | EndGame () |
| |
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 | ) |
|
◆ AssignOnClientRequestExecute()
| void Barotrauma.LuaGame.AssignOnClientRequestExecute |
( |
string |
names, |
|
|
object |
onExecute |
|
) |
| |
◆ 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 | ) |
|
◆ DispatchRespawnSub()
| static void Barotrauma.LuaGame.DispatchRespawnSub |
( |
| ) |
|
|
static |
◆ EnableControlHusk()
| void Barotrauma.LuaGame.EnableControlHusk |
( |
bool |
o | ) |
|
◆ EndGame()
| static void Barotrauma.LuaGame.EndGame |
( |
| ) |
|
|
static |
◆ 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 | ) |
|
◆ LoadCampaign()
| void Barotrauma.LuaGame.LoadCampaign |
( |
string |
path, |
|
|
Client |
client = null |
|
) |
| |
◆ LoadGame()
| void Barotrauma.LuaGame.LoadGame |
( |
string |
path | ) |
|
◆ Log()
◆ 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 | ) |
|
◆ SendDirectChatMessage() [1/2]
| static void Barotrauma.LuaGame.SendDirectChatMessage |
( |
ChatMessage |
chatMessage, |
|
|
Client |
client |
|
) |
| |
|
static |
◆ SendDirectChatMessage() [2/2]
| static void Barotrauma.LuaGame.SendDirectChatMessage |
( |
string |
sendername, |
|
|
string |
text, |
|
|
Character |
sender, |
|
|
ChatMessageType |
messageType = ChatMessageType.Private, |
|
|
Client |
client = null, |
|
|
string |
iconStyle = "" |
|
) |
| |
|
static |
◆ SendMessage()
◆ SendTraitorMessage()
| static void Barotrauma.LuaGame.SendTraitorMessage |
( |
WriteOnlyMessage |
message, |
|
|
Client |
client |
|
) |
| |
|
static |
◆ SpawnItem()
| static string Barotrauma.LuaGame.SpawnItem |
( |
string |
name, |
|
|
Vector2 |
pos, |
|
|
bool |
inventory = false, |
|
|
Character |
character = null |
|
) |
| |
|
static |
◆ StartGame()
| static bool Barotrauma.LuaGame.StartGame |
( |
| ) |
|
|
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>() |
◆ CharacterUpdateInterval
| int Barotrauma.LuaGame.CharacterUpdateInterval |
|
getset |
◆ Commands
◆ GameScreen
◆ GameSession
◆ 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
◆ MapEntityUpdateInterval
| int Barotrauma.LuaGame.MapEntityUpdateInterval |
|
getset |
◆ NetLobbyScreen
◆ Paused
| bool Barotrauma.LuaGame.Paused |
|
get |
◆ Peer
| ServerPeer Barotrauma.LuaGame.Peer |
|
get |
◆ PoweredUpdateInterval
| int Barotrauma.LuaGame.PoweredUpdateInterval |
|
getset |
◆ RespawnManager
◆ RoundStarted
| bool? Barotrauma.LuaGame.RoundStarted |
|
get |
◆ SaveFolder
| string Barotrauma.LuaGame.SaveFolder |
|
get |
◆ Server
◆ ServerSettings
◆ World
| World Barotrauma.LuaGame.World |
|
get |