Struct PendingGuildInvitation
- Namespace
- FishMMO.Server.Core.World.SceneServer
- Assembly
- FishMMO.Server.dll
A guild invitation the server is holding for one character.
public readonly struct PendingGuildInvitation
- Inherited Members
Remarks
The invitation used to be stored as a bare guild ID, which meant an accept could only ever say "yes" to whatever happened to be pending — there was no way to tell the invitation the player was shown apart from the one that replaced it. Carrying the inviter and the issue time lets the accept path prove the two are the same invitation.
IssuedUtc is stamped here rather than left to the cache's last-seen clock because reading the entry TOUCHES that clock: a client that polls, or simply an accept arriving late, refreshed the very timestamp the expiry sweep was about to act on. The stamped time is the one the TTL is measured against.
Constructors
PendingGuildInvitation(long, long, DateTime)
Initializes a new pending guild invitation.
public PendingGuildInvitation(long guildID, long inviterCharacterID, DateTime issuedUtc)
Parameters
guildIDlongThe guild the target was invited to.
inviterCharacterIDlongThe character who sent the invitation.
issuedUtcDateTimeWhen the invitation was issued (UTC).
Fields
GuildID
The guild the target was invited to.
public readonly long GuildID
Field Value
InviterCharacterID
The character who sent the invitation.
public readonly long InviterCharacterID
Field Value
IssuedUtc
When the invitation was issued (UTC).
public readonly DateTime IssuedUtc