Ejemplo n.º 1
0
 static int set_instance(IntPtr L)
 {
     try
     {
         FootMan arg0 = (FootMan)ToLua.CheckObject <FootMan>(L, 2);
         FootMan.instance = arg0;
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Ejemplo n.º 2
0
 static int Instance(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 0);
         FootMan o = FootMan.Instance();
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Ejemplo n.º 3
0
    static int get_Dir(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FootMan obj = (FootMan)o;
            UnityEngine.Quaternion ret = obj.Dir;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Dir on a nil value"));
        }
    }
Ejemplo n.º 4
0
    static int get_m_vfCharcter(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FootMan     obj = (FootMan)o;
            VFCharacter ret = obj.m_vfCharcter;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index m_vfCharcter on a nil value"));
        }
    }
Ejemplo n.º 5
0
    static int set_Speed(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FootMan obj  = (FootMan)o;
            float   arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.Speed = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Speed on a nil value"));
        }
    }
Ejemplo n.º 6
0
    static int set_Dir(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FootMan obj = (FootMan)o;
            UnityEngine.Quaternion arg0 = ToLua.ToQuaternion(L, 2);
            obj.Dir = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Dir on a nil value"));
        }
    }
Ejemplo n.º 7
0
    static int set_m_vfCharcter(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FootMan     obj  = (FootMan)o;
            VFCharacter arg0 = (VFCharacter)ToLua.CheckObject <VFCharacter>(L, 2);
            obj.m_vfCharcter = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index m_vfCharcter on a nil value"));
        }
    }
Ejemplo n.º 8
0
    static int get_Speed(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FootMan obj = (FootMan)o;
            float   ret = obj.Speed;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Speed on a nil value"));
        }
    }
Ejemplo n.º 9
0
 FootMan()
 {
     instance = this;
 }