- 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:
@@ -14,14 +14,14 @@ namespace Barotrauma.Items.Components
|
||||
|
||||
private int channel;
|
||||
|
||||
[SerializableProperty(20000.0f, false)]
|
||||
[Serialize(20000.0f, false)]
|
||||
public float Range
|
||||
{
|
||||
get { return range; }
|
||||
set { range = Math.Max(value, 0.0f); }
|
||||
}
|
||||
|
||||
[InGameEditable, SerializableProperty(1, true)]
|
||||
[InGameEditable, Serialize(1, true)]
|
||||
public int Channel
|
||||
{
|
||||
get { return channel; }
|
||||
@@ -31,7 +31,7 @@ namespace Barotrauma.Items.Components
|
||||
}
|
||||
}
|
||||
|
||||
[Editable, SerializableProperty(false, false)]
|
||||
[Editable, Serialize(false, false)]
|
||||
public bool LinkToChat
|
||||
{
|
||||
get;
|
||||
|
||||
Reference in New Issue
Block a user