示例#1
0
 static int UpdateUIPos(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         WCG.OnHead obj = (WCG.OnHead)ToLua.CheckObject <WCG.OnHead>(L, 1);
         obj.UpdateUIPos();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#2
0
 static int SetBloodShow(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         WCG.OnHead obj  = (WCG.OnHead)ToLua.CheckObject <WCG.OnHead>(L, 1);
         bool       arg0 = LuaDLL.luaL_checkboolean(L, 2);
         obj.SetBloodShow(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#3
0
 static int SetGraphicChar(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         WCG.OnHead    obj  = (WCG.OnHead)ToLua.CheckObject <WCG.OnHead>(L, 1);
         WCG.RenderObj arg0 = (WCG.RenderObj)ToLua.CheckObject <WCG.RenderObj>(L, 2);
         obj.SetGraphicChar(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#4
0
 static int SetPopTxt(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         WCG.OnHead obj  = (WCG.OnHead)ToLua.CheckObject <WCG.OnHead>(L, 1);
         string     arg0 = ToLua.CheckString(L, 2);
         obj.SetPopTxt(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#5
0
 static int SetProTime(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         WCG.OnHead obj  = (WCG.OnHead)ToLua.CheckObject <WCG.OnHead>(L, 1);
         float      arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
         obj.SetProTime(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#6
0
    static int set_m_goFight(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            WCG.OnHead             obj  = (WCG.OnHead)o;
            UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 2, typeof(UnityEngine.GameObject));
            obj.m_goFight = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index m_goFight on a nil value"));
        }
    }
示例#7
0
    static int set_m_PopTxt(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            WCG.OnHead          obj  = (WCG.OnHead)o;
            UnityEngine.UI.Text arg0 = (UnityEngine.UI.Text)ToLua.CheckObject <UnityEngine.UI.Text>(L, 2);
            obj.m_PopTxt = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index m_PopTxt on a nil value"));
        }
    }
示例#8
0
    static int get_m_goFight(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            WCG.OnHead             obj = (WCG.OnHead)o;
            UnityEngine.GameObject ret = obj.m_goFight;
            ToLua.PushSealed(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index m_goFight on a nil value"));
        }
    }
示例#9
0
    static int get_m_ProgressSlider(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            WCG.OnHead            obj = (WCG.OnHead)o;
            UnityEngine.UI.Slider ret = obj.m_ProgressSlider;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index m_ProgressSlider on a nil value"));
        }
    }
示例#10
0
 static int SetNameColor(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 4);
         WCG.OnHead obj  = (WCG.OnHead)ToLua.CheckObject <WCG.OnHead>(L, 1);
         int        arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         int        arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
         int        arg2 = (int)LuaDLL.luaL_checknumber(L, 4);
         obj.SetNameColor(arg0, arg1, arg2);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }