Example #1
0
 def parse(self):
     x, y, z = self.payload['Position']
     tx, ty, tz = self.payload['TargetPosition']
     return model.TelemetryUseItemAbility(
         time=self.time,
         type=self.type,
         team=self.payload['Team'],
         actor=self.payload['Actor'],
         ability=self.payload['Ability'],
         position=model.Position(x=x, y=y, z=z),
         target=self.payload['TargetActor'],
         target_position=model.Position(x=tx, y=ty, z=tz))
Example #2
0
 def parse(self):
     x, y, z = self.payload['Position']
     return model.TelemetryBuyItem(
         time=self.time,
         type=self.type,
         team=self.payload['Team'],
         actor=self.payload['Actor'],
         item=self.payload['Item'],
         cost=self.payload['Cost'],
         remaininggold=self.payload['RemainingGold'],
         position=model.Position(x=x, y=y, z=z))
Example #3
0
 def parse(self):
     x, y, z = self.payload['Position']
     return model.TelemetryExecuted(
         time=self.time,
         type=self.type,
         team=self.payload['Team'],
         actor=self.payload['Actor'],
         killed=self.payload['Killed'],
         killed_team=self.payload['KilledTeam'],
         gold=self.payload['Gold'],
         is_hero=self.payload['IsHero'],
         target_is_hero=self.payload['TargetIsHero'],
         position=model.Position(x=x, y=y, z=z))