UNPKG

@rtsdk/lance-topia

Version:

A Node.js based real-time multiplayer game server

24 lines (19 loc) 543 B
import BaseTypes from '../serialize/BaseTypes'; import Serializable from '../serialize/Serializable'; /** * Defines a collection of NetworkEvents to be transmitted over the wire */ export default class NetworkedEventCollection extends Serializable { static get netScheme() { return { events: { type: BaseTypes.TYPES.LIST, itemType: BaseTypes.TYPES.CLASSINSTANCE }, }; } constructor(events) { super(); this.events = events || []; } }