Add handlers
This commit is contained in:
+15
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user