Fix TerminalObject

This commit is contained in:
apemanzilla 2018-03-29 17:24:52 -04:00
parent 808c1972a9
commit f745e01464
3 changed files with 5 additions and 4 deletions

View File

@ -4,9 +4,9 @@
"license": "MIT",
"tags": ["computercraft", "cc", "minecraft", "lua"],
"description": "Bindings for the Lua APIs of the ComputerCraft mod for Minecraft",
"version": "1.0.1",
"version": "1.0.2",
"classPath": "src",
"releasenote": "Adds missing HTTP api and globals (in ComputerCraft class)",
"releasenote": "Fixes missing @:luaDotMethod on TerminalObject",
"contributors": [
"apemanzilla"
]

View File

@ -28,11 +28,11 @@ extern class OS {
@:native("pullEvent") private static function _pullEvent(?type: String): Dynamic;
@:native("pullEventRaw") private static function _pullEventRaw(?type: String): Dynamic;
public static inline function pullEvent(?type: String): ArrayAccess<Dynamic> {
public static inline function pullEvent(?type: String): Table<Int, Dynamic> {
return cast TableTools.pack(_pullEvent(type));
}
public static inline function pullEventRaw(?type: String): ArrayAccess<Dynamic> {
public static inline function pullEventRaw(?type: String): Table<Int, Dynamic> {
return cast TableTools.pack(_pullEventRaw(type));
}
}

View File

@ -14,6 +14,7 @@ extern class TerminalSize {
public var height: Int;
}
@:luaDotMethod
extern class TerminalObject {
public function write(text: String): Void;
public function blit(text: String, colors: String, background: String): Void;