18 lines
512 B
C++
18 lines
512 B
C++
|
/***
|
||
|
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
||
|
|
||
|
File: Commands.hpp
|
||
|
Date: 2021-6-10
|
||
|
Author: Reece
|
||
|
***/
|
||
|
#pragma once
|
||
|
|
||
|
#include <Aurora/Parse/Parse.hpp>
|
||
|
|
||
|
namespace Aurora::Console::Commands
|
||
|
{
|
||
|
using CommandCallback_cb = std::function<void(const Parse::ParsedObject &)>;
|
||
|
|
||
|
AUKN_SYM void AddCommand(const AuString &tag, const Parse::ParseObject &commandStructure, const CommandCallback_cb &callback);
|
||
|
AUKN_SYM bool DispatchCommand(const AuString &string);
|
||
|
}
|