internal void ReceivePresence(bUserPresence presence) { Id = presence.userId; Name = presence.username; Timezone = presence.timezone; //never downgrade from an osu! to non-osu presence if (!IsOsu || presence.isOsu) { IsOsu = presence.isOsu; } CountryCode = presence.countryCode; Location = countryNames[presence.countryCode]; Longitude = presence.longitude; Latitude = presence.latitude; Permission = presence.permission; Rank = presence.rank; if (!StatsLoaded) { PlayMode = presence.playMode; } if (spriteAvatar != null) { LoadAvatarInto(spriteAvatar, spriteAvatar.MaxDimension); } UpdateTextFields(); UpdateColour(); if (!InitialLoadComplete) { ChatEngine.CheckFriend(this); InitialLoadComplete = true; } }