import { b2Fixture } from "@box2d/core"; import { b2ParticleGroup } from "../particle/b2_particle_group"; import { b2ParticleSystem, b2ParticleBodyContact, b2ParticleContact } from "../particle/b2_particle_system"; declare module "@box2d/core" { interface b2DestructionListener { /** * Called when any particle group is about to be destroyed. */ SayGoodbyeParticleGroup(group: b2ParticleGroup): void; /** * Called when a particle is about to be destroyed. * The index can be used in conjunction with * b2ParticleSystem::GetUserDataBuffer() or * b2ParticleSystem::GetParticleHandleFromIndex() to determine which * particle has been destroyed. */ SayGoodbyeParticle(system: b2ParticleSystem, index: number): void; } interface b2ContactFilter { ShouldCollideFixtureParticle(fixture: b2Fixture, system: b2ParticleSystem, index: number): boolean; ShouldCollideParticleParticle(system: b2ParticleSystem, indexA: number, indexB: number): boolean; } interface b2ContactListener { BeginContactFixtureParticle(system: b2ParticleSystem, contact: b2ParticleBodyContact): void; EndContactFixtureParticle(system: b2ParticleSystem, contact: b2ParticleBodyContact): void; BeginContactParticleParticle(system: b2ParticleSystem, contact: b2ParticleContact): void; EndContactParticleParticle(system: b2ParticleSystem, contact: b2ParticleContact): void; } } //# sourceMappingURL=b2_world_callbacks.d.ts.map