Source code for yracing.weapon.mine.event

from yracing.weapon.weapon.event import WeaponEvent


[docs]class MineEvent(WeaponEvent):
[docs] def on_collision(self, obj, tgt_obj): if tgt_obj.get_name() == self.mediator.phys.coll_name: self._on_coll_success()