Method
AddContact
(contact B2ContactInterface)
Source from the content-addressed store, hash-verified
| 38 | } |
| 39 | |
| 40 | func (island *B2Island) AddContact(contact B2ContactInterface) { // contact has to be a pointer |
| 41 | B2Assert(island.M_contactCount < island.M_contactCapacity) |
| 42 | island.M_contacts[island.M_contactCount] = contact |
| 43 | island.M_contactCount++ |
| 44 | } |
| 45 | |
| 46 | func (island *B2Island) Add(joint B2JointInterface) { // joint has to be a pointer |
| 47 | B2Assert(island.M_jointCount < island.M_jointCapacity) |
Tested by
no test coverage detected