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/Synchronizing/ICustomSync.cs

19 lines
619 B
C#
Raw Normal View History

2023-05-31 17:32:21 +02:00

namespace FishNet.Object.Synchronizing
{
/// <summary>
/// Custom SyncObjects must inherit from SyncBase and implement this interface.
/// </summary>
public interface ICustomSync
{
/// <summary>
/// Get the serialized type.
/// This must return the value type you are synchronizing, for example a struct or class.
/// If you are not synchronizing a particular value but instead of supported values such as int, bool, ect, then you may return null on this method.
/// </summary>
/// <returns></returns>
object GetSerializedType();
}
}