Example #1
0
    static int get_toPosition(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ArmyMove            obj = (ArmyMove)o;
            UnityEngine.Vector3 ret = obj.toPosition;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index toPosition on a nil value" : e.Message));
        }
    }
Example #2
0
    static int set_direction2(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ArmyMove obj  = (ArmyMove)o;
            float    arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.direction2 = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index direction2 on a nil value" : e.Message));
        }
    }
Example #3
0
    static int get_stat(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ArmyMove obj = (ArmyMove)o;
            short    ret = obj.stat;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index stat on a nil value" : e.Message));
        }
    }
Example #4
0
    static int set_invokeShow(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ArmyMove obj  = (ArmyMove)o;
            short    arg0 = (short)LuaDLL.luaL_checknumber(L, 2);
            obj.invokeShow = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index invokeShow on a nil value" : e.Message));
        }
    }
Example #5
0
    static int set_heroGameObject(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ArmyMove obj = (ArmyMove)o;
            UnityEngine.GameObject[] arg0 = ToLua.CheckObjectArray <UnityEngine.GameObject>(L, 2);
            obj.heroGameObject = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index heroGameObject on a nil value" : e.Message));
        }
    }
Example #6
0
    static int set_toPosition(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ArmyMove            obj  = (ArmyMove)o;
            UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
            obj.toPosition = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index toPosition on a nil value" : e.Message));
        }
    }