turtle init stuff

This commit is contained in:
2022-04-11 01:00:23 +02:00
parent 943391dddc
commit 8339c69ecc
3 changed files with 16 additions and 2 deletions

View File

@@ -4,9 +4,16 @@ import kernel.turtle.Types;
using tink.CoreApi;
typedef TurtleSlot = Int;
class Turtle {
public static var instance:Turtle;
@:allow(kernel.Init)
private function new() {
if (!Turtle.isTurtle()){
Log.warn("Tried to initialize Turtle, but it is not available.");
}
}
public static function isTurtle():Bool {
return true; // TODO: Implement
}

View File

@@ -22,3 +22,5 @@ typedef ItemInspect = {
public var damage:Int;
public var count:Int;
}
typedef TurtleSlot = Int;