Table of Contents

Struct NamingRequestBatchBroadcast

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Client to server: the names the client wants for a set of IDs of one kind.

public struct NamingRequestBatchBroadcast : IBroadcast
Implements
IBroadcast
Inherited Members

Remarks

One per kind per frame, replacing one NamingBroadcast per ID. Opening a 100-member roster sent 100 requests in one frame, each answered by a query of its own (hot-path audit M18); the IDs now travel together and the server resolves the ones it does not already hold in one query. The server answers with NamingBatchBroadcast.

Added alongside NamingBroadcast, not in place of it: the server still answers the single request, and answers each waiting connection in the form it asked in.

A parallel primitive array, not an array of entries: FishNet's codegen writes arrays of primitives itself, and a custom element type would need a hand-written array serializer.

Fields

IDs

IDs to resolve. At most MaxIDs.

public long[] IDs

Field Value

long[]

MaxIDs

Most IDs one request carries. The client sends the rest in a later frame; the server ignores any beyond it.

public const int MaxIDs = 128

Field Value

int

Type

Type of the naming system (e.g., character, guild) every ID belongs to.

public NamingSystemType Type

Field Value

NamingSystemType