Files
panda3d/samples/networking/03-distributed-node/sample.dc
Fireclaw 3d8f824081 Add Distributed Network samples
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
2021-10-28 09:54:17 +02:00

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