-
Notifications
You must be signed in to change notification settings - Fork 1
Release 0.10.0 #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release 0.10.0 #16
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,7 +17,7 @@ public interface IGameCommandBase {} | |
| public interface IGameCommand<in TGameLogic> : IGameCommandBase where TGameLogic : class | ||
| { | ||
| /// <summary> | ||
| /// Executes the command logic | ||
| /// Executes the command logic defined by the implemention of this interface | ||
| /// </summary> | ||
| void Execute(TGameLogic gameLogic); | ||
| } | ||
|
|
@@ -29,10 +29,13 @@ public interface IGameCommand<in TGameLogic> : IGameCommandBase where TGameLogic | |
| public interface ICommandService<out TGameLogic> where TGameLogic : class | ||
| { | ||
| /// <summary> | ||
| /// Executes the given <paramref name="command"/>. | ||
| /// The command execution is done atomically | ||
| /// Executes the given <paramref name="command"/> | ||
| /// </summary> | ||
| void ExecuteCommand<TCommand>(TCommand command) where TCommand : struct, IGameCommand<TGameLogic>; | ||
| /// <remarks> | ||
| /// IMPORTANT: Defines the <paramref name="command"/> as a class object if logic execution is asynchronous. | ||
| /// Define as a struct if togic logic execution is non waitable. | ||
| /// </remarks> | ||
|
Comment on lines
+32
to
+37
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The comment in the - /// Executes the given <paramref name="command"/>
- /// <remarks>
- /// IMPORTANT: Defines the <paramref name="command"/> as a class object if logic execution is asynchronous.
- /// Define as a struct if togic logic execution is non waitable.
- /// </remarks>
+ /// Executes the given <paramref name="command"/>. |
||
| void ExecuteCommand<TCommand>(TCommand command) where TCommand : IGameCommand<TGameLogic>; | ||
| } | ||
|
|
||
| /// <inheritdoc /> | ||
|
|
@@ -46,7 +49,7 @@ public CommandService(TGameLogic gameLogic) | |
| } | ||
|
|
||
| /// <inheritdoc /> | ||
| public void ExecuteCommand<TCommand>(TCommand command) where TCommand : struct, IGameCommand<TGameLogic> | ||
| public void ExecuteCommand<TCommand>(TCommand command) where TCommand : IGameCommand<TGameLogic> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The type constraint on the - public void ExecuteCommand<TCommand>(TCommand command) where TCommand : IGameCommand<TGameLogic>
+ public void ExecuteCommand<TCommand>(TCommand command) where TCommand : struct, IGameCommand<TGameLogic> |
||
| { | ||
| command.Execute(_gameLogic); | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment for the
Executemethod in theIGameCommandinterface has a typo. It should be "implementation" instead of "implemention".