Example #1
0
    public UInt32 GetPlayerGlobelBySeat(Byte Seat)
    {
        Seat = SceneRuntime.ClientToServerSeat(Seat);
        RoleBase pRole = null;

        if (PlayerRole.Instance.RoleInfo.RoleMe.GetSeat() == Seat)
        {
            pRole = PlayerRole.Instance.RoleInfo.RoleMe;
        }
        else
        {
            pRole = PlayerRole.Instance.TableManager.GetTableRole(Seat);
        }
        if (pRole == null)
        {
            return(0);
        }
        bool IsInMonth = (PlayerRole.Instance.RoleInfo.RoleMe.GetMonthID() != 0);

        if (IsInMonth)
        {
            return(pRole.GetMonthGlobel());
        }
        else
        {
            return(pRole.GetGlobel());
        }
    }