Skip to content

Commit

Permalink
Sort commands
Browse files Browse the repository at this point in the history
  • Loading branch information
cooolbros committed Nov 12, 2024
1 parent 28957b1 commit 5b11130
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions src/HUDAnimations/HUDAnimationsSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -211,35 +211,36 @@ bool ReadBool()
Duration = ReadNumber(),
Conditional = ReadConditional()
},
"runevent" => new RunEvent
"firecommand" => new FireCommand
{
Event = ReadString(),
Delay = ReadNumber(),
Command = ReadString(),
Conditional = ReadConditional()
},
"stopevent" => new StopEvent
"playsound" => new PlaySound
{
Event = ReadString(),
Delay = ReadNumber(),
Sound = ReadString(),
Conditional = ReadConditional()
},
"setvisible" => new SetVisible
"runevent" => new RunEvent
{
Element = ReadString(),
Visible = ReadBool(),
Event = ReadString(),
Delay = ReadNumber(),
Conditional = ReadConditional()
},
"firecommand" => new FireCommand
"runeventchild" => new RunEventChild
{
Element = ReadString(),
Event = ReadString(),
Delay = ReadNumber(),
Command = ReadString(),
Conditional = ReadConditional()
},
"runeventchild" => new RunEventChild
"setfont" => new SetFont
{
Element = ReadString(),
Event = ReadString(),
Property = ReadString(),
Font = ReadString(),
Delay = ReadNumber(),
Conditional = ReadConditional()
},
Expand All @@ -250,48 +251,47 @@ bool ReadBool()
Delay = ReadNumber(),
Conditional = ReadConditional()
},
"playsound" => new PlaySound
"setstring" => new SetString
{
Element = ReadString(),
Property = ReadString(),
String = ReadString(),
Delay = ReadNumber(),
Sound = ReadString(),
Conditional = ReadConditional()
Conditional = ReadConditional(),
},
"stoppanelanimations" => new StopPanelAnimations
"settexture" => new SetTexture
{
Element = ReadString(),
Property = ReadString(),
Texture = ReadString(),
Delay = ReadNumber(),
Conditional = ReadConditional()
Conditional = ReadConditional(),
},
"stopanimation" => new StopAnimation
"setvisible" => new SetVisible
{
Element = ReadString(),
Property = ReadString(),
Visible = ReadBool(),
Delay = ReadNumber(),
Conditional = ReadConditional()
},
"setfont" => new SetFont
"stopanimation" => new StopAnimation
{
Element = ReadString(),
Property = ReadString(),
Font = ReadString(),
Delay = ReadNumber(),
Conditional = ReadConditional()
},
"settexture" => new SetTexture
"stopevent" => new StopEvent
{
Element = ReadString(),
Property = ReadString(),
Texture = ReadString(),
Event = ReadString(),
Delay = ReadNumber(),
Conditional = ReadConditional(),
Conditional = ReadConditional()
},
"setstring" => new SetString
"stoppanelanimations" => new StopPanelAnimations
{
Element = ReadString(),
Property = ReadString(),
String = ReadString(),
Delay = ReadNumber(),
Conditional = ReadConditional(),
Conditional = ReadConditional()
},
string str => throw new VDFSyntaxException(
new VDFToken { Type = VDFTokenType.String, Value = str },
Expand Down

0 comments on commit 5b11130

Please sign in to comment.