- 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:
@@ -47,21 +47,21 @@ namespace Barotrauma.Items.Components
|
||||
set { dockingDir = value; }
|
||||
}
|
||||
|
||||
[SerializableProperty("32.0,32.0", false)]
|
||||
[Serialize("32.0,32.0", false)]
|
||||
public Vector2 DistanceTolerance
|
||||
{
|
||||
get { return distanceTolerance; }
|
||||
set { distanceTolerance = value; }
|
||||
}
|
||||
|
||||
[SerializableProperty(32.0f, false)]
|
||||
[Serialize(32.0f, false)]
|
||||
public float DockedDistance
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[SerializableProperty(true, false)]
|
||||
[Serialize(true, false)]
|
||||
public bool IsHorizontal
|
||||
{
|
||||
get;
|
||||
|
||||
Reference in New Issue
Block a user