// ---------------------------------------------------------------------------- // // Loadbalancing Framework for Photon - Copyright (C) 2013 Exit Games GmbH // // // Collection of values related to a user / friend. // // developer@photonengine.com // ---------------------------------------------------------------------------- #if UNITY_4_7_OR_NEWER #define UNITY #endif namespace ExitGames.Client.Photon.LoadBalancing { #if UNITY || NETFX_CORE using Hashtable = ExitGames.Client.Photon.Hashtable; using SupportClass = ExitGames.Client.Photon.SupportClass; #endif /// /// Used to store info about a friend's online state and in which room he/she is. /// public class FriendInfo { public string Name { get; internal protected set; } public bool IsOnline { get; internal protected set; } public string Room { get; internal protected set; } public bool IsInRoom { get { return this.IsOnline && !string.IsNullOrEmpty(this.Room); } } public override string ToString() { return string.Format("{0}\t is: {1}", this.Name, (!this.IsOnline) ? "offline" : this.IsInRoom ? "playing" : "on master"); } } }