mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-22 02:26:07 +02:00
Cleaned up a lot of the "ConnectedPlayer" objects, turning them into "Session" objects. A lot of duplicate lists were also removed.
This commit is contained in:
parent
06e7ea59f4
commit
cf38454c8f
7 changed files with 131 additions and 159 deletions
|
@ -123,9 +123,9 @@ namespace FFXIVClassic_Map_Server.Actors
|
|||
|
||||
public PlayerWork playerWork = new PlayerWork();
|
||||
|
||||
public ConnectedPlayer playerSession;
|
||||
public Session playerSession;
|
||||
|
||||
public Player(ConnectedPlayer cp, uint actorID) : base(actorID)
|
||||
public Player(Session cp, uint actorID) : base(actorID)
|
||||
{
|
||||
playerSession = cp;
|
||||
actorName = String.Format("_pc{0:00000000}", actorID);
|
||||
|
@ -649,12 +649,10 @@ namespace FFXIVClassic_Map_Server.Actors
|
|||
{
|
||||
//Remove actor from zone and main server list
|
||||
zone.RemoveActorFromZone(this);
|
||||
Server.GetServer().RemovePlayer(this);
|
||||
|
||||
//Save Player
|
||||
Database.SavePlayerPlayTime(this);
|
||||
Database.SavePlayerPosition(this);
|
||||
|
||||
Program.Log.Info("{0} has been logged out and saved.", this.customDisplayName);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue