forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
22
Kha/Backends/Kinc-hxcpp/khacpp/test/native/NativeGen.hx
Normal file
22
Kha/Backends/Kinc-hxcpp/khacpp/test/native/NativeGen.hx
Normal file
@ -0,0 +1,22 @@
|
||||
|
||||
@:nativeGen
|
||||
@:structAccess
|
||||
class NativeGen
|
||||
{
|
||||
public var x:Float;
|
||||
public static var y:Int;
|
||||
public function getValue():Float return x;
|
||||
|
||||
public static function someNativeFunction()
|
||||
{
|
||||
trace("Hi!");
|
||||
}
|
||||
}
|
||||
|
||||
@:native("cpp::Struct<NativeGen>")
|
||||
@:include("NativeGen.h")
|
||||
extern class NativeGenStruct extends NativeGen
|
||||
{
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user