Add chat callback (#265)

This commit is contained in:
Edo
2022-06-14 20:43:19 +02:00
committed by GitHub
parent 0a852c6431
commit 144ba7efd3
9 changed files with 181 additions and 32 deletions

View File

@ -0,0 +1,14 @@
#include <STDInclude.hpp>
namespace Scripting
{
Function::Function(const char* pos)
: pos_(pos)
{
}
const char* Function::getPos() const
{
return this->pos_;
}
}

View File

@ -0,0 +1,15 @@
#pragma once
namespace Scripting
{
class Function
{
public:
Function(const char* pos);
[[nodiscard]] const char* getPos() const;
private:
const char* pos_;
};
}