Barotrauma Client Doc
|
The base class for components holding the different functionalities of the item More...
Classes | |
class | GUILayoutSettings |
interface | IEventData |
Public Member Functions | |
readonly record struct | ItemUseInfo (Item Item, Character User) |
ItemComponent (Item item, ContentXElement element) | |
void | SetRequiredItems (ContentXElement element, bool allowEmpty=false) |
virtual void | Move (Vector2 amount, bool ignoreContacts=false) |
virtual bool | Pick (Character picker) |
a Character has picked the item More... | |
virtual bool | Select (Character character) |
virtual void | Drop (Character dropper, bool setTransform=true) |
a Character has dropped the item More... | |
virtual bool | CrewAIOperate (float deltaTime, Character character, AIObjectiveOperateItem objective) |
| |
virtual void | Update (float deltaTime, Camera cam) |
virtual void | UpdateBroken (float deltaTime, Camera cam) |
virtual bool | Use (float deltaTime, Character character=null) |
virtual bool | SecondaryUse (float deltaTime, Character character=null) |
virtual void | Equip (Character character) |
virtual void | Unequip (Character character) |
virtual void | ReceiveSignal (Signal signal, Connection connection) |
virtual bool | Combine (Item item, Character user) |
void | Remove () |
void | ShallowRemove () |
Remove the component so that it doesn't appear to exist in the game world (stop sounds, remove bodies etc) but don't reset anything that's required for cloning the item More... | |
bool | HasRequiredSkills (Character character) |
bool | HasRequiredSkills (Character character, out Skill insufficientSkill) |
virtual float | GetSkillMultiplier () |
float | DegreeOfSuccess (Character character) |
Returns 0.0f-1.0f based on how well the Character can use the itemcomponent More... | |
float | DegreeOfSuccess (Character character, List< Skill > requiredSkills) |
Returns 0.0f-1.0f based on how well the Character can use the itemcomponent More... | |
virtual void | FlipX (bool relativeToSub) |
virtual void | FlipY (bool relativeToSub) |
bool | IsEmpty (Character user) |
Shorthand for !HasRequiredContainedItems() More... | |
bool | HasRequiredContainedItems (Character user, bool addMessage, LocalizedString msg=null) |
virtual bool | HasAccess (Character character) |
Only checks if any of the Picked requirements are matched (used for checking id card(s)). Much simpler and a bit different than HasRequiredItems. More... | |
virtual bool | HasRequiredItems (Character character, bool addMessage, LocalizedString msg=null) |
void | ApplyStatusEffects (ActionType type, float deltaTime, Character character=null, Limb targetLimb=null, Entity useTarget=null, Character user=null, Vector2? worldPosition=null, float afflictionMultiplier=1.0f) |
virtual void | Load (ContentXElement componentElement, bool usePrefabValues, IdRemap idRemap) |
virtual void | OnMapLoaded () |
Called when all items have been loaded. Use to initialize connections between items. More... | |
virtual void | OnItemLoaded () |
Called when all the components of the item have been loaded. Use to initialize connections between components and such. More... | |
virtual void | OnScaleChanged () |
virtual void | OnInventoryChanged () |
Called when the item has an ItemContainer and the contents inside of it changed. More... | |
virtual XElement | Save (XElement parentElement) |
virtual void | Reset () |
virtual void | ParseMsg () |
virtual bool | ValidateEventData (NetEntityEvent.IData data) |
ItemComponent | GetReplacementOrThis () |
bool | NeedsSoundUpdate () |
void | UpdateSounds () |
void | PlaySound (ActionType type, Character user=null) |
void | StopLoopingSound () |
void | StopSounds (ActionType type) |
virtual bool | ShouldDrawHUD (Character character) |
ItemComponent | GetLinkUIToComponent () |
virtual void | DrawHUD (SpriteBatch spriteBatch, Character character) |
virtual void | AddToGUIUpdateList (int order=0) |
void | UpdateHUD (Character character, float deltaTime, Camera cam) |
virtual void | UpdateHUDComponentSpecific (Character character, float deltaTime, Camera cam) |
virtual void | UpdateEditing (float deltaTime) |
virtual void | CreateEditingHUD (SerializableEntityEditor editor) |
virtual void | OnPlayerSkillsChanged () |
virtual void | AddTooltipInfo (ref LocalizedString name, ref LocalizedString description) |
Static Public Member Functions | |
static ItemComponent | Load (ContentXElement element, Item item, bool errorMessages=true) |
Public Attributes | |
bool | WasUsed |
readonly Dictionary< ActionType, List< StatusEffect > > | statusEffectLists |
Dictionary< RelatedItem.RelationType, List< RelatedItem > > | requiredItems |
readonly List< RelatedItem > | DisabledRequiredItems = new List<RelatedItem>() |
List< Skill > | requiredSkills |
readonly ContentXElement | originalElement |
Action< bool > | OnActiveStateChanged |
List< PropertyConditional > | IsActiveConditionals |
readonly NamedEvent< ItemUseInfo > | OnUsed = new() |
readonly bool | InheritStatusEffects |
float | IsActiveTimer |
ItemComponent | ReplacedBy |
Protected Member Functions | |
virtual void | ShallowRemoveComponentSpecific () |
virtual void | RemoveComponentSpecific () |
string | GetTextureDirectory (ContentXElement subElement) |
T | ExtractEventData< T > (NetEntityEvent.IData data) |
bool | TryExtractEventData< T > (NetEntityEvent.IData data, out T componentData) |
AIObjectiveContainItem | AIContainItems< T > (ItemContainer container, Character character, AIObjective currentObjective, int itemCount, bool equip, bool removeEmpty, bool spawnItemIfNotFound=false, bool dropItemOnDeselected=false) |
void | ReleaseGuiFrame () |
void | ReloadGuiFrame () |
void | TryCreateDragHandle () |
virtual void | CreateGUI () |
Overload this method and implement. The method is automatically called when the resolution changes. More... | |
void | StartDelayedCorrection (IReadMessage buffer, float sendingTime, bool waitForMidRoundSync=false) |
void | OnGUIParentChanged (RectTransform newParent) |
Launches when the parent of the GuiFrame is changed. More... | |
virtual void | OnResolutionChanged () |
Protected Attributes | |
Item | item |
string | name |
bool | characterUsable |
bool | canBePicked |
bool | canBeSelected |
bool | canBeCombined |
bool | removeOnCombined |
CoroutineHandle | delayedCorrectionCoroutine |
float | aiUpdateTimer |
float | correctionTimer |
Static Protected Attributes | |
const float | CorrectionDelay = 1.0f |
const float | AIUpdateInterval = 0.2f |
Properties | |
ItemComponent | Parent [get, set] |
bool | InheritParentIsActive [get, set] |
virtual bool | DontTransferInventoryBetweenSubs [get] |
If enabled, the contents of the item are not transferred when the player transfers items between subs. Use this if this component uses item containers in a way where removing the item from the container via external means would cause problems. More... | |
virtual bool | DisallowSellingItemsFromContainer [get] |
If enabled, the items inside any of the item containers on this item cannot be sold at an outpost. Use in similar cases as DontTransferInventoryBetweenSubs. More... | |
float | PickingTime [get, set] |
string | PickingMsg [get, set] |
Dictionary< Identifier, SerializableProperty > | SerializableProperties [get, protected set] |
virtual bool? | IsActive [get, set] |
PropertyConditional.LogicalOperatorType | IsActiveConditionalComparison [get, set] |
bool | Drawable [get, set] |
bool | CanBePicked [get, set] |
bool | DrawHudWhenEquipped [get, protected set] |
bool | LockGuiFramePosition [get, set] |
Point | GuiFrameOffset [get, set] |
bool | CanBeSelected [get, set] |
bool | CanBeCombined [get, set] |
bool | RemoveOnCombined [get, set] |
bool | CharacterUsable [get, set] |
bool | AllowInGameEditing [get, set] |
InputType | PickKey [get, protected set] |
InputType | SelectKey [get, protected set] |
bool | DeleteOnUse [get, set] |
Item | Item [get] |
string | Name [get] |
string | Msg [get, set] |
LocalizedString | DisplayMsg [get, set] |
float | CombatPriority [get] |
int | ManuallySelectedSound [get] |
Which sound should be played when manual sound selection type is selected? Not [Editable] because we don't want this visible in the editor for every component. More... | |
float | Speed [get] |
Can be used by status effects or conditionals to the speed of the item More... | |
virtual bool | UpdateWhenInactive [get] |
bool | HasSounds [get] |
bool[] | HasSoundsOfType [get] |
virtual bool | RecreateGUIOnResolutionChange [get] |
GUILayoutSettings | DefaultLayout [get, protected set] |
GUILayoutSettings | AlternativeLayout [get, protected set] |
GUIFrame | GuiFrame [get, set] |
bool | AllowUIOverlap [get, set] |
string | LinkUIToComponent [get, set] |
int | HudPriority [get] |
int | HudLayer [get] |
bool?? | UseAlternativeLayout [get, set] |
Properties inherited from Barotrauma.ISerializableEntity | |
string | Name [get] |
Dictionary< Identifier, SerializableProperty > | SerializableProperties [get] |
The base class for components holding the different functionalities of the item
Definition at line 34 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
Barotrauma.Items.Components.ItemComponent.ItemComponent | ( | Item | item, |
ContentXElement | element | ||
) |
Definition at line 285 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
virtual |
Reimplemented in Barotrauma.Items.Components.Terminal, Barotrauma.Items.Components.RemoteController, and Barotrauma.Items.Components.MiniMap.
Definition at line 475 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
|
virtual |
Reimplemented in Barotrauma.Items.Components.Wearable, Barotrauma.Items.Components.Quality, and Barotrauma.Items.Components.GeneticMaterial.
Definition at line 775 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
|
protected |
T | : | ItemComponent |
Definition at line 1172 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
void Barotrauma.Items.Components.ItemComponent.ApplyStatusEffects | ( | ActionType | type, |
float | deltaTime, | ||
Character | character = null , |
||
Limb | targetLimb = null , |
||
Entity | useTarget = null , |
||
Character | user = null , |
||
Vector2? | worldPosition = null , |
||
float | afflictionMultiplier = 1.0f |
||
) |
Definition at line 903 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
virtual |
Reimplemented in Barotrauma.Items.Components.ItemContainer.
Definition at line 545 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
virtual |
Reimplemented in Barotrauma.Items.Components.CustomInterface.
Definition at line 498 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
|
protectedvirtual |
Overload this method and implement. The method is automatically called when the resolution changes.
Reimplemented in Barotrauma.Items.Components.CustomInterface, Barotrauma.Items.Components.ConnectionPanel, Barotrauma.Items.Components.ButtonTerminal, Barotrauma.Items.Components.Repairable, Barotrauma.Items.Components.Steering, Barotrauma.Items.Components.Sonar, Barotrauma.Items.Components.Reactor, Barotrauma.Items.Components.MiniMap, Barotrauma.Items.Components.Fabricator, Barotrauma.Items.Components.Deconstructor, and Barotrauma.Items.Components.ItemContainer.
Definition at line 712 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
|
virtual |
Reimplemented in Barotrauma.Items.Components.Turret, Barotrauma.Items.Components.PowerContainer, Barotrauma.Items.Components.Steering, Barotrauma.Items.Components.Sonar, Barotrauma.Items.Components.Reactor, Barotrauma.Items.Components.Pump, and Barotrauma.Items.Components.RepairTool.
Definition at line 480 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
float Barotrauma.Items.Components.ItemComponent.DegreeOfSuccess | ( | Character | character | ) |
Returns 0.0f-1.0f based on how well the Character can use the itemcomponent
Definition at line 699 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
float Barotrauma.Items.Components.ItemComponent.DegreeOfSuccess | ( | Character | character, |
List< Skill > | requiredSkills | ||
) |
Returns 0.0f-1.0f based on how well the Character can use the itemcomponent
Definition at line 708 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
virtual |
Reimplemented in Barotrauma.Items.Components.Turret, Barotrauma.Items.Components.StatusHUD, Barotrauma.Items.Components.Repairable, Barotrauma.Items.Components.RemoteController, Barotrauma.Items.Components.Controller, Barotrauma.Items.Components.Sprayer, and Barotrauma.Items.Components.RangedWeapon.
Definition at line 473 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
|
virtual |
a Character has dropped the item
Reimplemented in Barotrauma.Items.Components.Wearable, Barotrauma.Items.Components.Wire, Barotrauma.Items.Components.LightComponent, Barotrauma.Items.Components.Projectile, Barotrauma.Items.Components.ItemContainer, Barotrauma.Items.Components.Throwable, Barotrauma.Items.Components.Pickable, Barotrauma.Items.Components.MeleeWeapon, Barotrauma.Items.Components.Holdable, and Barotrauma.Items.Components.StatusHUD.
Definition at line 477 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
virtual |
Reimplemented in Barotrauma.Items.Components.Wearable, Barotrauma.Items.Components.Wire, Barotrauma.Items.Components.RemoteController, Barotrauma.Items.Components.ItemContainer, Barotrauma.Items.Components.RangedWeapon, Barotrauma.Items.Components.MeleeWeapon, Barotrauma.Items.Components.IdCard, Barotrauma.Items.Components.Holdable, Barotrauma.Items.Components.GeneticMaterial, and Barotrauma.Items.Components.StatusHUD.
Definition at line 515 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
protected |
T | : | IEventData | |
T | : | TryExtractEventData | |
T | : | data | |
T | : | out | |
T | : | T | |
T | : | componentData | |
T | : | componentData | |
T | : | throw | |
T | : | new | |
T | : | Exception | |
T | : | Malformed | |
T | : | item | |
T | : | component | |
T | : | state | |
T | : | event | |
T | : | for |
Definition at line 1149 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
virtual |
Reimplemented in Barotrauma.Items.Components.Turret, Barotrauma.Items.Components.Wire, Barotrauma.Items.Components.Engine, Barotrauma.Items.Components.Controller, Barotrauma.Items.Components.ItemContainer, Barotrauma.Items.Components.Holdable, Barotrauma.Items.Components.DockingPort, and Barotrauma.Items.Components.LightComponent.
Definition at line 731 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
virtual |
Reimplemented in Barotrauma.Items.Components.Turret, Barotrauma.Items.Components.Wire, Barotrauma.Items.Components.Engine, Barotrauma.Items.Components.Controller, and Barotrauma.Items.Components.DockingPort.
Definition at line 733 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
ItemComponent Barotrauma.Items.Components.ItemComponent.GetLinkUIToComponent | ( | ) |
Definition at line 453 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
ItemComponent Barotrauma.Items.Components.ItemComponent.GetReplacementOrThis | ( | ) |
Definition at line 215 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
|
virtual |
Reimplemented in Barotrauma.Items.Components.Repairable, and Barotrauma.Items.Components.Fabricator.
Definition at line 693 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
protected |
|
virtual |
Only checks if any of the Picked requirements are matched (used for checking id card(s)). Much simpler and a bit different than HasRequiredItems.
Reimplemented in Barotrauma.Items.Components.Controller, and Barotrauma.Items.Components.Door.
Definition at line 766 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
bool Barotrauma.Items.Components.ItemComponent.HasRequiredContainedItems | ( | Character | user, |
bool | addMessage, | ||
LocalizedString | msg = null |
||
) |
Definition at line 740 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
virtual |
Reimplemented in Barotrauma.Items.Components.ItemContainer, and Barotrauma.Items.Components.Door.
Definition at line 814 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
bool Barotrauma.Items.Components.ItemComponent.HasRequiredSkills | ( | Character | character | ) |
Definition at line 673 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
bool Barotrauma.Items.Components.ItemComponent.HasRequiredSkills | ( | Character | character, |
out Skill | insufficientSkill | ||
) |
Definition at line 678 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
bool Barotrauma.Items.Components.ItemComponent.IsEmpty | ( | Character | user | ) |
Shorthand for !HasRequiredContainedItems()
readonly record struct Barotrauma.Items.Components.ItemComponent.ItemUseInfo | ( | Item | Item, |
Character | User | ||
) |
|
virtual |
Reimplemented in Barotrauma.Items.Components.ConnectionPanel, Barotrauma.Items.Components.Wearable, Barotrauma.Items.Components.Turret, Barotrauma.Items.Components.Wire, Barotrauma.Items.Components.WifiComponent, Barotrauma.Items.Components.Terminal, Barotrauma.Items.Components.MotionSensor, Barotrauma.Items.Components.Fabricator, Barotrauma.Items.Components.Controller, Barotrauma.Items.Components.ItemContainer, and Barotrauma.Items.Components.Holdable.
Definition at line 944 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
static |
Definition at line 989 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
virtual |
Reimplemented in Barotrauma.Items.Components.TriggerComponent, Barotrauma.Items.Components.LightComponent, Barotrauma.Items.Components.ItemContainer, Barotrauma.Items.Components.LevelResource, Barotrauma.Items.Components.Door, Barotrauma.Items.Components.Turret, Barotrauma.Items.Components.Wire, and Barotrauma.Items.Components.ConnectionPanel.
Definition at line 463 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
bool Barotrauma.Items.Components.ItemComponent.NeedsSoundUpdate | ( | ) |
Definition at line 220 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
|
protected |
Launches when the parent of the GuiFrame is changed.
Definition at line 747 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
|
virtual |
Called when the item has an ItemContainer and the contents inside of it changed.
Definition at line 987 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
virtual |
Called when all the components of the item have been loaded. Use to initialize connections between components and such.
Reimplemented in Barotrauma.Items.Components.Wearable, Barotrauma.Items.Components.Turret, Barotrauma.Items.Components.TriggerComponent, Barotrauma.Items.Components.WifiComponent, Barotrauma.Items.Components.Terminal, Barotrauma.Items.Components.RelayComponent, Barotrauma.Items.Components.LightComponent, Barotrauma.Items.Components.CustomInterface, Barotrauma.Items.Components.ConnectionPanel, Barotrauma.Items.Components.ButtonTerminal, Barotrauma.Items.Components.Scanner, Barotrauma.Items.Components.Repairable, Barotrauma.Items.Components.Projectile, Barotrauma.Items.Components.PowerTransfer, Barotrauma.Items.Components.Powered, Barotrauma.Items.Components.Steering, Barotrauma.Items.Components.Fabricator, Barotrauma.Items.Components.Deconstructor, Barotrauma.Items.Components.Controller, Barotrauma.Items.Components.ItemContainer, Barotrauma.Items.Components.Sprayer, Barotrauma.Items.Components.LevelResource, Barotrauma.Items.Components.IdCard, Barotrauma.Items.Components.Holdable, Barotrauma.Items.Components.Door, Barotrauma.Items.Components.StatusHUD, Barotrauma.Items.Components.PowerContainer, Barotrauma.Items.Components.Sonar, Barotrauma.Items.Components.Reactor, and Barotrauma.Items.Components.Pump.
Definition at line 980 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
virtual |
Called when all items have been loaded. Use to initialize connections between items.
Reimplemented in Barotrauma.Items.Components.Turret, Barotrauma.Items.Components.TriggerComponent, Barotrauma.Items.Components.LightComponent, Barotrauma.Items.Components.ConnectionPanel, Barotrauma.Items.Components.Reactor, Barotrauma.Items.Components.Fabricator, Barotrauma.Items.Components.ItemContainer, Barotrauma.Items.Components.Holdable, Barotrauma.Items.Components.Door, and Barotrauma.Items.Components.DockingPort.
Definition at line 975 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
virtual |
Reimplemented in Barotrauma.Items.Components.Fabricator.
Definition at line 773 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
|
protectedvirtual |
Reimplemented in Barotrauma.Items.Components.ButtonTerminal, Barotrauma.Items.Components.Steering, Barotrauma.Items.Components.Sonar, Barotrauma.Items.Components.Fabricator, and Barotrauma.Items.Components.Deconstructor.
Definition at line 756 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
|
virtual |
Reimplemented in Barotrauma.Items.Components.Door, Barotrauma.Items.Components.LightComponent, and Barotrauma.Items.Components.ItemLabel.
Definition at line 982 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
virtual |
Reimplemented in Barotrauma.Items.Components.Holdable.
Definition at line 1130 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
virtual |
a Character has picked the item
Reimplemented in Barotrauma.Items.Components.Wire, Barotrauma.Items.Components.PowerTransfer, Barotrauma.Items.Components.PowerContainer, Barotrauma.Items.Components.Reactor, Barotrauma.Items.Components.MiniMap, Barotrauma.Items.Components.Fabricator, Barotrauma.Items.Components.Controller, Barotrauma.Items.Components.ItemContainer, Barotrauma.Items.Components.Pickable, Barotrauma.Items.Components.Holdable, and Barotrauma.Items.Components.Door.
Definition at line 466 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
void Barotrauma.Items.Components.ItemComponent.PlaySound | ( | ActionType | type, |
Character | user = null |
||
) |
Definition at line 258 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
|
virtual |
Reimplemented in Barotrauma.Items.Components.Turret, Barotrauma.Items.Components.TriggerComponent, Barotrauma.Items.Components.WifiComponent, Barotrauma.Items.Components.TrigonometricFunctionComponent, Barotrauma.Items.Components.Terminal, Barotrauma.Items.Components.StringComponent, Barotrauma.Items.Components.SignalCheckComponent, Barotrauma.Items.Components.RelayComponent, Barotrauma.Items.Components.RegExFindComponent, Barotrauma.Items.Components.OscillatorComponent, Barotrauma.Items.Components.NotComponent, Barotrauma.Items.Components.ModuloComponent, Barotrauma.Items.Components.MemoryComponent, Barotrauma.Items.Components.LightComponent, Barotrauma.Items.Components.GreaterComponent, Barotrauma.Items.Components.FunctionComponent, Barotrauma.Items.Components.ExponentiationComponent, Barotrauma.Items.Components.EqualsComponent, Barotrauma.Items.Components.DelayComponent, Barotrauma.Items.Components.ConnectionPanel, Barotrauma.Items.Components.ColorComponent, Barotrauma.Items.Components.BooleanOperatorComponent, Barotrauma.Items.Components.ArithmeticComponent, Barotrauma.Items.Components.Repairable, Barotrauma.Items.Components.PowerTransfer, Barotrauma.Items.Components.PowerContainer, Barotrauma.Items.Components.Steering, Barotrauma.Items.Components.Sonar, Barotrauma.Items.Components.Reactor, Barotrauma.Items.Components.Pump, Barotrauma.Items.Components.Engine, Barotrauma.Items.Components.ItemLabel, Barotrauma.Items.Components.ItemContainer, Barotrauma.Items.Components.Holdable, Barotrauma.Items.Components.ElectricalDischarger, Barotrauma.Items.Components.Door, Barotrauma.Items.Components.DockingPort, and Barotrauma.Items.Components.MiniMap.
Definition at line 520 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
protected |
Definition at line 582 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
|
protected |
Definition at line 590 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
void Barotrauma.Items.Components.ItemComponent.Remove | ( | ) |
Definition at line 610 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
protectedvirtual |
Reimplemented in Barotrauma.Items.Components.Wearable, Barotrauma.Items.Components.Turret, Barotrauma.Items.Components.TriggerComponent, Barotrauma.Items.Components.Wire, Barotrauma.Items.Components.WifiComponent, Barotrauma.Items.Components.ConnectionPanel, Barotrauma.Items.Components.Projectile, Barotrauma.Items.Components.PowerTransfer, Barotrauma.Items.Components.Powered, Barotrauma.Items.Components.Fabricator, Barotrauma.Items.Components.Ladder, Barotrauma.Items.Components.ItemContainer, Barotrauma.Items.Components.LevelResource, Barotrauma.Items.Components.Holdable, Barotrauma.Items.Components.ElectricalDischarger, Barotrauma.Items.Components.Door, Barotrauma.Items.Components.DockingPort, Barotrauma.Items.Components.Rope, Barotrauma.Items.Components.Repairable, Barotrauma.Items.Components.Steering, Barotrauma.Items.Components.Sonar, Barotrauma.Items.Components.Reactor, Barotrauma.Items.Components.OutpostTerminal, Barotrauma.Items.Components.MiniMap, Barotrauma.Items.Components.LightComponent, and Barotrauma.Items.Components.RangedWeapon.
Definition at line 666 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
virtual |
Reimplemented in Barotrauma.Items.Components.Controller.
Definition at line 1084 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
virtual |
Reimplemented in Barotrauma.Items.Components.Wearable, Barotrauma.Items.Components.Wire, Barotrauma.Items.Components.WifiComponent, Barotrauma.Items.Components.Terminal, Barotrauma.Items.Components.MotionSensor, Barotrauma.Items.Components.CustomInterface, Barotrauma.Items.Components.ConnectionPanel, Barotrauma.Items.Components.Fabricator, Barotrauma.Items.Components.Engine, Barotrauma.Items.Components.Controller, Barotrauma.Items.Components.ItemContainer, and Barotrauma.Items.Components.Holdable.
Definition at line 1057 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
virtual |
Reimplemented in Barotrauma.Items.Components.Wire, Barotrauma.Items.Components.Controller, Barotrauma.Items.Components.Throwable, Barotrauma.Items.Components.RangedWeapon, Barotrauma.Items.Components.MeleeWeapon, and Barotrauma.Items.Components.Holdable.
Definition at line 509 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
virtual |
Reimplemented in Barotrauma.Items.Components.ConnectionPanel, Barotrauma.Items.Components.RemoteController, Barotrauma.Items.Components.Steering, Barotrauma.Items.Components.Fabricator, Barotrauma.Items.Components.Ladder, Barotrauma.Items.Components.ItemContainer, Barotrauma.Items.Components.Door, Barotrauma.Items.Components.Terminal, Barotrauma.Items.Components.OutpostTerminal, Barotrauma.Items.Components.Deconstructor, and Barotrauma.Items.Components.Controller.
Definition at line 471 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
void Barotrauma.Items.Components.ItemComponent.SetRequiredItems | ( | ContentXElement | element, |
bool | allowEmpty = false |
||
) |
Definition at line 434 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
void Barotrauma.Items.Components.ItemComponent.ShallowRemove | ( | ) |
Remove the component so that it doesn't appear to exist in the game world (stop sounds, remove bodies etc) but don't reset anything that's required for cloning the item
Definition at line 647 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
protectedvirtual |
Reimplemented in Barotrauma.Items.Components.Wire, Barotrauma.Items.Components.ConnectionPanel, and Barotrauma.Items.Components.ItemContainer.
Definition at line 660 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
virtual |
Reimplemented in Barotrauma.Items.Components.ConnectionPanel, and Barotrauma.Items.Components.Repairable.
Definition at line 448 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
|
protected |
Definition at line 715 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
void Barotrauma.Items.Components.ItemComponent.StopLoopingSound | ( | ) |
Definition at line 397 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
void Barotrauma.Items.Components.ItemComponent.StopSounds | ( | ActionType | type | ) |
Definition at line 408 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
|
protected |
Definition at line 615 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
|
protected |
Definition at line 1156 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
virtual |
Reimplemented in Barotrauma.Items.Components.Wearable, Barotrauma.Items.Components.Wire, Barotrauma.Items.Components.IdCard, Barotrauma.Items.Components.Holdable, and Barotrauma.Items.Components.StatusHUD.
Definition at line 518 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
virtual |
Reimplemented in Barotrauma.Items.Components.Wearable, Barotrauma.Items.Components.Turret, Barotrauma.Items.Components.TriggerComponent, Barotrauma.Items.Components.Wire, Barotrauma.Items.Components.WifiComponent, Barotrauma.Items.Components.WaterDetector, Barotrauma.Items.Components.TrigonometricFunctionComponent, Barotrauma.Items.Components.StringComponent, Barotrauma.Items.Components.SmokeDetector, Barotrauma.Items.Components.RelayComponent, Barotrauma.Items.Components.RegExFindComponent, Barotrauma.Items.Components.OxygenDetector, Barotrauma.Items.Components.OscillatorComponent, Barotrauma.Items.Components.NotComponent, Barotrauma.Items.Components.MotionSensor, Barotrauma.Items.Components.MemoryComponent, Barotrauma.Items.Components.LightComponent, Barotrauma.Items.Components.GreaterComponent, Barotrauma.Items.Components.EqualsComponent, Barotrauma.Items.Components.DelayComponent, Barotrauma.Items.Components.CustomInterface, Barotrauma.Items.Components.ConnectionPanel, Barotrauma.Items.Components.ColorComponent, Barotrauma.Items.Components.BooleanOperatorComponent, Barotrauma.Items.Components.ArithmeticComponent, Barotrauma.Items.Components.Scanner, Barotrauma.Items.Components.Rope, Barotrauma.Items.Components.Repairable, Barotrauma.Items.Components.RemoteController, Barotrauma.Items.Components.Projectile, Barotrauma.Items.Components.PowerTransfer, Barotrauma.Items.Components.Powered, Barotrauma.Items.Components.PowerContainer, Barotrauma.Items.Components.Vent, Barotrauma.Items.Components.Steering, Barotrauma.Items.Components.SonarTransducer, Barotrauma.Items.Components.Sonar, Barotrauma.Items.Components.Reactor, Barotrauma.Items.Components.Pump, Barotrauma.Items.Components.OxygenGenerator, Barotrauma.Items.Components.MiniMap, Barotrauma.Items.Components.Fabricator, Barotrauma.Items.Components.Engine, Barotrauma.Items.Components.Deconstructor, Barotrauma.Items.Components.Controller, Barotrauma.Items.Components.ItemContainer, Barotrauma.Items.Components.Throwable, Barotrauma.Items.Components.RepairTool, Barotrauma.Items.Components.RangedWeapon, Barotrauma.Items.Components.Propulsion, Barotrauma.Items.Components.MeleeWeapon, Barotrauma.Items.Components.LevelResource, Barotrauma.Items.Components.Holdable, Barotrauma.Items.Components.GeneticMaterial, Barotrauma.Items.Components.ElectricalDischarger, Barotrauma.Items.Components.Door, Barotrauma.Items.Components.DockingPort, Barotrauma.Items.Components.StatusHUD, Barotrauma.Items.Components.OutpostTerminal, and Barotrauma.Items.Components.ItemLabel.
Definition at line 488 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
virtual |
Reimplemented in Barotrauma.Items.Components.Wearable, Barotrauma.Items.Components.LightComponent, Barotrauma.Items.Components.ConnectionPanel, Barotrauma.Items.Components.Rope, Barotrauma.Items.Components.Repairable, Barotrauma.Items.Components.PowerTransfer, Barotrauma.Items.Components.Reactor, Barotrauma.Items.Components.OxygenGenerator, Barotrauma.Items.Components.Engine, Barotrauma.Items.Components.ItemContainer, Barotrauma.Items.Components.Throwable, Barotrauma.Items.Components.MeleeWeapon, Barotrauma.Items.Components.Holdable, Barotrauma.Items.Components.ElectricalDischarger, Barotrauma.Items.Components.Door, and Barotrauma.Items.Components.Turret.
Definition at line 494 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
virtual |
Reimplemented in Barotrauma.Items.Components.Turret.
Definition at line 496 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
void Barotrauma.Items.Components.ItemComponent.UpdateHUD | ( | Character | character, |
float | deltaTime, | ||
Camera | cam | ||
) |
Definition at line 480 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
|
virtual |
Reimplemented in Barotrauma.Items.Components.Turret, Barotrauma.Items.Components.CustomInterface, Barotrauma.Items.Components.ConnectionPanel, Barotrauma.Items.Components.RemoteController, Barotrauma.Items.Components.PowerTransfer, Barotrauma.Items.Components.PowerContainer, Barotrauma.Items.Components.Steering, Barotrauma.Items.Components.Sonar, Barotrauma.Items.Components.Reactor, Barotrauma.Items.Components.Pump, Barotrauma.Items.Components.MiniMap, Barotrauma.Items.Components.Fabricator, Barotrauma.Items.Components.Engine, Barotrauma.Items.Components.Deconstructor, Barotrauma.Items.Components.ItemContainer, Barotrauma.Items.Components.Sprayer, and Barotrauma.Items.Components.RangedWeapon.
Definition at line 494 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
void Barotrauma.Items.Components.ItemComponent.UpdateSounds | ( | ) |
Definition at line 228 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
|
virtual |
Reimplemented in Barotrauma.Items.Components.Turret, Barotrauma.Items.Components.Wire, Barotrauma.Items.Components.LightComponent, Barotrauma.Items.Components.ConnectionPanel, Barotrauma.Items.Components.Projectile, Barotrauma.Items.Components.Sonar, Barotrauma.Items.Components.Throwable, Barotrauma.Items.Components.RepairTool, Barotrauma.Items.Components.RangedWeapon, Barotrauma.Items.Components.Propulsion, Barotrauma.Items.Components.MeleeWeapon, Barotrauma.Items.Components.Holdable, Barotrauma.Items.Components.ElectricalDischarger, Barotrauma.Items.Components.Sprayer, and Barotrauma.Items.Components.Controller.
Definition at line 503 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
virtual |
|
staticprotected |
Definition at line 1169 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
protected |
Definition at line 1170 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
protected |
Definition at line 46 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
protected |
Definition at line 44 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
protected |
Definition at line 45 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
protected |
Definition at line 42 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
staticprotected |
Definition at line 80 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
protected |
Definition at line 65 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
|
protected |
Definition at line 81 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
readonly List<RelatedItem> Barotrauma.Items.Components.ItemComponent.DisabledRequiredItems = new List<RelatedItem>() |
Definition at line 54 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
readonly bool Barotrauma.Items.Components.ItemComponent.InheritStatusEffects |
Definition at line 283 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
List<PropertyConditional> Barotrauma.Items.Components.ItemComponent.IsActiveConditionals |
Definition at line 142 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
float Barotrauma.Items.Components.ItemComponent.IsActiveTimer |
Definition at line 67 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
|
protected |
Definition at line 36 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
protected |
Definition at line 38 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
Action<bool> Barotrauma.Items.Components.ItemComponent.OnActiveStateChanged |
Definition at line 111 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
readonly NamedEvent<ItemUseInfo> Barotrauma.Items.Components.ItemComponent.OnUsed = new() |
Definition at line 281 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
readonly ContentXElement Barotrauma.Items.Components.ItemComponent.originalElement |
Definition at line 78 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
protected |
Definition at line 47 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
ItemComponent Barotrauma.Items.Components.ItemComponent.ReplacedBy |
Definition at line 213 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
Dictionary<RelatedItem.RelationType, List<RelatedItem> > Barotrauma.Items.Components.ItemComponent.requiredItems |
Definition at line 53 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
List<Skill> Barotrauma.Items.Components.ItemComponent.requiredSkills |
Definition at line 56 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
readonly Dictionary<ActionType, List<StatusEffect> > Barotrauma.Items.Components.ItemComponent.statusEffectLists |
Definition at line 51 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
bool Barotrauma.Items.Components.ItemComponent.WasUsed |
Definition at line 49 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
getset |
Definition at line 218 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
getset |
Definition at line 158 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
|
getprotected set |
Definition at line 72 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
|
getset |
Definition at line 196 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
getset |
Definition at line 169 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
getset |
Definition at line 189 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
getset |
Definition at line 210 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
get |
Definition at line 267 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
getprotected set |
Definition at line 71 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
|
getset |
Definition at line 237 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
get |
If enabled, the items inside any of the item containers on this item cannot be sold at an outpost. Use in similar cases as DontTransferInventoryBetweenSubs.
Definition at line 93 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
getset |
Definition at line 260 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
get |
If enabled, the contents of the item are not transferred when the player transfers items between subs. Use this if this component uses item containers in a way where removing the item from the container via external means would cause problems.
Definition at line 87 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
getset |
Definition at line 144 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
getprotected set |
Definition at line 176 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
getset |
Definition at line 151 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
|
getset |
Definition at line 186 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
get |
Definition at line 54 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
|
get |
Definition at line 59 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
|
get |
Definition at line 180 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
|
get |
Definition at line 173 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
|
getset |
Definition at line 76 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
getset |
Definition at line 113 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
getset |
Definition at line 136 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
get |
Definition at line 243 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
getset |
Definition at line 166 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
|
getset |
Definition at line 183 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
get |
Which sound should be played when manual sound selection type is selected? Not [Editable] because we don't want this visible in the editor for every component.
Definition at line 273 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
getset |
Definition at line 254 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
get |
Definition at line 248 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
getset |
Definition at line 59 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
getset |
Definition at line 103 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
getset |
Definition at line 96 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
getprotected set |
Definition at line 224 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
get |
Definition at line 69 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.
|
getset |
Definition at line 203 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
getprotected set |
Definition at line 230 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
getprotected set |
Definition at line 109 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
get |
Can be used by status effects or conditionals to the speed of the item
Definition at line 278 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
get |
Definition at line 485 of file BarotraumaShared/SharedSource/Items/Components/ItemComponent.cs.
|
getset |
Definition at line 187 of file BarotraumaClient/ClientSource/Items/Components/ItemComponent.cs.