five-on-it / packages/net-client/src/intake / RemoteIntake
Class: RemoteIntake
Defined in: packages/net-client/src/intake.ts:61
The remotes as the intake knows them, and what each frame does to them (see the module documentation).
Constructors
Constructor
new RemoteIntake():
RemoteIntake
Returns
RemoteIntake
Accessors
size
Get Signature
get size():
number
Defined in: packages/net-client/src/intake.ts:67
How many remotes the intake holds.
Returns
number
Methods
take()
take(
frame,mine,out?):Intake
Defined in: packages/net-client/src/intake.ts:76
Takes a frame: the ids to drop (before the news), then the news of every remote the frame changed, into out (its arrays emptied first; a new object by default). mine says which entities are the client's own, never remotes.
Parameters
frame
mine
(e) => boolean
out?
Intake = ...