| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class UIImageSwitchSpriteWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(UIImageSwitchSprite), typeof(UnityEngine.MonoBehaviour));
- L.RegFunction("ChangeSprite", ChangeSprite);
- L.RegFunction("__eq", op_Equality);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.EndClass();
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ChangeSprite(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
- if (count == 2 && TypeChecker.CheckTypes<string>(L, 2))
- {
- UIImageSwitchSprite obj = (UIImageSwitchSprite)ToLua.CheckObject<UIImageSwitchSprite>(L, 1);
- string arg0 = ToLua.ToString(L, 2);
- obj.ChangeSprite(arg0);
- return 0;
- }
- else if (count == 2 && TypeChecker.CheckTypes<int>(L, 2))
- {
- UIImageSwitchSprite obj = (UIImageSwitchSprite)ToLua.CheckObject<UIImageSwitchSprite>(L, 1);
- int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
- obj.ChangeSprite(arg0);
- return 0;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to method: UIImageSwitchSprite.ChangeSprite");
- }
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int op_Equality(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
- UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
- bool o = arg0 == arg1;
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- }
|