Client LuaCsForBarotrauma
ConditionallyEditable Class Reference
Inheritance diagram for ConditionallyEditable:
Editable

Public Types

enum class  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 Editable
 Editable ()
 
 Editable (int minValue, int maxValue)
 
 Editable (float minValue, float maxValue, int decimals=1)
 

Additional Inherited Members

- Public Attributes inherited from Editable
int MaxLength = -1
 Maximum length of the value if the value is a string. Only has an effect is larger than 0. More...
 
int DecimalCount = 1
 
int MinValueInt = int.MinValue
 
float MinValueFloat = float.MinValue
 
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. More...
 
string[] VectorComponentLabels
 Labels of the components of a vector property (defaults to x,y,z,w) More...
 
string FallBackTextTag
 If a translation can't be found for the property name, this tag is used instead More...
 
bool ReadOnly
 Currently implemented only for int and bool fields. TODO: implement the remaining types (SerializableEntityEditor) More...
 

Detailed Description

Definition at line 8 of file ConditionallyEditable.cs.

Member Enumeration Documentation

◆ ConditionType

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

Definition at line 19 of file ConditionallyEditable.cs.

Constructor & Destructor Documentation

◆ ConditionallyEditable()

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

Definition at line 10 of file ConditionallyEditable.cs.

Member Function Documentation

◆ IsEditable()

bool ConditionallyEditable.IsEditable ( ISerializableEntity  entity)

Definition at line 36 of file ConditionallyEditable.cs.