public static int get_m_actor(IntPtr l)
    {
        int result;

        try
        {
            BattleMapCell battleMapCell = (BattleMapCell)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, battleMapCell.m_actor);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            BattleMapCell o = new BattleMapCell();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_m_terrain(IntPtr l)
    {
        int result;

        try
        {
            BattleMapCell         battleMapCell = (BattleMapCell)LuaObject.checkSelf(l);
            ConfigDataTerrainInfo terrain;
            LuaObject.checkType <ConfigDataTerrainInfo>(l, 2, out terrain);
            battleMapCell.m_terrain = terrain;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_m_region(IntPtr l)
    {
        int result;

        try
        {
            BattleMapCell battleMapCell = (BattleMapCell)LuaObject.checkSelf(l);
            int           region;
            LuaObject.checkType(l, 2, out region);
            battleMapCell.m_region = region;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_m_actor(IntPtr l)
    {
        int result;

        try
        {
            BattleMapCell battleMapCell = (BattleMapCell)LuaObject.checkSelf(l);
            BattleActor   actor;
            LuaObject.checkType <BattleActor>(l, 2, out actor);
            battleMapCell.m_actor = actor;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Beispiel #6
0
    public static int GetCell(IntPtr l)
    {
        int result;

        try
        {
            BattleMap    battleMap = (BattleMap)LuaObject.checkSelf(l);
            GridPosition p;
            LuaObject.checkValueType <GridPosition>(l, 2, out p);
            BattleMapCell cell = battleMap.m_luaExportHelper.GetCell(p);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, cell);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }