예제 #1
0
 def on_editt(self, client, room, message):
     del message['aiclientnum']
     player = client.get_player()
     selection = Selection.from_message(message)
     texture = message['texture']
     all_faces = message['all_faces']
     room.handle_player_event('edit_texture', player, selection, texture,
                              all_faces)
예제 #2
0
 def on_editm(self, client, room, message):
     del message['aiclientnum']
     player = client.get_player()
     selection = Selection.from_message(message)
     material = message['material']
     material_filter = message['material_filter']
     room.handle_player_event('edit_material', player, selection, material,
                              material_filter)
예제 #3
0
 def on_replace(self, client, room, message):
     del message['aiclientnum']
     player = client.get_player()
     selection = Selection.from_message(message)
     texture = message['texture']
     new_texture = message['new_texture']
     in_selection = message['in_selection']
     room.handle_player_event('edit_replace', player, selection, texture,
                              new_texture, in_selection)
예제 #4
0
 def on_flip(client, room, message):
     del message['aiclientnum']
     player = client.get_player()
     selection = Selection.from_message(message)
     room.handle_player_event('edit_flip', player, selection)
예제 #5
0
 def on_rotate(self, client, room, message):
     del message['aiclientnum']
     player = client.get_player()
     selection = Selection.from_message(message)
     axis = message['axis']
     room.handle_player_event('edit_rotate', player, selection, axis)
예제 #6
0
 def on_delcube(self, client, room, message):
     del message['aiclientnum']
     player = client.get_player()
     selection = Selection.from_message(message)
     room.handle_player_event('edit_delete_cubes', player, selection)