Skip to main content

ClusterEntitiesRegisterArguments

A struct in Root.Township, the global namespace.

Message a RockCluster sends a joining player with its boulder definition and the IDs of its part entities, so the client can match them up.

Constructors​

MemberWhat it is
ClusterEntitiesRegisterArguments(uint optionHash, int count, uint[] entities)Creates a ClusterEntitiesRegisterArguments from optionHash, count and entities.

Fields​

3 private and internal fields
MemberWhat it is
private uint[] entitiesBacking field for Entities.
private uint optionHashBacking field for Option.
private uint quantityEntitiesNumber of part IDs in entities.

Properties​

MemberWhat it is
uint[] Entities { get; }Entity identifiers of the cluster's parts.
uint Option { get; }Hash of the cluster's boulder definition, sent in 16 bits.

Methods​

MemberWhat it is
void Serialize(IPlayer player, Stream stream)Reads or writes the definition hash, part count (8 bits, so at most 255) and part IDs.

Used in​

Members of other types that take, return or hold a ClusterEntitiesRegisterArguments: