Basketball_HoopWrapper

class Basketball_Hoop.Basketball_HoopWrapper(object: Object)

Bases: Object

AddRingHitHandler(handler: Callable[[List[Object], Object], CoroutineType]) None

An object hit the basketball hoop

Parameters:

handler

Asynchronous handler function with signature:

  • wrappers (List[Object]): wrappers

  • sender (Object): the object that triggered the event

Example:

async def OnRingHit(wrappers, sender):
  pass
instance.AddRingHitHandler(OnRingHit)