#NEWLINE# def handle_spawn_global_entity( self , event , packet ) : #NEWLINE# #INDENT# entity = GlobalEntity ( ) #NEWLINE# entity . set_dict ( packet . data ) #NEWLINE# self . ec . entities [ packet . data [ 'eid' ] ] = entity #NEWLINE# self . ec . global_entities [ packet . data [ 'eid' ] ] = entity #NEWLINE# self . event . emit ( 'entity_spawn' , { #NEWLINE# #INDENT# 'entity' : entity , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . event . emit ( 'entity_spawn_global' , entity )