Adds preference unavailable setting to profiles.

This commit is contained in:
Pieter-Jan Briers
2020-01-19 18:33:22 +01:00
parent 77367345b6
commit fc2d53eb4f
7 changed files with 113 additions and 26 deletions

View File

@@ -2,6 +2,7 @@ using System.Collections.Generic;
using System.IO;
using System.Linq;
using Content.Server.Preferences;
using Content.Shared;
using Content.Shared.Preferences;
using NUnit.Framework;
using Robust.Shared.Maths;
@@ -27,12 +28,13 @@ namespace Content.Tests.Server.Preferences
Color.Aquamarine,
Color.Azure,
Color.Beige
),
),
new Dictionary<string, JobPriority>
{
{"Assistant", JobPriority.High}
}
);
{SharedGameTicker.OverflowJob, JobPriority.High}
},
PreferenceUnavailableMode.StayInLobby
);
}
private static PreferencesDatabase GetDb()
@@ -99,7 +101,7 @@ namespace Content.Tests.Server.Preferences
db.SaveSelectedCharacterIndex(username, MaxCharacterSlots);
prefs = db.GetPlayerPreferences(username);
Assert.AreEqual(prefs.SelectedCharacterIndex, MaxCharacterSlots-1);
Assert.AreEqual(prefs.SelectedCharacterIndex, MaxCharacterSlots - 1);
}
}
}