1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 09:07:25 +08:00
osu-lazer/osu.Game/Users/UserStatus.cs

62 lines
1.7 KiB
C#
Raw Normal View History

2017-05-22 14:11:42 +08:00
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using OpenTK.Graphics;
using osu.Game.Graphics;
namespace osu.Game.Users
{
public abstract class UserStatus
{
public abstract string Message { get; }
public abstract Color4 Colour(OsuColour colours);
}
public abstract class UserStatusAvailable : UserStatus
{
public override Color4 Colour(OsuColour colours) => colours.BlueDarker;
}
public abstract class UserStatusBusy : UserStatus
{
public override Color4 Colour(OsuColour colours) => colours.YellowDark;
}
2017-05-22 14:32:02 +08:00
public class UserStatusOffline : UserStatus
{
2017-05-22 14:37:36 +08:00
public override string Message => @"Offline";
2017-05-22 14:32:02 +08:00
public override Color4 Colour(OsuColour colours) => colours.Gray7;
}
2017-05-22 14:11:42 +08:00
public class UserStatusOnline : UserStatusAvailable
{
public override string Message => @"Online";
}
public class UserStatusSpectating : UserStatusAvailable
{
2017-05-22 14:37:36 +08:00
public override string Message => @"Spectating a game";
2017-05-22 14:11:42 +08:00
}
public class UserStatusInLobby : UserStatusAvailable
{
2017-05-22 14:37:36 +08:00
public override string Message => @"in Multiplayer Lobby";
2017-05-22 14:11:42 +08:00
}
public class UserStatusSoloGame : UserStatusBusy
{
2017-05-22 14:37:36 +08:00
public override string Message => @"Solo Game";
2017-05-22 14:11:42 +08:00
}
public class UserStatusMultiplayerGame: UserStatusBusy
{
2017-05-22 14:37:36 +08:00
public override string Message => @"Multiplaying";
2017-05-22 14:11:42 +08:00
}
public class UserStatusModding : UserStatus
{
2017-05-22 14:37:36 +08:00
public override string Message => @"Modding a map";
2017-05-22 14:11:42 +08:00
public override Color4 Colour(OsuColour colours) => colours.PurpleDark;
}
}