Add mappings and api for DMM player names

- Add mappings for DMM player names and methods using them
- Create class with DMM player name rendering masks
- Create mapping for cleanName from player
- Create mapping for setting name to player

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-03-28 12:21:11 +02:00
committed by Adam
parent 24e6b24200
commit 7c233a096c
6 changed files with 83 additions and 0 deletions

View File

@@ -66,6 +66,34 @@ public abstract class RSPlayerMixin implements RSPlayer
return name.replace('\u00A0', ' ');
}
@Inject
@Override
public String getCleanName()
{
final RSName rsName = getRsName();
if (rsName == null)
{
return null;
}
return rsName.getCleanName();
}
@Inject
@Override
public void setName(String name)
{
final RSName rsName = getRsName();
if (rsName == null)
{
return;
}
rsName.setName(name);
}
@Inject
@Override
public Polygon[] getPolygons()