forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
@ -0,0 +1,44 @@
|
||||
package impl;
|
||||
|
||||
import api.HaxeObject;
|
||||
|
||||
@:keep
|
||||
class HaxeImpl implements HaxeObject
|
||||
{
|
||||
var parentName:String;
|
||||
var name:String;
|
||||
var haxeObject:HaxeObject;
|
||||
|
||||
public function new(?inParent:HaxeImpl)
|
||||
{
|
||||
haxeObject = null;
|
||||
parentName = inParent==null ? "" : inParent.name;
|
||||
if (haxeObject==null)
|
||||
haxeObject = this;
|
||||
}
|
||||
|
||||
public function getName( ):cpp.StdString
|
||||
{
|
||||
return cpp.StdString.ofString(name);
|
||||
}
|
||||
|
||||
@:unreflective
|
||||
public function setName( inName:cpp.StdStringRef ) : Void
|
||||
{
|
||||
name = inName.toString();
|
||||
}
|
||||
|
||||
public function createChild() : HaxeObject
|
||||
{
|
||||
var child = new HaxeImpl(this);
|
||||
return child;
|
||||
}
|
||||
|
||||
public function printInt(x:Int):Void
|
||||
{
|
||||
Sys.println( Std.string(x) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user