AuroraRuntime/Include/Aurora/Console/Commands/Commands.hpp
2021-06-27 22:25:29 +01:00

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);
}