A list of all the Feature objects in the parcel
Throttled function to fetch the snapshots of the parcel;
a Callback expecting an array of objects. Eg:
function myCallback(snapshots){
parcel.setSnapshot(snapshots[0].id)
}
feature.on('click',e=>{
parcel.fetchSnapshots(myCallback)
})
Owner of the parcel
A Map of all the players connected to the parcel; <token -> player>
Sets the parcel content to the given snapshot index. This should be called after 'fetchSnaphots' has been called.
A list of all the snapshots of the parcel; Is empty until fetchSnapshots() is called.
Returns a summary of the parcel
the properties of the parcel object.
Broadcast a message to the client. Note: this is mainly used internally.
Create a feature
a valid feature type, eg: 'vox-model'
an optional object.
Parse a parcel object
an object {id:string,features:Feature[]}
Deletes a feature and removes it from the parcel
Generated using TypeDoc
Represents the Parcel instance.