- 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:
@@ -35,14 +35,14 @@ namespace Barotrauma.Items.Components
|
||||
|
||||
private Vector2 armorSector;
|
||||
|
||||
[SerializableProperty(0.0f, false)]
|
||||
[Serialize(0.0f, false)]
|
||||
public float ArmorValue
|
||||
{
|
||||
get { return armorValue; }
|
||||
set { armorValue = MathHelper.Clamp(value, 0.0f, 100.0f); }
|
||||
}
|
||||
|
||||
[SerializableProperty("0.0,360.0", false)]
|
||||
[Serialize("0.0,360.0", false)]
|
||||
public Vector2 ArmorSector
|
||||
{
|
||||
get { return armorSector; }
|
||||
|
||||
Reference in New Issue
Block a user