Add handlers

This commit is contained in:
2020-09-08 14:07:09 -06:00
parent db8d8d7b85
commit 0b59e8c438
3 changed files with 25 additions and 10 deletions
+15 -2
View File
@@ -1,3 +1,16 @@
def handle_block_change(p, g):
from panda3d.core import *
def handle_join_game(packet, g):
print('Connected.')
print(packet)
g.info = packet
def handle_block_change(packet, g):
print('block change:')
print(p)
print(packet)
def handle_position_and_look(packet, g):
print('pos and look:')
print(packet)
p = LPoint3f(x=packet.x, y=packet.y, z=packet.z)
g.pos = p