Skip to content

Commit

Permalink
Upgrade KEngine
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-kelly committed Nov 17, 2016
1 parent 8d25ff4 commit 65280c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,25 +243,7 @@ public IEnumerator Init()
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static public int ImportCSharpType(IntPtr l)
{
try
{
string cls;
Helper.checkType(l, 1, out cls);
Type t = LuaObject.FindType(cls);
if (t == null)
{
return Helper.error(l, "Can't find {0} to create", cls);
}

LuaClassObject co = new LuaClassObject(t);
LuaObject.pushObject(l,co);
Helper.pushValue(l, true);
return 2;
}
catch (Exception e)
{
return Helper.error(l, e);
}
return Helper.GetClass(l);
}
/// <summary>
/// same as SLua default import
Expand Down
2 changes: 1 addition & 1 deletion slua

0 comments on commit 65280c2

Please sign in to comment.