mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-10-05 20:15:26 -04:00
21 lines
591 B
C#
21 lines
591 B
C#
using System;
|
|
|
|
namespace ClassicalSharp.Commands {
|
|
|
|
/// <summary> Represents a client side action that optionally accepts arguments. </summary>
|
|
public abstract class Command {
|
|
|
|
/// <summary> Full command name, note that the user does not
|
|
/// have to fully type this into chat. </summary>
|
|
public string Name { get; set; }
|
|
|
|
/// <summary> Provides help about the purpose and syntax of this
|
|
/// command. Can use colour codes. </summary>
|
|
public string[] Help { get; set; }
|
|
|
|
protected internal Game game;
|
|
|
|
public abstract void Execute( CommandReader reader );
|
|
}
|
|
}
|