This repository has been archived on 2023-09-13. You can view files and clone it, but cannot push or open issues or pull requests.
station_obscurum_unity/Assets/FishNet/Runtime/Object/Helping/RpcLink.cs

39 lines
923 B
C#
Raw Normal View History

2023-05-31 17:32:21 +02:00
using FishNet.Object.Helping;
namespace FishNet.Object
{
#region Types.
/// <summary>
/// Lookup data for a RPC Link.
/// </summary>
internal struct RpcLink
{
/// <summary>
/// ObjectId for link.
/// </summary>
public int ObjectId;
/// <summary>
/// NetworkBehaviour component index on ObjectId.
/// </summary>
public byte ComponentIndex;
/// <summary>
/// RpcHash for link.
/// </summary>
public uint RpcHash;
/// <summary>
/// Type of Rpc link is for.
/// </summary>
public RpcType RpcType;
public RpcLink(int objectId, byte componentIndex, uint rpcHash, RpcType rpcType)
{
ObjectId = objectId;
ComponentIndex = componentIndex;
RpcHash = rpcHash;
RpcType = rpcType;
}
}
#endregion
}