|
Barotrauma Client
|
Public Types | |
| enum | OrderType { Current , Previous } |
| enum | OrderTargetType { Entity , Position , WallSection } |
Public Member Functions | |||
| Order (OrderPrefab prefab, Entity targetEntity, ItemComponent targetItem, Character orderGiver=null, bool isAutonomous=false) | |||
| Constructor for orders with the target type OrderTargetType.Entity. | |||
| Order (OrderPrefab prefab, Identifier option, Entity targetEntity, ItemComponent targetItem, Character orderGiver=null, bool isAutonomous=false) | |||
| Constructor for orders with the target type OrderTargetType.Entity. | |||
| Order (OrderPrefab prefab, OrderTarget target, Character orderGiver=null) | |||
| Constructor for orders with the target type OrderTargetType.Position. | |||
| Order (OrderPrefab prefab, Identifier option, OrderTarget target, Character orderGiver=null) | |||
| Constructor for orders with the target type OrderTargetType.Position. | |||
| Order (OrderPrefab prefab, Structure wall, int? sectionIndex, Character orderGiver=null) | |||
| Constructor for orders with the target type OrderTargetType.WallSection. | |||
| Order (OrderPrefab prefab, Identifier option, Structure wall, int? sectionIndex, Character orderGiver=null) | |||
| Constructor for orders with the target type OrderTargetType.WallSection. | |||
| Order | WithOption (Identifier option) | ||
| Order | WithManualPriority (int newPriority) | ||
| Order | WithOrderGiver (Character orderGiver) | ||
| Order | WithObjective (AIObjective objective) | ||
| Order | WithTargetEntity (Entity entity) | ||
| Order | WithTargetSpatialEntity (ISpatialEntity spatialEntity) | ||
| Order | WithItemComponent (Item item, ItemComponent component=null) | ||
| Order | WithWallSection (Structure wall, int? sectionIndex) | ||
| Order | WithType (OrderType type) | ||
| Order | WithTargetPosition (OrderTarget targetPosition) | ||
| Order | Clone () | ||
| Order | GetDismissal () | ||
| 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. | |||
| bool | TryGetTargetItemComponent (Item item, out ItemComponent firstMatchingComponent) | ||
| List< Item > | GetMatchingItems (Submarine submarine, bool mustBelongToPlayerSub, CharacterTeamType? requiredTeam=null, Character interactableFor=null) | ||
| |||
| List< Item > | GetMatchingItems (bool mustBelongToPlayerSub, Character interactableFor=null) | ||
| |||
| LocalizedString | GetOptionName (string id) | ||
| LocalizedString | GetOptionName (Identifier id) | ||
| LocalizedString | GetOptionName (int index) | ||
| bool | MatchesOrder (Identifier orderIdentifier, Identifier orderOption) | ||
| bool | MatchesOrder (Order order) | ||
| bool | MatchesDismissedOrder (Identifier dismissOrderOption) | ||
| ImmutableArray< Identifier > | GetTargetItems (Identifier option=default) | ||
| override string | ToString () | ||
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. | |
Public Attributes | |
| readonly OrderPrefab | Prefab |
| readonly Identifier | Option |
| readonly int | ManualPriority |
| readonly OrderType | Type |
| readonly AIObjective | Objective |
| readonly Entity | TargetEntity |
| readonly ItemComponent | TargetItemComponent |
| readonly Controller | ConnectedController |
| readonly Character | OrderGiver |
| readonly OrderTarget | TargetPosition |
| readonly OrderTargetType | TargetType |
| readonly? int | WallSectionIndex |
| readonly bool | UseController |
Properties | |
| bool | IsCurrentOrder [get] |
| bool | IsDismissal [get] |
| ISpatialEntity | TargetSpatialEntity [get] |
| Note this property doesn't return the follow target of the Follow objective, as expected! | |
| Hull | TargetHull [get] |
| LocalizedString | Name [get] |
| LocalizedString | ContextualName [get] |
| Identifier | Identifier [get] |
| Type | ItemComponentType [get] |
| bool | CanTypeBeSubclass [get] |
| ref readonly ImmutableArray< Identifier > | ControllerTags [get] |
| ref readonly ImmutableArray< Identifier > | TargetItems [get] |
| ref readonly ImmutableArray< Identifier > | RequireItems [get] |
| ref readonly ImmutableArray< Identifier > | Options [get] |
| ref readonly ImmutableArray< Identifier > | HiddenOptions [get] |
| ref readonly ImmutableArray< Identifier > | AllOptions [get] |
| Sprite | SymbolSprite [get] |
| Color | Color [get] |
| bool | TargetAllCharacters [get] |
| ref readonly ImmutableArray< Identifier > | AppropriateJobs [get] |
| float | FadeOutTime [get] |
| bool | MustSetTarget [get] |
| Identifier | AppropriateSkill [get] |
| OrderCategory? | Category [get] |
| bool | MustManuallyAssign [get] |
| bool | IsIgnoreOrder [get] |
| bool | IsDeconstructOrder [get] |
| bool | DrawIconWhenContained [get] |
| bool | Hidden [get] |
| bool | IgnoreAtOutpost [get] |
| bool | IsReport [get] |
| bool | AutoDismiss [get] |
| int | AssignmentPriority [get] |
| bool | ColoredWhenControllingGiver [get] |
| bool | DisplayGiverInTooltip [get] |
| Barotrauma.Order.Order | ( | OrderPrefab | prefab, |
| Entity | targetEntity, | ||
| ItemComponent | targetItem, | ||
| Character | orderGiver = null, | ||
| bool | isAutonomous = false ) |
Constructor for orders with the target type OrderTargetType.Entity.
| Barotrauma.Order.Order | ( | OrderPrefab | prefab, |
| Identifier | option, | ||
| Entity | targetEntity, | ||
| ItemComponent | targetItem, | ||
| Character | orderGiver = null, | ||
| bool | isAutonomous = false ) |
Constructor for orders with the target type OrderTargetType.Entity.
| Barotrauma.Order.Order | ( | OrderPrefab | prefab, |
| OrderTarget | target, | ||
| Character | orderGiver = null ) |
Constructor for orders with the target type OrderTargetType.Position.
| Barotrauma.Order.Order | ( | OrderPrefab | prefab, |
| Identifier | option, | ||
| OrderTarget | target, | ||
| Character | orderGiver = null ) |
Constructor for orders with the target type OrderTargetType.Position.
| Barotrauma.Order.Order | ( | OrderPrefab | prefab, |
| Structure | wall, | ||
| int? | sectionIndex, | ||
| Character | orderGiver = null ) |
Constructor for orders with the target type OrderTargetType.WallSection.
| Barotrauma.Order.Order | ( | OrderPrefab | prefab, |
| Identifier | option, | ||
| Structure | wall, | ||
| int? | sectionIndex, | ||
| Character | orderGiver = null ) |
Constructor for orders with the target type OrderTargetType.WallSection.
| Order Barotrauma.Order.Clone | ( | ) |
| string Barotrauma.Order.GetChatMessage | ( | string | targetCharacterName, |
| string | targetRoomName, | ||
| bool | givingOrderToSelf, | ||
| Identifier | orderOption = default, | ||
| bool | isNewOrder = true ) |
| Order Barotrauma.Order.GetDismissal | ( | ) |
|
static |
Used to create the order option for the Dismiss order to know which order it targets.
| orderInfo | The order to target with the dismiss order |
| List< Item > Barotrauma.Order.GetMatchingItems | ( | bool | mustBelongToPlayerSub, |
| Character | interactableFor = null ) |
| interactableFor | Only returns items which are interactable for this character |
| List< Item > Barotrauma.Order.GetMatchingItems | ( | Submarine | submarine, |
| bool | mustBelongToPlayerSub, | ||
| CharacterTeamType? | requiredTeam = null, | ||
| Character | interactableFor = null ) |
| interactableFor | Only returns items which are interactable for this character |
| LocalizedString Barotrauma.Order.GetOptionName | ( | Identifier | id | ) |
| LocalizedString Barotrauma.Order.GetOptionName | ( | int | index | ) |
| LocalizedString Barotrauma.Order.GetOptionName | ( | string | id | ) |
| ItemComponent Barotrauma.Order.GetTargetItemComponent | ( | Item | item | ) |
Get the target item component based on the target item type.
| ImmutableArray< Identifier > Barotrauma.Order.GetTargetItems | ( | Identifier | option = default | ) |
| bool Barotrauma.Order.HasAppropriateJob | ( | Character | character | ) |
| bool Barotrauma.Order.HasPreferredJob | ( | Character | character | ) |
| bool Barotrauma.Order.MatchesDismissedOrder | ( | Identifier | dismissOrderOption | ) |
| bool Barotrauma.Order.MatchesOrder | ( | Identifier | orderIdentifier, |
| Identifier | orderOption ) |
| bool Barotrauma.Order.MatchesOrder | ( | Order | order | ) |
| override string Barotrauma.Order.ToString | ( | ) |
| bool Barotrauma.Order.TryGetTargetItemComponent | ( | Item | item, |
| out ItemComponent | firstMatchingComponent ) |
| Order Barotrauma.Order.WithItemComponent | ( | Item | item, |
| ItemComponent | component = null ) |
| Order Barotrauma.Order.WithManualPriority | ( | int | newPriority | ) |
| Order Barotrauma.Order.WithObjective | ( | AIObjective | objective | ) |
| Order Barotrauma.Order.WithOption | ( | Identifier | option | ) |
| Order Barotrauma.Order.WithTargetPosition | ( | OrderTarget | targetPosition | ) |
| Order Barotrauma.Order.WithTargetSpatialEntity | ( | ISpatialEntity | spatialEntity | ) |
| readonly Controller Barotrauma.Order.ConnectedController |
| readonly int Barotrauma.Order.ManualPriority |
| readonly AIObjective Barotrauma.Order.Objective |
| readonly Identifier Barotrauma.Order.Option |
| readonly Character Barotrauma.Order.OrderGiver |
| readonly OrderPrefab Barotrauma.Order.Prefab |
| readonly Entity Barotrauma.Order.TargetEntity |
| readonly ItemComponent Barotrauma.Order.TargetItemComponent |
| readonly OrderTarget Barotrauma.Order.TargetPosition |
| readonly OrderTargetType Barotrauma.Order.TargetType |
| readonly OrderType Barotrauma.Order.Type |
| readonly bool Barotrauma.Order.UseController |
| readonly? int Barotrauma.Order.WallSectionIndex |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
Note this property doesn't return the follow target of the Follow objective, as expected!