How To Set Up Field Module

IMPORTANT

Field may not be used with Room. What is means is that the user client may not be a member of a room and join a Field at the simultaneously.

The Field module must be set up with  either TCP or UDP class instances.

With TCP Client: TCP client has to connect to the server.

Diarkis.Tcp tcp = new Diarkis.Tcp();

Diarkis.Modules.Field field = new Diarkis.Modules.Field();

field.SetupAsTcp(tcp);

With UDP Client: UDP client has to connect to the server.

Diarkis.Udp udp = new Diarkis.Udp();

Diarkis.Modules.Field field = new Diarkis.Modules.Field();

field.SetupAsUdp(udp);