|
@@ -341,6 +341,16 @@ class Boot {
|
|
|
return untyped __lua__("{}");
|
|
|
}
|
|
|
|
|
|
+ /*
|
|
|
+ Create an empty table for vectors
|
|
|
+ */
|
|
|
+ // TODO: provide a simpler anonymous table generator syntax in genlua
|
|
|
+ public static function createVectorTable<K,V>(length:Int) : Table<K,V> {
|
|
|
+ var table : Table<K,V> = untyped __lua__("{}");
|
|
|
+ untyped table.length = length;
|
|
|
+ return table;
|
|
|
+ }
|
|
|
+
|
|
|
/*
|
|
|
Returns a shell escaped version of "cmd" along with any args
|
|
|
*/
|