All pastes #757332 Raw Edit

Someone

public text v1 · immutable
·published 2007-11-01 05:25 UTC
rendered paste body
public struct ServerConfiguration
    {
        // Server config
        public System.Net.IPAddress IP;
        public ServerPort WorldServerPort;
        public ServerPort ChatServerPort;
        public ServerPort LoginServerPort;
        public bool AccountPasswordsEnabled;
        public ServerPort WebServerPort;
        public bool WebServerEnabled;
        public int ServerVersion;

        // Administration config
        public string DimensionName;
        public string AdminName;
        public EmailAddress AdminEmail;
        public WebAddress WebsiteURL;
        
        // Chat configuration
        private ChatChannelCollection chatChannels;
        public ChatChannelCollection ChatChannels { get { return this.chatChannels; } }

        #region Chat Configuration Methods

        private void setupDefaultChatChannelState()
        {
            this.chatChannels = new ChatChannelCollection();
            this.chatChannels.Add(new ChatChannel("OOC", string.Empty, ChatChannel.Visibility.Public));
        }

        public void RegisterChatChannel(ChatChannel chan)
        {
            this.chatChannels.Add(chan);
        }

        #endregion

        // Character defaults configuration
    }