Barotrauma Server
Loading...
Searching...
No Matches
Barotrauma.ConditionallyEditable Class Referencesealed
Inheritance diagram for Barotrauma.ConditionallyEditable:
Barotrauma.Editable

Public Types

enum  ConditionType {
  AllowLinkingWifiToChat , IsSwappableItem , AllowRotating , Attachable ,
  HasBody , Pickable , OnlyByStatusEffectsAndNetwork , HasIntegratedButtons ,
  IsToggleableController , HasConnectionPanel , DeteriorateUnderStress
}
 

Public Member Functions

 ConditionallyEditable (ConditionType conditionType, bool onlyInEditors=true)
 
bool IsEditable (ISerializableEntity entity)
 
- Public Member Functions inherited from Barotrauma.Editable
 Editable (int maxLength=20)
 
 Editable (int minValue, int maxValue)
 
 Editable (float minValue, float maxValue, int decimals=1)
 

Additional Inherited Members

- Public Attributes inherited from Barotrauma.Editable
int MaxLength
 
int DecimalCount = 1
 
int MinValueInt = int.MinValue
 
int MaxValueInt = int.MaxValue
 
float MinValueFloat = float.MinValue
 
float MaxValueFloat = float.MaxValue
 
bool ForceShowPlusMinusButtons
 
float ValueStep
 
bool TransferToSwappedItem
 Should the value customized in the editor be applied to the new item swapped in place of this item. Used e.g. for transferring the auto operate properties from one turret to another installed on place of it.
 
string[] VectorComponentLabels
 Labels of the components of a vector property (defaults to x,y,z,w)
 
string FallBackTextTag
 If a translation can't be found for the property name, this tag is used instead.
 
bool ReadOnly
 Currently implemented only for int and bool fields. TODO: implement the remaining types (SerializableEntityEditor)
 

Member Enumeration Documentation

◆ ConditionType

Enumerator
AllowLinkingWifiToChat 
IsSwappableItem 
AllowRotating 
Attachable 
HasBody 
Pickable 
OnlyByStatusEffectsAndNetwork 
HasIntegratedButtons 
IsToggleableController 
HasConnectionPanel 
DeteriorateUnderStress 

Constructor & Destructor Documentation

◆ ConditionallyEditable()

Barotrauma.ConditionallyEditable.ConditionallyEditable ( ConditionType conditionType,
bool onlyInEditors = true )

Member Function Documentation

◆ IsEditable()

bool Barotrauma.ConditionallyEditable.IsEditable ( ISerializableEntity entity)

The documentation for this class was generated from the following file: