public void RegionLoaded(IScene scene)
        {
            IServerSettings serverSettings = scene.RequestModuleInterface<IServerSettings>();
            ServerSetting gravitySetting = new ServerSetting
                                               {
                                                   Name = "Gravity",
                                                   Comment = "The forces of gravity that are on this sim",
                                                   Type = "Color4" //All arrays are color4
                                               };
            gravitySetting.OnGetSetting += delegate()
                                               {
                                                   return
                                                       string.Format(
                                                           "<array><real>{0}</real><real>{1}</real><real>{2}</real><real>1.0</real></array>",
                                                           scene.PhysicsScene.GetGravityForce()[0],
                                                           scene.PhysicsScene.GetGravityForce()[1],
                                                           scene.PhysicsScene.GetGravityForce()[2]);
                                               };
            gravitySetting.OnUpdatedSetting += delegate(string value) { };

            serverSettings.RegisterSetting(gravitySetting);
        }
 public void RegisterSetting(ServerSetting setting)
 {
     m_settings.Add(setting);
 }
 public void UnregisterSetting(ServerSetting setting)
 {
     m_settings.RemoveAll(s => s.Name == setting.Name);
 }