Initial commit
This commit is contained in:
commit
a583c17916
56 files changed
+11025
No files matched your search
@@ -0,0 +1,23 @@
|
||||
#include "echoion/api/Export.hpp"
|
||||
#include "echoion/core/Core.hpp"
|
||||
#include <memory>
|
||||
|
||||
namespace Echoion::Api {
|
||||
|
||||
CoreInterfacePtr CreateCore() {
|
||||
return std::make_shared<Core::Core>();
|
||||
}
|
||||
|
||||
void DestroyCore(ICoreInterface* core) {
|
||||
delete core;
|
||||
}
|
||||
|
||||
const char* GetApiVersion() {
|
||||
return VERSION_STRING;
|
||||
}
|
||||
|
||||
bool IsApiCompatible(uint32_t major, uint32_t minor) {
|
||||
return major == VERSION_MAJOR && minor <= VERSION_MINOR;
|
||||
}
|
||||
|
||||
} // namespace Echoion::Api
|
||||
Reference in new issue
Block a user