fixed return of getMethods
This commit is contained in:
parent
61ee283113
commit
bf80b391df
@ -2,13 +2,12 @@ package cc;
|
||||
|
||||
import lua.TableTools;
|
||||
import lua.Table;
|
||||
import haxe.Constraints;
|
||||
import haxe.extern.Rest;
|
||||
|
||||
@:native("peripheral")
|
||||
extern class Peripheral {
|
||||
public static function isPresent(name:String):Bool;
|
||||
public static function getMethods(name:String):Table<String, Function>;
|
||||
public static function getMethods(name:String):Table<Int,String>;
|
||||
public static function call<T>(name:String, method:String, args:Rest<Dynamic>):T;
|
||||
public static function wrap<T>(name:String):T;
|
||||
public static function find<T>(type:String, ?filter:(String, T) -> Bool):Table<Int, T>;
|
||||
|
Loading…
Reference in New Issue
Block a user