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/NetworkObject.RpcLinks.cs

35 lines
825 B
C#

using System.Collections.Generic;
using UnityEngine;
namespace FishNet.Object
{
public sealed partial class NetworkObject : MonoBehaviour
{
#region Private.
/// <summary>
/// RpcLinks being used within this NetworkObject.
/// </summary>
private List<ushort> _rpcLinkIndexes;
#endregion
/// <summary>
/// Sets rpcLinkIndexes to values.
/// </summary>
internal void SetRpcLinkIndexes(List<ushort> values)
{
_rpcLinkIndexes = values;
}
/// <summary>
/// Removes used link indexes from ClientObjects.
/// </summary>
internal void RemoveClientRpcLinkIndexes()
{
NetworkManager.ClientManager.Objects.RemoveLinkIndexes(_rpcLinkIndexes);
}
}
}