コード例 #1
0
    public static int ClearInitedData(IntPtr l)
    {
        int result;

        try
        {
            DataSectionFriend dataSectionFriend = (DataSectionFriend)LuaObject.checkSelf(l);
            dataSectionFriend.ClearInitedData();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #2
0
    public static int get_FriendshipPointsClaimedToday(IntPtr l)
    {
        int result;

        try
        {
            DataSectionFriend dataSectionFriend = (DataSectionFriend)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, dataSectionFriend.FriendshipPointsClaimedToday);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #3
0
    public static int get_Likes(IntPtr l)
    {
        int result;

        try
        {
            DataSectionFriend dataSectionFriend = (DataSectionFriend)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, dataSectionFriend.Likes);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #4
0
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            DataSectionFriend o = new DataSectionFriend();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #5
0
    public static int SerializeToClient(IntPtr l)
    {
        int result;

        try
        {
            DataSectionFriend dataSectionFriend = (DataSectionFriend)LuaObject.checkSelf(l);
            object            o = dataSectionFriend.SerializeToClient();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #6
0
    public static int SetBusinessCardInfo(IntPtr l)
    {
        int result;

        try
        {
            DataSectionFriend   dataSectionFriend = (DataSectionFriend)LuaObject.checkSelf(l);
            BusinessCardInfoSet businessCardInfo;
            LuaObject.checkType <BusinessCardInfoSet>(l, 2, out businessCardInfo);
            dataSectionFriend.SetBusinessCardInfo(businessCardInfo);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #7
0
    public static int set_FriendshipPointsFromFightWithFriendsToday(IntPtr l)
    {
        int result;

        try
        {
            DataSectionFriend dataSectionFriend = (DataSectionFriend)LuaObject.checkSelf(l);
            int friendshipPointsFromFightWithFriendsToday;
            LuaObject.checkType(l, 2, out friendshipPointsFromFightWithFriendsToday);
            dataSectionFriend.FriendshipPointsFromFightWithFriendsToday = friendshipPointsFromFightWithFriendsToday;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #8
0
    public static int set_BannedTime(IntPtr l)
    {
        int result;

        try
        {
            DataSectionFriend dataSectionFriend = (DataSectionFriend)LuaObject.checkSelf(l);
            DateTime          bannedTime;
            LuaObject.checkValueType <DateTime>(l, 2, out bannedTime);
            dataSectionFriend.BannedTime = bannedTime;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #9
0
    public static int set_FriendshipPointsReceived(IntPtr l)
    {
        int result;

        try
        {
            DataSectionFriend dataSectionFriend = (DataSectionFriend)LuaObject.checkSelf(l);
            List <string>     friendshipPointsReceived;
            LuaObject.checkType <List <string> >(l, 2, out friendshipPointsReceived);
            dataSectionFriend.FriendshipPointsReceived = friendshipPointsReceived;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #10
0
    public static int set_LikedUsers(IntPtr l)
    {
        int result;

        try
        {
            DataSectionFriend dataSectionFriend = (DataSectionFriend)LuaObject.checkSelf(l);
            List <string>     likedUsers;
            LuaObject.checkType <List <string> >(l, 2, out likedUsers);
            dataSectionFriend.LikedUsers = likedUsers;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #11
0
    public static int SetRandomHeroAction(IntPtr l)
    {
        int result;

        try
        {
            DataSectionFriend dataSectionFriend = (DataSectionFriend)LuaObject.checkSelf(l);
            bool randomHeroAction;
            LuaObject.checkType(l, 2, out randomHeroAction);
            dataSectionFriend.SetRandomHeroAction(randomHeroAction);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #12
0
    public static int AddFriendshipPointsSentUser(IntPtr l)
    {
        int result;

        try
        {
            DataSectionFriend dataSectionFriend = (DataSectionFriend)LuaObject.checkSelf(l);
            string            userId;
            LuaObject.checkType(l, 2, out userId);
            dataSectionFriend.AddFriendshipPointsSentUser(userId);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #13
0
    public static int SetLikes(IntPtr l)
    {
        int result;

        try
        {
            DataSectionFriend dataSectionFriend = (DataSectionFriend)LuaObject.checkSelf(l);
            int likes;
            LuaObject.checkType(l, 2, out likes);
            dataSectionFriend.SetLikes(likes);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #14
0
    public static int IsBanned(IntPtr l)
    {
        int result;

        try
        {
            DataSectionFriend dataSectionFriend = (DataSectionFriend)LuaObject.checkSelf(l);
            DateTime          currentTime;
            LuaObject.checkValueType <DateTime>(l, 2, out currentTime);
            bool b = dataSectionFriend.IsBanned(currentTime);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #15
0
    public static int RemoveFriendshipPointsReceivedUser(IntPtr l)
    {
        int result;

        try
        {
            DataSectionFriend dataSectionFriend = (DataSectionFriend)LuaObject.checkSelf(l);
            string            userId;
            LuaObject.checkType(l, 2, out userId);
            bool b = dataSectionFriend.RemoveFriendshipPointsReceivedUser(userId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #16
0
    public static int AddLikes(IntPtr l)
    {
        int result;

        try
        {
            DataSectionFriend dataSectionFriend = (DataSectionFriend)LuaObject.checkSelf(l);
            int addValue;
            LuaObject.checkType(l, 2, out addValue);
            int i = dataSectionFriend.AddLikes(addValue);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, i);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }