adjusting comments; filling out param names

This commit is contained in:
Fate-JH 2024-07-29 02:28:49 -04:00
parent 89fd26f901
commit c2712c9c7a

View file

@ -2144,10 +2144,11 @@ class AvatarActor(
Zones.sanctuaryZoneNumber(avatar.faction) Zones.sanctuaryZoneNumber(avatar.faction)
} }
/* /*
After a client has connected to the server, their account is used to generate a list of characters. After a client has connected,
On the character selection screen, each of these characters is made to exist temporarily when one is selected. their account is used to generate a list of characters on the character selection screen.
This "character select screen" is an isolated portion of the client, so it does not have any external constraints. In terms of globally unique identifiers (GUID's), this is an isolated portion of the client
Temporary global unique identifiers are assigned to the underlying `Player` objects so that they can be turned into packets. and it does not clash with any other GUID record on the server (zones).
Assign incremental temporary GUID's so that the characters from the selection can be turned into packets.
*/ */
player player
.Holsters() .Holsters()
@ -2184,11 +2185,7 @@ class AvatarActor(
Seconds.secondsBetween(a.lastLogin, now).getSeconds Seconds.secondsBetween(a.lastLogin, now).getSeconds
) )
) )
/* //do not keep track of GUID's beyond the packet
After the user has selected a character to load from the "character select screen,"
the temporary global unique identifiers used for that screen are stripped from the underlying `Player` object that was selected.
Characters that were not selected may be destroyed along with their temporary GUIDs.
*/
player player
.Holsters() .Holsters()
.foreach(holster => .foreach(holster =>
@ -2205,9 +2202,9 @@ class AvatarActor(
) )
player.Invalidate() player.Invalidate()
} }
//finalize //finalize list
sessionActor ! SessionActor.SendResponse( sessionActor ! SessionActor.SendResponse(
CharacterInfoMessage(unk = 15, PlanetSideZoneID(0), 0, PlanetSideGUID(0), finished = true, 0) CharacterInfoMessage(unk = 15, PlanetSideZoneID(0), 0, PlanetSideGUID(0), finished = true, secondsSinceLastLogin = 0L)
) )
case Failure(e) => case Failure(e) =>
log.error(e)("db failure") log.error(e)("db failure")