Skip to content

Commit

Permalink
tick is int not float
Browse files Browse the repository at this point in the history
  • Loading branch information
baughj committed Jul 31, 2023
1 parent 8db420a commit 347aeef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/Hybrasyl.Xml.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<TargetFramework>net7.0</TargetFramework>
<AssemblyName>Hybrasyl.Xml</AssemblyName>
<RootNamespace>Hybrasyl.Xml</RootNamespace>
<PackageVersion>0.9.3.14</PackageVersion>
<Version>0.9.3.14</Version>
<PackageVersion>0.9.3.15</PackageVersion>
<Version>0.9.3.15</Version>
<BuildDocFx Condition="'$(Configuration)'=='Debug'">false</BuildDocFx>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Authors>ERISCO LLC</Authors>
Expand Down
8 changes: 4 additions & 4 deletions src/Objects/AddStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ public partial class AddStatus : HybrasylEntity<AddStatus>
#region Private fields
private int _duration;
private float _intensity;
private float _tick;
private int _tick;
private string _value;
#endregion

public AddStatus()
{
_duration = 0;
_intensity = ((float)(1F));
_tick = ((float)(1F));
_tick = 0;
}

[XmlAttribute]
Expand Down Expand Up @@ -69,8 +69,8 @@ public float Intensity
}

[XmlAttribute]
[DefaultValue(typeof(float), "1")]
public float Tick
[DefaultValue(0)]
public int Tick
{
get
{
Expand Down
2 changes: 1 addition & 1 deletion src/XSD/Common.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@
<xs:extension base="hyb:String8">
<xs:attribute name="Duration" use="optional" default="0" type="xs:int" />
<xs:attribute name="Intensity" use="optional" default="1.0" type="xs:float" />
<xs:attribute name="Speed" default="1.0" type="xs:float" />
<xs:attribute name="Tick" default="0" type="xs:int" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
Expand Down

0 comments on commit 347aeef

Please sign in to comment.