This repository has been archived by the owner on Jan 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
flxextern.monkey
64 lines (53 loc) · 1.64 KB
/
flxextern.monkey
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Strict
#If Not FLX_NATIVE_IMPLEMENTED
#If TARGET="android" Or TARGET="flash" Or TARGET="glfw" Or TARGET="html5" Or TARGET="ios" Or TARGET="psm" Or TARGET="winrt" Or TARGET="xna" Or TARGET="bmax"
Import "native/flixel.${TARGET}.${LANG}"
#FLX_NATIVE_IMPLEMENTED = True
#End
#End
#If TARGET = "html5" And FLX_WEBGL_ENABLED
Import "native/webgl/mojo.${TARGET}.gl.min.${LANG}"
#End
Extern
#If FLX_NATIVE_IMPLEMENTED
#If LANG="cpp"
Function FlxIsMobile:Bool() = "flixel::isMobile"
#ElseIf LANG="cs"
Function FlxIsMobile:Bool() = "flixel.functions.isMobile"
#Else
Function FlxIsMobile:Bool() = "flixel.isMobile"
#End
#If TARGET = "xna" Or TARGET = "psm"
Function FlxOpenURL:Void(url:String) = "flixel.functions.openURL"
#End
#End
#If FLX_SOUND_EXTENSION = "unknown"
#If Not FLX_NATIVE_IMPLEMENTED
#Error "Native file for detection extension of sound files not found"
#End
#If LANG="cpp"
Function FlxGetValidSoundExt:String() = "flixel::getValidSoundExt"
#ElseIf LANG="cs"
Function FlxGetValidSoundExt:String() = "flixel.functions.getValidSoundExt"
#Else
Function FlxGetValidSoundExt:String() = "flixel.getValidSoundExt"
#End
#End
#If FLX_MUSIC_EXTENSION = "unknown"
#If Not FLX_NATIVE_IMPLEMENTED
#Error "Native file for detection extension of music files not found"
#End
#If LANG="cpp"
Function FlxGetValidMusicExt:String() = "flixel::getValidMusicExt"
#ElseIf LANG="cs"
Function FlxGetValidMusicExt:String() = "flixel.functions.getValidMusicExt"
#Else
Function FlxGetValidMusicExt:String() = "flixel.getValidMusicExt"
#End
#End
Public
#If Not FLX_NATIVE_IMPLEMENTED
Function FlxIsMobile:Bool()
Return False
End Function
#End