Skip to main content

SerializeMethod<T>

A delegate in Root.Township, Alta.Networking.

Callback that reads or writes data for one player on a stream, with an extra argument of type T. A non-generic version without the argument sits in the same file.

Constructors​

MemberWhat it is
SerializeMethod(object object, IntPtr method)Made by the compiler when you assign a method to this delegate; you don't call it directly.

Methods​

MemberWhat it is
virtual IAsyncResult BeginInvoke(IPlayer player, Stream stream, T arguments, AsyncCallback callback, object object)Starts the call on another thread; not supported in Unity, so use Invoke.
virtual void EndInvoke(IAsyncResult result)Waits for a call started with BeginInvoke; not supported in Unity.
virtual void Invoke(IPlayer player, Stream stream, T arguments)Calls every method on this delegate with these arguments.

Used in​

Members of other types that take, return or hold a SerializeMethod&lt;T>: