From 7b60a07039f8191d326234b23e8cfc9ddb46ae73 Mon Sep 17 00:00:00 2001 From: Mikhail Mitrofanov Date: Sat, 11 Jan 2025 15:55:46 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BA=D0=BE=D0=BD=D1=86=D0=B5=D0=BF=D1=82=20?= =?UTF-8?q?=D0=B8=20=D0=B8=D0=BD=D1=82=D0=B5=D1=80=D1=84=D0=B5=D0=B9=D1=81?= =?UTF-8?q?=D0=B0=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mROA/Class1.cs | 5 ----- mROA/ICommandExecution.cs | 11 +++++++++++ mROA/IExecuteModule.cs | 6 ++++++ mROA/IInputModule.cs | 7 +++++++ mROA/IInteractionModule.cs | 6 ++++++ 5 files changed, 30 insertions(+), 5 deletions(-) delete mode 100644 mROA/Class1.cs create mode 100644 mROA/ICommandExecution.cs create mode 100644 mROA/IExecuteModule.cs create mode 100644 mROA/IInputModule.cs create mode 100644 mROA/IInteractionModule.cs diff --git a/mROA/Class1.cs b/mROA/Class1.cs deleted file mode 100644 index 3319e4b..0000000 --- a/mROA/Class1.cs +++ /dev/null @@ -1,5 +0,0 @@ -namespace mROA; - -public class Class1 -{ -} \ No newline at end of file diff --git a/mROA/ICommandExecution.cs b/mROA/ICommandExecution.cs new file mode 100644 index 0000000..6b626e1 --- /dev/null +++ b/mROA/ICommandExecution.cs @@ -0,0 +1,11 @@ +namespace mROA; + +public interface ICommandExecution +{ + int ExecutionId { get; set; } + + int ClientId { get; set; } + int CommandId { get; set; } + + void Cancel(); +} \ No newline at end of file diff --git a/mROA/IExecuteModule.cs b/mROA/IExecuteModule.cs new file mode 100644 index 0000000..98f483f --- /dev/null +++ b/mROA/IExecuteModule.cs @@ -0,0 +1,6 @@ +namespace mROA; + +public interface IExecuteModule +{ + void Execute(int objectId, int commandId, object parameter); +} \ No newline at end of file diff --git a/mROA/IInputModule.cs b/mROA/IInputModule.cs new file mode 100644 index 0000000..b6626fd --- /dev/null +++ b/mROA/IInputModule.cs @@ -0,0 +1,7 @@ +namespace mROA; + +public interface IInputModule +{ + void AddIncomingRequestHandler(Action handler); + void SendResponse(ICommandExecution call, object response); +} \ No newline at end of file diff --git a/mROA/IInteractionModule.cs b/mROA/IInteractionModule.cs new file mode 100644 index 0000000..ad2c005 --- /dev/null +++ b/mROA/IInteractionModule.cs @@ -0,0 +1,6 @@ +namespace mROA; + +public interface IInteractionModule +{ + void SendTo(int clientId, byte[] message); +} \ No newline at end of file