static int ClearImage(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1) { Nova.SpriteController obj = (Nova.SpriteController)ToLua.CheckObject <Nova.SpriteController>(L, 1); obj.ClearImage(); return(0); } else if (count == 2) { Nova.SpriteController obj = (Nova.SpriteController)ToLua.CheckObject <Nova.SpriteController>(L, 1); bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.ClearImage(arg0); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: Nova.SpriteController.ClearImage")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetRestoreData(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); Nova.SpriteController obj = (Nova.SpriteController)ToLua.CheckObject <Nova.SpriteController>(L, 1); Nova.IRestoreData o = obj.GetRestoreData(); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Restore(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); Nova.SpriteController obj = (Nova.SpriteController)ToLua.CheckObject <Nova.SpriteController>(L, 1); Nova.IRestoreData arg0 = (Nova.IRestoreData)ToLua.CheckObject <Nova.IRestoreData>(L, 2); obj.Restore(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_layer(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.SpriteController obj = (Nova.SpriteController)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.layer = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index layer on a nil value")); } }
static int set_material(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.SpriteController obj = (Nova.SpriteController)o; UnityEngine.Material arg0 = (UnityEngine.Material)ToLua.CheckObject <UnityEngine.Material>(L, 2); obj.material = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index material on a nil value")); } }
static int set_color(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.SpriteController obj = (Nova.SpriteController)o; UnityEngine.Color arg0 = ToLua.ToColor(L, 2); obj.color = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index color on a nil value")); } }
static int set_sprite(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.SpriteController obj = (Nova.SpriteController)o; UnityEngine.Sprite arg0 = (UnityEngine.Sprite)ToLua.CheckObject(L, 2, typeof(UnityEngine.Sprite)); obj.sprite = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index sprite on a nil value")); } }
static int set_imageFolder(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.SpriteController obj = (Nova.SpriteController)o; string arg0 = ToLua.CheckString(L, 2); obj.imageFolder = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index imageFolder on a nil value")); } }
static int get_restorableObjectName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.SpriteController obj = (Nova.SpriteController)o; string ret = obj.restorableObjectName; LuaDLL.lua_pushstring(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index restorableObjectName on a nil value")); } }
static int get_layer(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.SpriteController obj = (Nova.SpriteController)o; int ret = obj.layer; LuaDLL.lua_pushinteger(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index layer on a nil value")); } }
static int get_sharedMaterial(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.SpriteController obj = (Nova.SpriteController)o; UnityEngine.Material ret = obj.sharedMaterial; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index sharedMaterial on a nil value")); } }