Skip to main content

StreamAuthorityHelper

A static class in Root.Township, Alta.Networking.

Checks whether a connection may send data for an entity, and logs when it may not.

Fields​

1 private and internal field
MemberWhat it is
private static Logger loggerNLog logger for this class.

Methods​

MemberWhat it is
static bool CheckReadPermission(EntitySerializer serializer, Connection connection)True on clients and in local test; on the server, true only if the connection belongs to the serializer's authority player.
static void LogUnauthorizedMessage(IPlayer player)Logs an error that a player sent data it had no right to send.