// -------------------------------------------------------------------------------------------------------------------- // // Demo code for Photon Chat in Unity. // developer@exitgames.com // -------------------------------------------------------------------------------------------------------------------- using Photon.Realtime; namespace Photon.Chat.Demo { public static class AppSettingsExtensions { public static ChatAppSettings GetChatSettings(this AppSettings appSettings) { return new ChatAppSettings { AppIdChat = appSettings.AppIdChat, AppVersion = appSettings.AppVersion, FixedRegion = appSettings.IsBestRegion ? null : appSettings.FixedRegion, NetworkLogging = appSettings.NetworkLogging, Protocol = appSettings.Protocol, EnableProtocolFallback = appSettings.EnableProtocolFallback, Server = appSettings.IsDefaultNameServer ? null : appSettings.Server, Port = (ushort)appSettings.Port }; } } }