Untitled

 avatar
unknown
plain_text
3 years ago
946 B
2
Indexable
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class DebugCommandBase
{
    private string _commandId;
    private string _commandDescription;
    private string _CommandFormat;

    public string commandId { get { return _commandId; } }
    public string commandDescription { get { return _commandDescription; } }
    public string commandFormat { get { return _CommandFormat; } }

    public DebugCommandBase(string id, string description, string format)
    {
        _commandId = id;
        _commandDescription = description;
        _CommandFormat = format;
    }
}

public class DebugCommand : DebugCommandBase
{
    private Action command; // this action is an error

    public DebugCommand(string id, string description, string format, Action command) : base (id, description, format) // and this action in there as well
    {
        this.command = command;
    }
}