Closed DoubleDeez closed 3 years ago
Being able to do this would be nice and clean, currently the Callback does not send the value as an argument. Perhaps it could be auto detected if the registered callback supports the argument and sends it if so?
[MDReplicated] [MDReplicatedSetting(MDReplicatedMember.Settings.OnValueChangedEvent, nameof(OnPlayerNameChangedEvent))] public string PlayerName { get; protected set; } = ""; public event Action<string> OnPlayerNameChangedEvent = delegate { };
Being able to do this would be nice and clean, currently the Callback does not send the value as an argument. Perhaps it could be auto detected if the registered callback supports the argument and sends it if so?