mirror of
https://github.com/panda3d/panda3d.git
synced 2026-01-19 14:00:01 -06:00
1: Simple client-server connection 2: Client-server connection with timeManager 3: Create distributed objects, sending and receiving messages 4: Distributed model file 5: Simple text chat 6: Simple smooth moving actor
18 lines
371 B
Plaintext
Executable File
18 lines
371 B
Plaintext
Executable File
import DGameObject
|
|
import AIDGameObject/AI
|
|
|
|
struct gameDataModel {
|
|
string value_a;
|
|
uint8 value_b;
|
|
int8 value_c/100;
|
|
}
|
|
|
|
dclass DGameObject: DistributedObject {
|
|
sendGameData(gameDataModel data) broadcast;
|
|
};
|
|
|
|
dclass AIDGameObject: DistributedObject {
|
|
messageRoundtripToAI(gameDataModel data) p2p;
|
|
messageRoundtripToClient(gameDataModel data) p2p;
|
|
}
|