using FishNet.Transporting; namespace FishNet.Object.Synchronizing.Internal { public class Settings { /// /// Defines the write permissions for this var /// public WritePermission WritePermission = WritePermission.ServerOnly; /// /// Clients which may receive updated values. /// public ReadPermission ReadPermission = ReadPermission.Observers; /// /// How often this variable may synchronize. /// public float SendRate = 0f; /// /// Channel to send values on. /// public Channel Channel = Channel.Reliable; /// /// Constructs a new NetworkedVarSettings instance /// public Settings() { } public Settings(WritePermission writePermission, ReadPermission readPermission, float sendRate, Channel channel) { WritePermission = writePermission; ReadPermission = readPermission; SendRate = sendRate; Channel = channel; } public Settings(float sendTickrate) { SendRate = sendTickrate; } public Settings(ReadPermission readPermission, float sendRate, Channel channel) { ReadPermission = readPermission; SendRate = sendRate; Channel = channel; } } }