示例#1
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (Name.Length != 0)
        {
            hash ^= Name.GetHashCode();
        }
        if (Zone != 0)
        {
            hash ^= Zone.GetHashCode();
        }
        if (RoleUUID.Length != 0)
        {
            hash ^= RoleUUID.GetHashCode();
        }
        if (PlayerUUID.Length != 0)
        {
            hash ^= PlayerUUID.GetHashCode();
        }
        if (MapUUID.Length != 0)
        {
            hash ^= MapUUID.GetHashCode();
        }
        if (MailUUID.Length != 0)
        {
            hash ^= MailUUID.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
示例#2
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (MapUUID.Length != 0)
        {
            hash ^= MapUUID.GetHashCode();
        }
        if (ServerID != 0)
        {
            hash ^= ServerID.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }