Skip to content

INetState

namespace Griff.Scenes;
public interface INetState

A component that says for itself what it sends in a network game, besides its saved and SentAttribute properties: values it keeps in a form that can’t be sent as it is (a board’s gems, sent as lines of text), or a property it doesn’t send just now.

public abstract void Network(NetState state)

Says what’s sent (called when the entity joins a network game, the same on every machine): add values to state, or skip properties.