Files
PrinceOfGlory/Packages/com.firstgeargames.fishnet/Runtime/Object/Prediction/Delegates.cs
2026-03-03 03:15:46 +08:00

27 lines
1.0 KiB
C#

using FishNet.Connection;
using FishNet.Documenting;
using FishNet.Serializing;
using FishNet.Transporting;
using FishNet.Utility.Constant;
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo(UtilityConstants.CODEGEN_ASSEMBLY_NAME)]
namespace FishNet.Object.Prediction.Delegating
{
[APIExclude]
public delegate void ReplicateRpcDelegate(PooledReader reader, NetworkConnection sender, Channel channel);
[APIExclude]
public delegate void ReconcileRpcDelegate(PooledReader reader, Channel channel);
#if !PREDICTION_V2
[APIExclude]
public delegate void ReplicateUserLogicDelegate<T>(T data, bool asServer, Channel channel, bool replaying);
[APIExclude]
public delegate void ReconcileUserLogicDelegate<T>(T data, bool asServer, Channel channel);
#else
[APIExclude]
public delegate void ReplicateUserLogicDelegate<T>(T data, ReplicateState state, Channel channel);
[APIExclude]
public delegate void ReconcileUserLogicDelegate<T>(T data, Channel channel);
#endif
}