2019-05-05 18:07:55 +00:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
|
|
using osu.Game.Beatmaps;
|
|
|
|
|
using osu.Game.Graphics;
|
|
|
|
|
using osuTK.Graphics;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Users
|
|
|
|
|
{
|
|
|
|
|
public abstract class UserActivity
|
|
|
|
|
{
|
|
|
|
|
public abstract string Status { get; }
|
|
|
|
|
public virtual Color4 GetAppropriateColour(OsuColour colours) => colours.GreenDarker;
|
|
|
|
|
|
2019-05-12 15:38:02 +00:00
|
|
|
|
public class UserActivityModding : UserActivity
|
|
|
|
|
{
|
|
|
|
|
public override string Status => "Modding a map";
|
|
|
|
|
public override Color4 GetAppropriateColour(OsuColour colours) => colours.PurpleDark;
|
|
|
|
|
}
|
2019-05-05 18:07:55 +00:00
|
|
|
|
|
2019-05-12 15:38:02 +00:00
|
|
|
|
public class UserActivityChoosingBeatmap : UserActivity
|
|
|
|
|
{
|
|
|
|
|
public override string Status => "Choosing a beatmap";
|
|
|
|
|
}
|
2019-05-05 18:07:55 +00:00
|
|
|
|
|
2019-05-12 15:38:02 +00:00
|
|
|
|
public class UserActivityMultiplayerGame : UserActivity
|
2019-05-05 18:07:55 +00:00
|
|
|
|
{
|
2019-05-12 15:38:02 +00:00
|
|
|
|
public override string Status => "Multiplaying";
|
2019-05-05 18:07:55 +00:00
|
|
|
|
}
|
|
|
|
|
|
2019-05-12 15:38:02 +00:00
|
|
|
|
public class UserActivityEditing : UserActivity
|
|
|
|
|
{
|
|
|
|
|
public UserActivityEditing(BeatmapInfo info)
|
|
|
|
|
{
|
|
|
|
|
Beatmap = info;
|
|
|
|
|
}
|
2019-05-05 18:07:55 +00:00
|
|
|
|
|
2019-05-12 15:38:02 +00:00
|
|
|
|
public override string Status => @"Editing a beatmap";
|
2019-05-05 18:07:55 +00:00
|
|
|
|
|
2019-05-12 15:38:02 +00:00
|
|
|
|
public BeatmapInfo Beatmap { get; }
|
2019-05-05 18:07:55 +00:00
|
|
|
|
}
|
|
|
|
|
|
2019-05-12 15:38:02 +00:00
|
|
|
|
public class UserActivitySoloGame : UserActivity
|
|
|
|
|
{
|
|
|
|
|
public UserActivitySoloGame(BeatmapInfo info, Rulesets.RulesetInfo ruleset)
|
|
|
|
|
{
|
|
|
|
|
Beatmap = info;
|
|
|
|
|
Ruleset = ruleset;
|
|
|
|
|
}
|
2019-05-05 18:07:55 +00:00
|
|
|
|
|
2019-05-12 15:38:02 +00:00
|
|
|
|
public override string Status => @"Solo Game";
|
2019-05-05 18:07:55 +00:00
|
|
|
|
|
2019-05-12 15:38:02 +00:00
|
|
|
|
public BeatmapInfo Beatmap { get; }
|
2019-05-05 18:07:55 +00:00
|
|
|
|
|
2019-05-12 15:38:02 +00:00
|
|
|
|
public Rulesets.RulesetInfo Ruleset { get; }
|
|
|
|
|
}
|
2019-05-05 18:07:55 +00:00
|
|
|
|
|
2019-05-12 15:38:02 +00:00
|
|
|
|
public class UserActivitySpectating : UserActivity
|
|
|
|
|
{
|
|
|
|
|
public override string Status => @"Spectating a game";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class UserActivityInLobby : UserActivity
|
|
|
|
|
{
|
|
|
|
|
public override string Status => @"in Multiplayer Lobby";
|
|
|
|
|
}
|
2019-05-05 18:07:55 +00:00
|
|
|
|
}
|
|
|
|
|
}
|