Skip to content
This repository was archived by the owner on Nov 14, 2025. It is now read-only.

Commit fbb5e7f

Browse files
committed
0.3.0
Arguments / Returns are typed
1 parent 376348b commit fbb5e7f

65 files changed

Lines changed: 7632 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/sf/library/Bass.hx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Generated by SFHaxe 0.3.0
2+
package sf.library;
3+
@:native("bass") extern class Bass {
4+
/**
5+
CLIENT
6+
Loads a sound channel from an URL.
7+
**/
8+
#if CLIENT @:native("loadURL") public static function loadURL(path:std.String, flags:std.String, callback:haxe.Constraints.Function):Void;#end
9+
/**
10+
CLIENT
11+
Loads a sound channel from a file.
12+
**/
13+
#if CLIENT @:native("loadFile") public static function loadFile(path:std.String, flags:std.String, callback:haxe.Constraints.Function):Void;#end
14+
/**
15+
CLIENT
16+
Returns the number of sounds left that can be created
17+
**/
18+
#if CLIENT @:native("soundsLeft") public static function soundsLeft():Float;#end
19+
}
20+

src/sf/library/Bit.hx

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
// Generated by SFHaxe 0.3.0
2+
package sf.library;
3+
@:native("bit") extern class Bit {
4+
/**
5+
SHARED
6+
Returns the left rotated value.
7+
**/
8+
@:native("rol") public static function rol(value:Float, shiftCount:Float):Float;
9+
/**
10+
SHARED
11+
Returns the arithmetically shifted value.
12+
**/
13+
@:native("arshift") public static function arshift(value:Float, shiftCount:Float):Float;
14+
/**
15+
SHARED
16+
Compresses a string
17+
**/
18+
@:native("compress") public static function compress(s:std.String):std.String;
19+
/**
20+
SHARED
21+
Returns the bitwise not of the value.
22+
**/
23+
@:native("bnot") public static function bnot(value:Float):Float;
24+
/**
25+
SHARED
26+
Returns the left shifted value.
27+
**/
28+
@:native("lshift") public static function lshift(value:Float, shiftCount:Float):Float;
29+
/**
30+
SHARED
31+
Creates a StringStream object
32+
**/
33+
@:native("stringstream") public static function stringstream(stream:std.String, i:Float, endian:std.String):sf.type.StringStream;
34+
/**
35+
SHARED
36+
Converts serialized string data to table
37+
**/
38+
@:native("stringToTable") public static function stringToTable(s:std.String):lua.Table<Dynamic,Dynamic>;
39+
/**
40+
SHARED
41+
Returns the bitwise OR of all values specified.
42+
**/
43+
@:native("bor") public static function bor(value1:Float, Extra:...Float):Float;
44+
/**
45+
SHARED
46+
Swaps the byte order.
47+
**/
48+
@:native("bswap") public static function bswap(value:Float):Float;
49+
/**
50+
SHARED
51+
Converts a table to string serializing data types as best as it can
52+
**/
53+
@:native("tableToString") public static function tableToString(t:lua.Table<Dynamic,Dynamic>):std.String;
54+
/**
55+
SHARED
56+
Returns the right shifted value.
57+
**/
58+
@:native("rshift") public static function rshift(value:Float, shiftCount:Float):Float;
59+
/**
60+
SHARED
61+
Returns the right rotated value.
62+
**/
63+
@:native("ror") public static function ror(value:Float, shiftCount:Float):Float;
64+
/**
65+
SHARED
66+
Returns the bitwise xor of all values specified.
67+
**/
68+
@:native("bxor") public static function bxor(value:Float, otherValues:...Float):Float;
69+
/**
70+
SHARED
71+
Normalizes the specified value and clamps it in the range of a signed 32bit integer.
72+
**/
73+
@:native("tobit") public static function tobit(value:Float):Float;
74+
/**
75+
SHARED
76+
Returns the hexadecimal representation of the number with the specified digits.
77+
**/
78+
@:native("tohex") public static function tohex(value:Float, ?digits:Null<Float>):std.String;
79+
/**
80+
SHARED
81+
Decompresses a string
82+
**/
83+
@:native("decompress") public static function decompress(s:std.String):std.String;
84+
/**
85+
SHARED
86+
Performs the bitwise "and" for all values specified.
87+
**/
88+
@:native("band") public static function band(value:Float, otherValues:...Float):Float;
89+
}
90+

0 commit comments

Comments
 (0)