(createFcn B2ContactCreateFcn, destroyFcn B2ContactDestroyFcn, type1 uint8, type2 uint8)
| 344 | } |
| 345 | |
| 346 | func AddType(createFcn B2ContactCreateFcn, destroyFcn B2ContactDestroyFcn, type1 uint8, type2 uint8) { |
| 347 | B2Assert(0 <= type1 && type1 < B2Shape_Type.E_typeCount) |
| 348 | B2Assert(0 <= type2 && type2 < B2Shape_Type.E_typeCount) |
| 349 | |
| 350 | s_registers[type1][type2].CreateFcn = createFcn |
| 351 | s_registers[type1][type2].DestroyFcn = destroyFcn |
| 352 | s_registers[type1][type2].Primary = true |
| 353 | |
| 354 | if type1 != type2 { |
| 355 | s_registers[type2][type1].CreateFcn = createFcn |
| 356 | s_registers[type2][type1].DestroyFcn = destroyFcn |
| 357 | s_registers[type2][type1].Primary = false |
| 358 | } |
| 359 | } |
| 360 | |
| 361 | func B2ContactFactory(fixtureA *B2Fixture, indexA int, fixtureB *B2Fixture, indexB int) B2ContactInterface { // returned contact should be a pointer |
| 362 |
no test coverage detected