Is there any way to get a pointer of my type when I know one if its fields. Consider the following piece of pseudo code:
Note: I want to avoid to iterate the list of mytype
Thanks
Type mytype field entity% . . . end type Global a_type_instance.mytype . . . for c=1 to CountCollisions(an_entity) entity_collided = CollisionEntity(an_entity, c) if entity_collided <> 0 then a_type_instance = ReturnAPointer(entity_collided) next Function ReturnAPointer.mytype(entity%) ??? end function
Note: I want to avoid to iterate the list of mytype
Thanks