From baf9dc5f1a7e06aa1dbf70ae851cd1f9b375e883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Boh=C3=A1=C4=8Dek?= Date: Sun, 26 Dec 2021 23:04:35 +0100 Subject: [PATCH] feat: add moved event --- .../Events/Entities/MovedEvent.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Core/NosSmooth.Game/Events/Entities/MovedEvent.cs diff --git a/Core/NosSmooth.Game/Events/Entities/MovedEvent.cs b/Core/NosSmooth.Game/Events/Entities/MovedEvent.cs new file mode 100644 index 0000000..a89c354 --- /dev/null +++ b/Core/NosSmooth.Game/Events/Entities/MovedEvent.cs @@ -0,0 +1,18 @@ +// +// MovedEvent.cs +// +// Copyright (c) František Boháček. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using NosSmooth.Game.Data.Entities; +using NosSmooth.Game.Data.Info; + +namespace NosSmooth.Game.Events.Entities; + +public record MovedEvent +( + IEntity Entity, + long EntityId, + Position? OldPosition, + Position NewPosition +) : IGameEvent; \ No newline at end of file -- 2.48.1