Badge -> Team

This commit is contained in:
DrabWeb 2017-03-15 08:09:44 -03:00
parent 56868e3c06
commit 7572947214
5 changed files with 9 additions and 5 deletions

View File

@ -3,7 +3,10 @@
using System.Collections.Generic;
using OpenTK;
using OpenTK.Graphics;
using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Colour;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Primitives;
using osu.Game.Modes;

View File

@ -12,6 +12,7 @@ using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
using osu.Game.Modes;
using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics.Colour;
using osu.Game.Modes.Mods;
using osu.Game.Users;

View File

@ -7,16 +7,16 @@ using osu.Game.Graphics.UserInterface;
namespace osu.Game.Users
{
public class Badge : IHasDrawableRepresentation<Sprite>
public class Team : IHasDrawableRepresentation<Sprite>
{
public string Name;
public Texture Texture; // TODO: Replace this with something better
public Texture Flag; // TODO: Replace this with something better
public Sprite CreateDrawable()
{
return new Sprite
{
Texture = Texture,
Texture = Flag,
};
}
}

View File

@ -10,6 +10,6 @@ namespace osu.Game.Users
public int Id;
public string Username;
public Region Region;
public IEnumerable<Badge> Badges;
public Team Team;
}
}

View File

@ -330,7 +330,7 @@
<Compile Include="Screens\Select\Leaderboards\LeaderboardScore.cs" />
<Compile Include="Graphics\UserInterface\IHasDrawableRepresentation.cs" />
<Compile Include="Users\Region.cs" />
<Compile Include="Users\Badge.cs" />
<Compile Include="Users\Team.cs" />
<Compile Include="Modes\ScoreRank.cs" />
<Compile Include="Users\Avatar.cs" />
<Compile Include="Screens\Select\Leaderboards\DrawableRank.cs" />