-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from penev92/spriteSequenceSupportFull
Add sprite sequence support
- Loading branch information
Showing
22 changed files
with
868 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
server/Oraide.Core/Entities/MiniYaml/SpriteSequenceDefinition.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
namespace Oraide.Core.Entities.MiniYaml | ||
{ | ||
public readonly struct SpriteSequenceDefinition | ||
{ | ||
public readonly string Name; | ||
|
||
public readonly string ImageName; | ||
|
||
public readonly string FileName; | ||
|
||
public readonly MemberLocation Location; | ||
|
||
public SpriteSequenceDefinition(string name, string imageName, string fileName, MemberLocation location) | ||
{ | ||
Name = name; | ||
ImageName = imageName; | ||
FileName = fileName; | ||
Location = location; | ||
} | ||
|
||
public override string ToString() => $"Sequence {Name}"; | ||
|
||
public string ToMarkdownInfoString() => "```csharp\n" + | ||
$"Image \"{ImageName}\"\n" + | ||
$"Sequence \"{Name}\"\n" + | ||
$"File name \"{FileName}\"\n" + | ||
"```"; | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
server/Oraide.Core/Entities/MiniYaml/SpriteSequenceImageDefinition.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
namespace Oraide.Core.Entities.MiniYaml | ||
{ | ||
public readonly struct SpriteSequenceImageDefinition | ||
{ | ||
public readonly string Name; | ||
|
||
public readonly MemberLocation Location; | ||
|
||
public readonly SpriteSequenceDefinition[] Sequences; | ||
|
||
public SpriteSequenceImageDefinition(string name, MemberLocation location, SpriteSequenceDefinition[] sequences) | ||
{ | ||
Name = name; | ||
Location = location; | ||
Sequences = sequences; | ||
} | ||
|
||
public override string ToString() => $"Image {Name}"; | ||
|
||
public string ToMarkdownInfoString() => "```csharp\n" + | ||
$"Image \"{Name}\"" + | ||
"\n```"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.