Barotrauma Client Doc
|
Classes | |
class | ActiveOrder |
struct | MinimapNodeData |
Public Member Functions | |
IEnumerable< Character > | GetCharacters () |
IEnumerable< CharacterInfo > | GetCharacterInfos () |
CrewManager (bool isSinglePlayer) | |
bool | AddOrder (Order order, float? fadeOutTime) |
void | AddCharacterElements (XElement element) |
void | RemoveCharacterInfo (CharacterInfo characterInfo) |
Remove info of a selected character. The character will not be visible in any menus or the round summary. More... | |
void | AddCharacter (Character character, bool sortCrewList=true) |
void | RemoveCharacter (Character character, bool removeInfo=false, bool resetCrewListIndex=true) |
Remove the character from the crew (and crew menus). More... | |
void | AddCharacterInfo (CharacterInfo characterInfo) |
void | InitRound () |
void | RenameCharacter (CharacterInfo characterInfo, string newName) |
void | FireCharacter (CharacterInfo characterInfo) |
void | ClearCurrentOrders () |
void | Update (float deltaTime) |
void | AddConversation (List<(Character speaker, string line)> conversationLines) |
void | SaveActiveOrders (XElement element) |
void | LoadActiveOrders (XElement element) |
bool | AutoShowCrewList () |
void | AutoHideCrewList () |
void | ResetCrewList () |
CrewManager (XElement element, bool isSinglePlayer) | |
Rectangle | GetActiveCrewArea () |
GUIComponent | AddCharacterToCrewList (Character character) |
Add character to the list without actually adding it to the crew More... | |
void | RemoveCharacterFromCrewList (Character character) |
bool | CharacterClicked (GUIComponent component, object selection) |
Sets which character is selected in the crew UI (highlight effect etc) More... | |
void | ReviveCharacter (Character revivedCharacter) |
void | KillCharacter (Character killedCharacter, bool resetCrewListIndex=true) |
void | AddSinglePlayerChatMessage (LocalizedString senderName, LocalizedString text, ChatMessageType messageType, Character sender) |
Adds the message to the single player chatbox. More... | |
void | AddSinglePlayerChatMessage (string senderName, string text, ChatMessageType messageType, Character sender) |
void | AddSinglePlayerChatMessage (ChatMessage message) |
void | SetPlayerVoiceIconState (Client client, bool muted, bool mutedLocally) |
void | SetClientSpeaking (Client client) |
void | SetCharacterSpeaking (Character character) |
void | SetCharacterOrder (Character character, Order order, bool isNewOrder=true) |
Sets the character's current order (if it's close enough to receive messages from orderGiver) and displays the order in the crew UI More... | |
void | AddCurrentOrderIcon (Character character, Order order) |
Displays the specified order in the crew UI next to the character. More... | |
void | AddToGUIUpdateList () |
void | SelectNextCharacter () |
void | SelectPreviousCharacter () |
void | SetOrderHighlight (Character character, Identifier orderIdentifier, Identifier orderOption) |
void | CreateObjectiveIcon (Character character, Identifier identifier, Identifier option, Entity targetEntity) |
void | ToggleCommandUI () |
void | DisableCommandUI () |
void | UpdateReports () |
Enables/disables report buttons when needed More... | |
void | InitSinglePlayerRound () |
void | Reset () |
XElement | Save (XElement parentElement) |
Static Public Member Functions | |
static Character | GetCharacterForQuickAssignment (Order order, Character controlledCharacter, IEnumerable< Character > characters, bool includeSelf=false) |
static IEnumerable< Character > | GetCharactersSortedForOrder (Order order, IEnumerable< Character > characters, Character controlledCharacter, bool includeSelf, IEnumerable< Character > extraCharacters=null) |
static void | CreateReportButtons (CrewManager crewManager, GUIComponent parent, IReadOnlyList< OrderPrefab > reports, bool isHorizontal) |
static bool | DoesItemHaveContextualOrders (Item item) |
static void | ClientReadActiveOrders (IReadMessage inc) |
Public Attributes | |
ReadyCheck | ActiveReadyCheck |
OrderPrefab | DraggedOrderPrefab |
bool | DragOrder |
bool | AllowCharacterSwitch = true |
List< GUIButton > | OrderOptionButtons = new List<GUIButton>() |
Static Public Attributes | |
const int | MaxCrewSize = 16 |
static bool | PreferCrewMenuOpen = true |
Properties | |
List< CharacterInfo > | CharacterInfos [get] |
bool | HasBots [get, set] |
List< ActiveOrder > | ActiveOrders = new List<ActiveOrder>() [get] |
bool | IsSinglePlayer [get] |
GUIComponent | ReportButtonFrame [get, set] |
ChatBox | ChatBox [get] |
Present only in single player games. In multiplayer. The chatbox is found from GameSession.Client. More... | |
bool | IsCrewMenuOpen [get, set] |
This property stores the preference in settings. Don't use for automatic logic. Use AutoShowCrewList(), AutoHideCrewList(), and ResetCrewList(). More... | |
static bool? | IsCommandInterfaceOpen [get] |
static bool? | CanIssueOrders [get] |
Definition at line 13 of file BarotraumaShared/SharedSource/GameSession/CrewManager.cs.
Barotrauma.CrewManager.CrewManager | ( | bool | isSinglePlayer | ) |
Definition at line 57 of file BarotraumaShared/SharedSource/GameSession/CrewManager.cs.
Barotrauma.CrewManager.CrewManager | ( | XElement | element, |
bool | isSinglePlayer | ||
) |
Definition at line 81 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.AddCharacter | ( | Character | character, |
bool | sortCrewList = true |
||
) |
Definition at line 156 of file BarotraumaShared/SharedSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.AddCharacterElements | ( | XElement | element | ) |
Definition at line 118 of file BarotraumaShared/SharedSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.AddCharacterInfo | ( | CharacterInfo | characterInfo | ) |
Definition at line 229 of file BarotraumaShared/SharedSource/GameSession/CrewManager.cs.
GUIComponent Barotrauma.CrewManager.AddCharacterToCrewList | ( | Character | character | ) |
Add character to the list without actually adding it to the crew
Definition at line 300 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.AddConversation | ( | List<(Character speaker, string line)> | conversationLines | ) |
Definition at line 381 of file BarotraumaShared/SharedSource/GameSession/CrewManager.cs.
Displays the specified order in the crew UI next to the character.
Definition at line 869 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
bool Barotrauma.CrewManager.AddOrder | ( | Order | order, |
float? | fadeOutTime | ||
) |
Definition at line 66 of file BarotraumaShared/SharedSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.AddSinglePlayerChatMessage | ( | ChatMessage | message | ) |
Definition at line 700 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.AddSinglePlayerChatMessage | ( | LocalizedString | senderName, |
LocalizedString | text, | ||
ChatMessageType | messageType, | ||
Character | sender | ||
) |
Adds the message to the single player chatbox.
Definition at line 680 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.AddSinglePlayerChatMessage | ( | string | senderName, |
string | text, | ||
ChatMessageType | messageType, | ||
Character | sender | ||
) |
Definition at line 684 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.AddToGUIUpdateList | ( | ) |
Definition at line 1217 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.AutoHideCrewList | ( | ) |
bool Barotrauma.CrewManager.AutoShowCrewList | ( | ) |
bool Barotrauma.CrewManager.CharacterClicked | ( | GUIComponent | component, |
object | selection | ||
) |
Sets which character is selected in the crew UI (highlight effect etc)
Definition at line 552 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.ClearCurrentOrders | ( | ) |
Definition at line 353 of file BarotraumaShared/SharedSource/GameSession/CrewManager.cs.
|
static |
Definition at line 3679 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.CreateObjectiveIcon | ( | Character | character, |
Identifier | identifier, | ||
Identifier | option, | ||
Entity | targetEntity | ||
) |
Definition at line 1766 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
|
static |
Definition at line 226 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.DisableCommandUI | ( | ) |
Definition at line 2165 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
|
static |
Definition at line 2757 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.FireCharacter | ( | CharacterInfo | characterInfo | ) |
Definition at line 348 of file BarotraumaShared/SharedSource/GameSession/CrewManager.cs.
Rectangle Barotrauma.CrewManager.GetActiveCrewArea | ( | ) |
Definition at line 292 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
|
static |
Definition at line 489 of file BarotraumaShared/SharedSource/GameSession/CrewManager.cs.
IEnumerable<CharacterInfo> Barotrauma.CrewManager.GetCharacterInfos | ( | ) |
Definition at line 31 of file BarotraumaShared/SharedSource/GameSession/CrewManager.cs.
IEnumerable<Character> Barotrauma.CrewManager.GetCharacters | ( | ) |
Definition at line 26 of file BarotraumaShared/SharedSource/GameSession/CrewManager.cs.
|
static |
Definition at line 503 of file BarotraumaShared/SharedSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.InitRound | ( | ) |
Definition at line 240 of file BarotraumaShared/SharedSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.InitSinglePlayerRound | ( | ) |
Definition at line 3649 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.KillCharacter | ( | Character | killedCharacter, |
bool | resetCrewListIndex = true |
||
) |
Definition at line 572 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.LoadActiveOrders | ( | XElement | element | ) |
Definition at line 549 of file BarotraumaShared/SharedSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.RemoveCharacter | ( | Character | character, |
bool | removeInfo = false , |
||
bool | resetCrewListIndex = true |
||
) |
Remove the character from the crew (and crew menus).
character | The character to remove |
removeInfo | If the character info is also removed, the character will not be visible in the round summary. |
Definition at line 206 of file BarotraumaShared/SharedSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.RemoveCharacterFromCrewList | ( | Character | character | ) |
Definition at line 527 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.RemoveCharacterInfo | ( | CharacterInfo | characterInfo | ) |
Remove info of a selected character. The character will not be visible in any menus or the round summary.
characterInfo |
Definition at line 151 of file BarotraumaShared/SharedSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.RenameCharacter | ( | CharacterInfo | characterInfo, |
string | newName | ||
) |
Definition at line 333 of file BarotraumaShared/SharedSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.Reset | ( | ) |
Definition at line 3655 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.ResetCrewList | ( | ) |
void Barotrauma.CrewManager.ReviveCharacter | ( | Character | revivedCharacter | ) |
Definition at line 563 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
XElement Barotrauma.CrewManager.Save | ( | XElement | parentElement | ) |
Definition at line 3662 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.SaveActiveOrders | ( | XElement | element | ) |
Definition at line 536 of file BarotraumaShared/SharedSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.SelectNextCharacter | ( | ) |
Definition at line 1244 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.SelectPreviousCharacter | ( | ) |
Definition at line 1253 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.SetCharacterOrder | ( | Character | character, |
Order | order, | ||
bool | isNewOrder = true |
||
) |
Sets the character's current order (if it's close enough to receive messages from orderGiver) and displays the order in the crew UI
Definition at line 790 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.SetCharacterSpeaking | ( | Character | character | ) |
Definition at line 757 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.SetClientSpeaking | ( | Client | client | ) |
Definition at line 749 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.SetOrderHighlight | ( | Character | character, |
Identifier | orderIdentifier, | ||
Identifier | orderOption | ||
) |
Definition at line 1718 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.SetPlayerVoiceIconState | ( | Client | client, |
bool | muted, | ||
bool | mutedLocally | ||
) |
Definition at line 735 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.ToggleCommandUI | ( | ) |
Definition at line 2052 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.Update | ( | float | deltaTime | ) |
Definition at line 361 of file BarotraumaShared/SharedSource/GameSession/CrewManager.cs.
void Barotrauma.CrewManager.UpdateReports | ( | ) |
Enables/disables report buttons when needed
Definition at line 3588 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
ReadyCheck Barotrauma.CrewManager.ActiveReadyCheck |
Definition at line 55 of file BarotraumaShared/SharedSource/GameSession/CrewManager.cs.
bool Barotrauma.CrewManager.AllowCharacterSwitch = true |
Definition at line 46 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
OrderPrefab Barotrauma.CrewManager.DraggedOrderPrefab |
Definition at line 19 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
bool Barotrauma.CrewManager.DragOrder |
Definition at line 20 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
|
static |
Definition at line 21 of file BarotraumaShared/SharedSource/GameSession/CrewManager.cs.
Definition at line 73 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
|
static |
Definition at line 63 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
|
get |
Definition at line 52 of file BarotraumaShared/SharedSource/GameSession/CrewManager.cs.
|
staticget |
Definition at line 1885 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
|
get |
Definition at line 38 of file BarotraumaShared/SharedSource/GameSession/CrewManager.cs.
|
get |
Present only in single player games. In multiplayer. The chatbox is found from GameSession.Client.
Definition at line 42 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
|
getset |
Definition at line 40 of file BarotraumaShared/SharedSource/GameSession/CrewManager.cs.
|
staticget |
Definition at line 1822 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
|
getset |
This property stores the preference in settings. Don't use for automatic logic. Use AutoShowCrewList(), AutoHideCrewList(), and ResetCrewList().
Definition at line 52 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.
|
get |
Definition at line 53 of file BarotraumaShared/SharedSource/GameSession/CrewManager.cs.
|
getset |
Definition at line 28 of file BarotraumaClient/ClientSource/GameSession/CrewManager.cs.