Skip to content

Commit 50b8a06

Browse files
committed
Add new commands, descriptions, and refactor project structure
1 parent f80b4b3 commit 50b8a06

39 files changed

Lines changed: 365 additions & 84 deletions

Assets/CatCode/Commands/Scripts.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/CatCode/Commands/Scripts/Base.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/CatCode/Commands/Command.cs renamed to Assets/CatCode/Commands/Scripts/Base/Command.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
namespace CatCode.Commands
44
{
5+
/// <summary>
6+
/// An abstract command that implements the core logic for execution and stopping, as well as event invocation.
7+
/// Used as a base class for creating specific commands.
8+
/// </summary>
9+
/// <summary xml:lang="ru">
10+
/// Абстрактная команда, реализующая основную логику запуска и остановки, а также вызов событий.
11+
/// Используется как базовый класс для создания конкретных команд.
12+
/// </summary>
513
public abstract class Command : ICommand
614
{
715
private CommandState _state;
File renamed without changes.
File renamed without changes.
File renamed without changes.

Assets/CatCode/Commands/ICommand.cs renamed to Assets/CatCode/Commands/Scripts/Base/ICommand.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@
22

33
namespace CatCode.Commands
44
{
5+
/// <summary>
6+
/// Interface for all commands.
7+
/// </summary>
8+
/// <summary xml:lang="ru">
9+
/// Èíòåðôåéñ äëÿ âñåõ êîìàíä.
10+
/// </summary>
511
public interface ICommand
612
{
713
CommandState State { get; }
8-
14+
915
bool IsFinished { get; }
1016

1117
event Action Started;
File renamed without changes.
File renamed without changes.

Assets/CatCode/Commands/CatCode.Commands.asmdef.meta renamed to Assets/CatCode/Commands/Scripts/CatCode.Commands.asmdef.meta

File renamed without changes.

0 commit comments

Comments
 (0)