Fix TerminalObject
This commit is contained in:
parent
808c1972a9
commit
f745e01464
@ -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"
|
||||
]
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user