How To Set Up Field Module

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);