using System; namespace FishNet.Object.Prediction { /// /// Replicated methods are to be called from clients and will run the same data and logic on the server. /// Only data used as method arguments will be serialized. /// [AttributeUsage(AttributeTargets.Method, Inherited = true, AllowMultiple = false)] public class ReplicateAttribute : Attribute { /// /// How many past datas to resend. /// [Obsolete("Use PredictionManager.RedundancyCount.")] //Remove on 2023/06/01 public byte Resends = 5; /// /// True to allow running input passed in with asServer true when there is no owner. /// public bool AllowServerControl = false; } /// /// Reconcile methods indicate how to reset your script or object after the server has replicated user data. /// [AttributeUsage(AttributeTargets.Method, Inherited = true, AllowMultiple = false)] public class ReconcileAttribute : Attribute { /// /// How many times to resend reconcile. /// [Obsolete("Use PredictionManager.RedundancyCount.")] //Remove on 2023/06/01 public byte Resends = 3; } /// /// Replicated methods are to be called from clients and will run the same data and logic on the server. /// Only data used as method arguments will be serialized. /// [AttributeUsage(AttributeTargets.Method, Inherited = true, AllowMultiple = false)] public class ReplicateV2Attribute : Attribute { } /// /// Reconcile methods indicate how to reset your script or object after the server has replicated user data. /// [AttributeUsage(AttributeTargets.Method, Inherited = true, AllowMultiple = false)] public class ReconcileV2Attribute : Attribute { } }