Example #1
0
 def get_tile(self):
     temp = []
     for i in self.results:
         temp.append(
             Misc.TPoint(
                 round(Misc.get_base_x() +
                       Ref.get_int(i, Hook.Actor_WorldX) / 128),
                 round(Misc.get_base_y() +
                       Ref.get_int(i, Hook.Actor_WorldY) / 128)))
     return temp
Example #2
0
 def get_id(self):
     temp = []
     for obj in self.results:
         with Ref.RefObject(obj, Hook.Npc_Definition)as npc_def:
             temp.append(Ref.get_int(npc_def.reference, Hook.NpcDefinition_ID))
     return temp
Example #3
0
 def get_indices():
     return [Ref.get_int_array(Global.STATIC_OBJECT, Hook.Client_NpcIndices, i)
             for i in range(0, Ref.get_int(Global.STATIC_OBJECT, Hook.Client_NpcIndices_Size))]
Example #4
0
def get_base_y():
    return Ref.get_int(Global.STATIC_OBJECT, Hook.Client_BaseY)
Example #5
0
def get_client_loop_cycle():
    return Ref.get_int(Global.STATIC_OBJECT, Hook.Client_LoopCycle)
Example #6
0
 def get_animation(self):
     temp = []
     for i in self.results:
         temp.append(Ref.get_int(i, Hook.Actor_Animation))
     return temp
Example #7
0
 def get_queue_size(self):
     temp = []
     for i in self.results:
         temp.append(Ref.get_int(i, Hook.Actor_QueueSize))
     return temp