mirror of https://github.com/ppy/osu
Expose bot state via interface
This commit is contained in:
parent
ead64282dd
commit
f2700b0a6d
|
@ -11,5 +11,7 @@ public class RealmUser : EmbeddedObject, IUser
|
|||
public int OnlineID { get; set; } = 1;
|
||||
|
||||
public string Username { get; set; }
|
||||
|
||||
public bool IsBot => false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -79,7 +79,7 @@ public class UserCover
|
|||
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