Difference between revisions of "Netpacks"

From VCMI Project Wiki
Jump to: navigation, search
(Packs for server)
m (Packs for client)
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
 
= Packs for client =
 
= Packs for client =
  
Sent to client in NetpacksClient.cpp, result in change of player interface, such as dialog pop-up or battle stakc animation.
+
Sent to client in NetpacksClient.cpp, result in change of [[player interface]], such as dialog pop-up or battle stack animation.
  
 
= Packs for server =
 
= Packs for server =
  
 
Sent to server, result in change of [[game state]]. Their behavour is defined in NetPacksLib.cpp file.
 
Sent to server, result in change of [[game state]]. Their behavour is defined in NetPacksLib.cpp file.

Latest revision as of 14:43, 10 January 2012

Net packs are simple structures used to transmit information between client and server. They are defined in netpacks.h file. Packs can be applied to both client and server. The comunication with use of net packs is obligatory even in offline mode.

Packs for client

Sent to client in NetpacksClient.cpp, result in change of player interface, such as dialog pop-up or battle stack animation.

Packs for server

Sent to server, result in change of game state. Their behavour is defined in NetPacksLib.cpp file.