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:
parent
ead64282dd
commit
f2700b0a6d
@ -11,5 +11,7 @@ namespace osu.Game.Models
|
||||
public int OnlineID { get; set; } = 1;
|
||||
|
||||
public string Username { get; set; }
|
||||
|
||||
public bool IsBot => false;
|
||||
}
|
||||
}
|
||||
|
@ -79,7 +79,7 @@ namespace osu.Game.Online.API.Requests.Responses
|
||||
public bool IsBNG;
|
||||
|
||||
[JsonProperty(@"is_bot")]
|
||||
public bool IsBot;
|
||||
public bool IsBot { get; set; }
|
||||
|
||||
[JsonProperty(@"is_active")]
|
||||
public bool Active;
|
||||
|
@ -8,5 +8,7 @@ namespace osu.Game.Users
|
||||
public interface IUser : IHasOnlineID<int>
|
||||
{
|
||||
string Username { get; set; }
|
||||
|
||||
bool IsBot { get; }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user