Skip to content

NetState

namespace Griff.Scenes;
public sealed class NetState

What an INetState component sends: see Network.

public void Add<T>(Func<T> get, Action<T> set)

Sends a value the host reads with get and every other machine sets with set. T is one a property can be: a bool, number, string, enum, color, vector, or IReadOnlyList<string> (lines, of which only those that changed are sent).

public void Skip(string property)

Doesn’t send the saved property called property.