fixed return of getMethods

This commit is contained in:
Djeeberjr 2024-04-18 23:09:58 +02:00
parent 61ee283113
commit bf80b391df

View File

@ -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>;