Skip to content

Commit

Permalink
Update castable reactor xml with visibility settings
Browse files Browse the repository at this point in the history
  • Loading branch information
baughj committed Dec 13, 2023
1 parent cea6b3c commit 7a29ad8
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Objects/CastableEffectsSound.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ public partial class CastableEffectsSound : HybrasylEntity<CastableEffectsSound>

public CastableEffectsSound()
{
_id = ((byte)(255));
_id = ((byte)(1));
}

[XmlAttribute]
[DefaultValue(typeof(byte), "255")]
[DefaultValue(typeof(byte), "1")]
public byte Id
{
get
Expand Down
60 changes: 60 additions & 0 deletions src/Objects/CastableReactor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ public partial class CastableReactor : HybrasylEntity<CastableReactor>
private int _expiration;
private string _uses;
private bool _blocking;
private bool _displayOwner;
private bool _displayGroup;
private string _displayStatus;
private string _displayCookie;
#endregion

public CastableReactor()
Expand All @@ -45,6 +49,8 @@ public CastableReactor()
_expiration = 0;
_uses = "1";
_blocking = false;
_displayOwner = false;
_displayGroup = false;
}

[XmlAttribute]
Expand Down Expand Up @@ -144,6 +150,60 @@ public bool Blocking
_blocking = value;
}
}

[XmlAttribute]
[DefaultValue(false)]
public bool DisplayOwner
{
get
{
return _displayOwner;
}
set
{
_displayOwner = value;
}
}

[XmlAttribute]
[DefaultValue(false)]
public bool DisplayGroup
{
get
{
return _displayGroup;
}
set
{
_displayGroup = value;
}
}

[XmlAttribute(DataType="token")]
public string DisplayStatus
{
get
{
return _displayStatus;
}
set
{
_displayStatus = value;
}
}

[XmlAttribute(DataType="token")]
public string DisplayCookie
{
get
{
return _displayCookie;
}
set
{
_displayCookie = value;
}
}
}
}
#pragma warning restore
4 changes: 4 additions & 0 deletions src/XSD/Castable.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@
<!-- This can be a formula -->
<xs:attribute name="Uses" default="1" type="xs:string" />
<xs:attribute name="Blocking" default="false" type="xs:boolean" />
<xs:attribute name="DisplayOwner" default="false" type="xs:boolean"/>
<xs:attribute name="DisplayGroup" default="false" type="xs:boolean"/>
<xs:attribute name="DisplayStatus" type="xs:token" use="optional"/>
<xs:attribute name="DisplayCookie" type="xs:token" use="optional"/>
</xs:complexType>

<!-- Effects type -->
Expand Down

0 comments on commit 7a29ad8

Please sign in to comment.