1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 17:43:05 +08:00

Expose bot state via interface

This commit is contained in:
Dean Herbert 2021-11-05 13:38:48 +09:00
parent ead64282dd
commit f2700b0a6d
3 changed files with 5 additions and 1 deletions

View File

@ -11,5 +11,7 @@ namespace osu.Game.Models
public int OnlineID { get; set; } = 1; public int OnlineID { get; set; } = 1;
public string Username { get; set; } public string Username { get; set; }
public bool IsBot => false;
} }
} }

View File

@ -79,7 +79,7 @@ namespace osu.Game.Online.API.Requests.Responses
public bool IsBNG; public bool IsBNG;
[JsonProperty(@"is_bot")] [JsonProperty(@"is_bot")]
public bool IsBot; public bool IsBot { get; set; }
[JsonProperty(@"is_active")] [JsonProperty(@"is_active")]
public bool Active; public bool Active;

View File

@ -8,5 +8,7 @@ namespace osu.Game.Users
public interface IUser : IHasOnlineID<int> public interface IUser : IHasOnlineID<int>
{ {
string Username { get; set; } string Username { get; set; }
bool IsBot { get; }
} }
} }