is there any way to convert an object into an integer handle (or pointer)
and then convert it back?
I want to be able to serialize an object like this
Code:
type
warrior=class(Tobject)
enemy:warrior
so I need to know.. when I save the warrior to a file, who his enemy is, so I need to convert the enemy to an integer handle, so I can serialize it
( I know you cant save handles to a file and then convert them back into objects when you load a new game, but they are useful to stop cyclic references when loading or saving a game)
Bookmarks