mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 05:54:50 +02:00
Implemented equipment packets as well as actor name/appearance packets. Appearance and name is now retrieved for the chara id.
This commit is contained in:
parent
b0ab527550
commit
a81d6bb26a
16 changed files with 862 additions and 98 deletions
|
@ -27,7 +27,8 @@ namespace FFXIVClassic_Map_Server.dataobjects
|
|||
public Player(uint actorId)
|
||||
{
|
||||
this.actorID = actorId;
|
||||
createPlayerActor(actorId, null);
|
||||
Character chara = Database.getCharacter(actorId);
|
||||
createPlayerActor(actorId, chara);
|
||||
}
|
||||
|
||||
public void addConnection(ClientConnection conn)
|
||||
|
@ -72,9 +73,19 @@ namespace FFXIVClassic_Map_Server.dataobjects
|
|||
return conn1;
|
||||
}
|
||||
|
||||
public Actor getActor()
|
||||
{
|
||||
return playerActor;
|
||||
}
|
||||
|
||||
public void createPlayerActor(uint actorId, Character chara)
|
||||
{
|
||||
playerActor = new Actor(actorId);
|
||||
|
||||
playerActor.displayNameID = 0xFFFFFFFF;
|
||||
playerActor.customDisplayName = chara.name;
|
||||
playerActor.setPlayerAppearance();
|
||||
|
||||
actorInstanceList.Add(playerActor);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue