Barotrauma Client Doc
|
Public Types | |
enum class | OrderTargetType { Entity , Position , WallSection } |
Public Member Functions | |||
OrderPrefab (ContentXElement orderElement, OrdersFile file) | |||
bool | HasAppropriateJob (Character character) | ||
bool | HasPreferredJob (Character character) | ||
string | GetChatMessage (string targetCharacterName, string targetRoomName, bool givingOrderToSelf, Identifier orderOption=default, bool isNewOrder=true) | ||
ItemComponent | GetTargetItemComponent (Item item) | ||
Get the target item component based on the target item type More... | |||
bool | TryGetTargetItemComponent (Item item, out ItemComponent firstMatchingComponent) | ||
List< Item > | GetMatchingItems (Submarine submarine, bool mustBelongToPlayerSub, CharacterTeamType? requiredTeam=null, Character interactableFor=null, Identifier orderOption=default) | ||
| |||
List< Item > | GetMatchingItems (bool mustBelongToPlayerSub, Character interactableFor=null, Identifier orderOption=default) | ||
| |||
LocalizedString | GetOptionName (string id) | ||
LocalizedString | GetOptionName (Identifier id) | ||
LocalizedString | GetOptionName (int index) | ||
ImmutableArray< Identifier > | GetTargetItems (Identifier option=default) | ||
bool | TargetItemsMatchItem (Item item, Identifier option=default) | ||
override void | Dispose () | ||
Order | CreateInstance (OrderTargetType targetType, Character orderGiver=null, bool isAutonomous=false) | ||
Create an Order instance with a null target More... | |||
Public Member Functions inherited from Barotrauma.Prefab | |||
Prefab (ContentFile file, Identifier identifier) | |||
Prefab (ContentFile file, ContentXElement element) | |||
Static Public Member Functions | |
static Identifier | GetDismissOrderOption (Order order) |
Used to create the order option for the Dismiss order to know which order it targets More... | |
static bool | TargetItemsMatchItem (ImmutableArray< Identifier > targetItems, Item item) |
Static Public Member Functions inherited from Barotrauma.Prefab | |
static void | DisallowCallFromConstructor () |
Public Attributes | |
readonly? OrderCategory | Category |
readonly Identifier | CategoryIdentifier |
readonly LocalizedString | Name |
readonly LocalizedString | ContextualName |
Name that can be used with the contextual version of the order More... | |
readonly Sprite | SymbolSprite |
readonly Type | ItemComponentType |
readonly bool | CanTypeBeSubclass |
readonly ImmutableArray< Identifier > | TargetItems |
readonly ImmutableArray< Identifier > | RequireItems |
readonly bool | TargetAllCharacters |
bool | TraitorModeOnly |
readonly float | FadeOutTime |
readonly bool | UseController |
readonly ImmutableArray< Identifier > | ControllerTags |
readonly ImmutableArray< Identifier > | AppropriateJobs |
If defined, the order can only be quick-assigned to characters with these jobs. Or if it's a report, the icon will only be displayed to characters with these jobs. More... | |
readonly ImmutableArray< Identifier > | Options |
readonly ImmutableArray< Identifier > | HiddenOptions |
readonly ImmutableArray< Identifier > | AllOptions |
readonly ListDictionary< Identifier, LocalizedString > | OptionNames |
readonly ImmutableDictionary< Identifier, Sprite > | OptionSprites |
readonly bool | MustSetTarget |
readonly bool | CanBeGeneralized |
Can the order be turned into a non-entity-targeting one if it was originally created with a target entity. Note: if MustSetTarget is true, CanBeGeneralized will always be false. More... | |
readonly Identifier | AppropriateSkill |
readonly bool | Hidden |
readonly bool | IgnoreAtOutpost |
readonly bool | MustManuallyAssign |
readonly bool | AutoDismiss |
readonly ImmutableArray< Identifier > | PreferredJobs |
If defined, the order will be quick-assigned to characters with these jobs before characters with other jobs. More... | |
Public Attributes inherited from Barotrauma.Prefab | |
readonly Identifier | Identifier |
readonly ContentFile | ContentFile |
Static Public Attributes | |
static readonly PrefabCollection< OrderPrefab > | Prefabs = new PrefabCollection<OrderPrefab>() |
static readonly Identifier | DismissalIdentifier = "dismissed".ToIdentifier() |
Static Public Attributes inherited from Barotrauma.Prefab | |
static readonly ImmutableHashSet< Type > | Types |
Properties | |
static OrderPrefab | Dismissal [get] |
bool | HasOptionSpecificTargetItems [get] |
Color | Color [get] |
bool | IsReport [get] |
bool | IsVisibleAsReportButton [get] |
bool | IsDismissal [get] |
bool | HasOptions [get] |
OrderTargetType | TargetType [get] |
int? | WallSectionIndex [get] |
bool | IsIgnoreOrder [get] |
bool | DrawIconWhenContained [get] |
Should the order icon be drawn when the order target is inside a container More... | |
int | AssignmentPriority [get] |
Affects how high on the order list the order will be placed (i.e. the manual priority order when it's given) when it's first given. Manually rearranging orders will override this priority. More... | |
bool | ColoredWhenControllingGiver [get] |
bool | DisplayGiverInTooltip [get] |
Properties inherited from Barotrauma.PrefabWithUintIdentifier | |
UInt32 | UintIdentifier [get, set] |
Properties inherited from Barotrauma.Prefab | |
ContentPackage? | ContentPackage [get] |
ContentPath | FilePath [get] |
Additional Inherited Members | |
Protected Member Functions inherited from Barotrauma.PrefabWithUintIdentifier | |
PrefabWithUintIdentifier (ContentFile file, Identifier identifier) | |
PrefabWithUintIdentifier (ContentFile file, ContentXElement element) | |
Protected Member Functions inherited from Barotrauma.Prefab | |
virtual Identifier | DetermineIdentifier (XElement element) |
|
strong |
Barotrauma.OrderPrefab.OrderPrefab | ( | ContentXElement | orderElement, |
OrdersFile | file | ||
) |
Order Barotrauma.OrderPrefab.CreateInstance | ( | OrderTargetType | targetType, |
Character | orderGiver = null , |
||
bool | isAutonomous = false |
||
) |
|
virtual |
Implements Barotrauma.Prefab.
string Barotrauma.OrderPrefab.GetChatMessage | ( | string | targetCharacterName, |
string | targetRoomName, | ||
bool | givingOrderToSelf, | ||
Identifier | orderOption = default , |
||
bool | isNewOrder = true |
||
) |
|
static |
List<Item> Barotrauma.OrderPrefab.GetMatchingItems | ( | bool | mustBelongToPlayerSub, |
Character | interactableFor = null , |
||
Identifier | orderOption = default |
||
) |
List<Item> Barotrauma.OrderPrefab.GetMatchingItems | ( | Submarine | submarine, |
bool | mustBelongToPlayerSub, | ||
CharacterTeamType? | requiredTeam = null , |
||
Character | interactableFor = null , |
||
Identifier | orderOption = default |
||
) |
LocalizedString Barotrauma.OrderPrefab.GetOptionName | ( | Identifier | id | ) |
LocalizedString Barotrauma.OrderPrefab.GetOptionName | ( | int | index | ) |
LocalizedString Barotrauma.OrderPrefab.GetOptionName | ( | string | id | ) |
ItemComponent Barotrauma.OrderPrefab.GetTargetItemComponent | ( | Item | item | ) |
ImmutableArray<Identifier> Barotrauma.OrderPrefab.GetTargetItems | ( | Identifier | option = default | ) |
bool Barotrauma.OrderPrefab.HasAppropriateJob | ( | Character | character | ) |
bool Barotrauma.OrderPrefab.HasPreferredJob | ( | Character | character | ) |
|
static |
bool Barotrauma.OrderPrefab.TargetItemsMatchItem | ( | Item | item, |
Identifier | option = default |
||
) |
bool Barotrauma.OrderPrefab.TryGetTargetItemComponent | ( | Item | item, |
out ItemComponent | firstMatchingComponent | ||
) |
readonly ImmutableArray<Identifier> Barotrauma.OrderPrefab.AllOptions |
readonly ImmutableArray<Identifier> Barotrauma.OrderPrefab.AppropriateJobs |
readonly Identifier Barotrauma.OrderPrefab.AppropriateSkill |
readonly bool Barotrauma.OrderPrefab.CanBeGeneralized |
readonly? OrderCategory Barotrauma.OrderPrefab.Category |
readonly Identifier Barotrauma.OrderPrefab.CategoryIdentifier |
readonly LocalizedString Barotrauma.OrderPrefab.ContextualName |
readonly ImmutableArray<Identifier> Barotrauma.OrderPrefab.ControllerTags |
|
static |
readonly ImmutableArray<Identifier> Barotrauma.OrderPrefab.HiddenOptions |
readonly LocalizedString Barotrauma.OrderPrefab.Name |
readonly ListDictionary<Identifier, LocalizedString> Barotrauma.OrderPrefab.OptionNames |
readonly ImmutableArray<Identifier> Barotrauma.OrderPrefab.Options |
readonly ImmutableDictionary<Identifier, Sprite> Barotrauma.OrderPrefab.OptionSprites |
|
static |
readonly ImmutableArray<Identifier> Barotrauma.OrderPrefab.PreferredJobs |
readonly ImmutableArray<Identifier> Barotrauma.OrderPrefab.RequireItems |
readonly ImmutableArray<Identifier> Barotrauma.OrderPrefab.TargetItems |
|
get |
|
get |
|
staticget |
|
get |
|
get |
|
get |