Ejemplo n.º 1
0
    public static int ClearInitedData(IntPtr l)
    {
        int result;

        try
        {
            DataSectionHeroPhantom dataSectionHeroPhantom = (DataSectionHeroPhantom)LuaObject.checkSelf(l);
            dataSectionHeroPhantom.ClearInitedData();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 2
0
    public static int get_PhantomCollections(IntPtr l)
    {
        int result;

        try
        {
            DataSectionHeroPhantom dataSectionHeroPhantom = (DataSectionHeroPhantom)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, dataSectionHeroPhantom.PhantomCollections);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 3
0
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            DataSectionHeroPhantom o = new DataSectionHeroPhantom();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 4
0
    public static int SerializeToClient(IntPtr l)
    {
        int result;

        try
        {
            DataSectionHeroPhantom dataSectionHeroPhantom = (DataSectionHeroPhantom)LuaObject.checkSelf(l);
            object o = dataSectionHeroPhantom.SerializeToClient();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 5
0
    public static int UpdateInstantiatedData(IntPtr l)
    {
        int result;

        try
        {
            DataSectionHeroPhantom dataSectionHeroPhantom = (DataSectionHeroPhantom)LuaObject.checkSelf(l);
            DSHeroPhantomNtf       ds;
            LuaObject.checkType <DSHeroPhantomNtf>(l, 2, out ds);
            dataSectionHeroPhantom.UpdateInstantiatedData(ds);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 6
0
    public static int set_PhantomCollections(IntPtr l)
    {
        int result;

        try
        {
            DataSectionHeroPhantom dataSectionHeroPhantom = (DataSectionHeroPhantom)LuaObject.checkSelf(l);
            HeroPhantomCollections phantomCollections;
            LuaObject.checkType <HeroPhantomCollections>(l, 2, out phantomCollections);
            dataSectionHeroPhantom.PhantomCollections = phantomCollections;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 7
0
    public static int GetHeroPhantomLevel(IntPtr l)
    {
        int result;

        try
        {
            DataSectionHeroPhantom dataSectionHeroPhantom = (DataSectionHeroPhantom)LuaObject.checkSelf(l);
            int levelId;
            LuaObject.checkType(l, 2, out levelId);
            HeroPhantomLevel heroPhantomLevel = dataSectionHeroPhantom.GetHeroPhantomLevel(levelId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, heroPhantomLevel);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }