- Renamed a bunch of ObjectProperty-related stuff (ObjectProperty -> SerializableProperty, IPropertyObject -> ISerializableEntity, the "SerializableProperty" attribute -> Serialize).
- Rectangle serialization. - Option to restrict numeric properties to a range of values. - WIP generic ISerializableEntity editor.
This commit is contained in:
@@ -16,21 +16,21 @@ namespace Barotrauma.Items.Components
|
||||
|
||||
bool hasPower;
|
||||
|
||||
[Editable, SerializableProperty(false, true)]
|
||||
[Editable, Serialize(false, true)]
|
||||
public bool RequireWaterDetectors
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[Editable, SerializableProperty(true, true)]
|
||||
[Editable, Serialize(true, true)]
|
||||
public bool RequireOxygenDetectors
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[Editable, SerializableProperty(false, true)]
|
||||
[Editable, Serialize(false, true)]
|
||||
public bool ShowHullIntegrity
|
||||
{
|
||||
get;
|
||||
|
||||
Reference in New Issue
Block a user