From a2fc6a5db4ec79001cbc8aa861d67ee90454b54a Mon Sep 17 00:00:00 2001 From: Timofey06 Date: Thu, 17 Aug 2023 10:53:35 +0300 Subject: [PATCH] StartSilasMaster --- DangerousD/Content/animations/SilasMove | 1 + .../GameObjects/LivingEntities/Monsters/SilasMaster.cs | 3 +-- DangerousD/GameCore/Graphics/GraphicsComponent.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 DangerousD/Content/animations/SilasMove diff --git a/DangerousD/Content/animations/SilasMove b/DangerousD/Content/animations/SilasMove new file mode 100644 index 0000000..b584c4a --- /dev/null +++ b/DangerousD/Content/animations/SilasMove @@ -0,0 +1 @@ +{"id":"SilasMove","textureName":"animation1","startSpriteRectangle":{"X":1,"Y":618,"Width":72,"Height":80},"frameSecond":[{"Item1":0,"Item2":30}],"textureFrameInterval":1,"framesCount":2,"isCycle":true,"offset":"0, 0"} diff --git a/DangerousD/GameCore/GameObjects/LivingEntities/Monsters/SilasMaster.cs b/DangerousD/GameCore/GameObjects/LivingEntities/Monsters/SilasMaster.cs index 656f5f8..72c8c2d 100644 --- a/DangerousD/GameCore/GameObjects/LivingEntities/Monsters/SilasMaster.cs +++ b/DangerousD/GameCore/GameObjects/LivingEntities/Monsters/SilasMaster.cs @@ -16,8 +16,7 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters { } - protected override GraphicsComponent GraphicsComponent => throw new NotImplementedException(); - + protected override GraphicsComponent GraphicsComponent { get; } = new GraphicsComponent(new List() { "SilasMove" }, "SilasMove"); public override void Attack() { throw new NotImplementedException(); diff --git a/DangerousD/GameCore/Graphics/GraphicsComponent.cs b/DangerousD/GameCore/Graphics/GraphicsComponent.cs index 849eae0..e4b2777 100644 --- a/DangerousD/GameCore/Graphics/GraphicsComponent.cs +++ b/DangerousD/GameCore/Graphics/GraphicsComponent.cs @@ -21,7 +21,7 @@ namespace DangerousD.GameCore.Graphics return currentAnimation; } } - + public string LastAnimation { get; set; } public string GetCurrentAnimation { get { return currentAnimation.Id; }