Results 1 to 10 of 11

Thread: handle of object?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    handle of object?

    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)
    Last edited by slenkar; 01-12-2010 at 08:09 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •