Add StickGame Assets

This commit is contained in:
Dzejkobik007
2024-03-24 22:21:16 +01:00
parent 5a5812c0c7
commit 6c8b523d1f
6643 changed files with 596260 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
using System;
namespace FishNet.Object.Prediction
{
/// <summary>
/// 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.
/// </summary>
[AttributeUsage(AttributeTargets.Method, Inherited = true, AllowMultiple = false)]
public class ReplicateAttribute : Attribute
{
/// <summary>
/// How many past datas to resend.
/// </summary>
[Obsolete("Use PredictionManager.RedundancyCount.")] //Remove on 2023/06/01
public byte Resends = 5;
/// <summary>
/// True to allow running input passed in with asServer true when there is no owner.
/// </summary>
public bool AllowServerControl = false;
}
/// <summary>
/// Reconcile methods indicate how to reset your script or object after the server has replicated user data.
/// </summary>
[AttributeUsage(AttributeTargets.Method, Inherited = true, AllowMultiple = false)]
public class ReconcileAttribute : Attribute
{
/// <summary>
/// How many times to resend reconcile.
/// </summary>
[Obsolete("Use PredictionManager.RedundancyCount.")] //Remove on 2023/06/01
public byte Resends = 3;
}
/// <summary>
/// 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.
/// </summary>
[AttributeUsage(AttributeTargets.Method, Inherited = true, AllowMultiple = false)]
public class ReplicateV2Attribute : Attribute { }
/// <summary>
/// Reconcile methods indicate how to reset your script or object after the server has replicated user data.
/// </summary>
[AttributeUsage(AttributeTargets.Method, Inherited = true, AllowMultiple = false)]
public class ReconcileV2Attribute : Attribute { }
}