Skip to content

SentAttribute

namespace Griff.Scenes;
public sealed class SentAttribute : Attribute

Sends a property in a network game. On a value kept only while playing (not saved in the scene, so not sent by itself), it’s sent as saved ones are: how far a block is dug, how much a worker carries. Its setter can be private. With ByMover, the player moving the entity decides it rather than the host (see PlayerMovementAttribute).

public bool ByMover { get; init; }

When a player moves the entity themselves, their machine decides this (its speed, which way it faces).