Skip to content

Commit

Permalink
fix: fix include path
Browse files Browse the repository at this point in the history
  • Loading branch information
engsr6982 authored Jan 17, 2025
1 parent 44ae09d commit 14b3763
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/api/level/LevelAPI.h
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
#pragma once
#include "endstone/level/Level.h"
#include "endstone/level/level.h"
#include "utils/Defines.h"
#include "utils/Using.h"


namespace jse {


class LevelAPI : public ScriptClass {
endstone::Level* mLevel;

public:
explicit LevelAPI(endstone::Level* Level) : ScriptClass(ScriptClass::ConstructFromCpp<LevelAPI>{}), mLevel(Level) {}

static Local<Object> newLevelAPI(endstone::Level* Level) { return (new LevelAPI(Level))->getScriptObject(); }

endstone::Level* get() { return mLevel; }

public:
Expand All @@ -22,6 +25,10 @@ class LevelAPI : public ScriptClass {
METHODS(setTime);
METHODS(getDimensions);
METHODS(getDimension);

public:
static ClassDefine<LevelAPI> builder;
};


} // namespace jse

0 comments on commit 14b3763

Please sign in to comment.