public static User GetUser(uint userId)
{
if(TrackedUsers.Keys.Contains(userId))
{
return TrackedUsers[userId];
}
else
{
User newUser = new User()
{
Id = userId,
CurrentCreatureCategory = Navigators.CreatureNavigator.bottomCategory,
CurrentItemCategory = Navigators.ItemNavigator.bottomCategory,
CurrentLightCategory = Navigators.LightNavigator.bottomCategory,
CurrentPlaceableCategory = Navigators.PlaceableNavigator.bottomCategory,
CurrentVisualEffectCategory = Navigators.VisualEffectNavigator.bottomCategory,
CurrentWaypointCategory = Navigators.WaypointNavigator.bottomCategory,
CurrentTrapCategory = Navigators.TrapNavigator.bottomCategory,
SortingColumn = 1
};
TrackedUsers.Add(userId, newUser);
return newUser;
}
}
}