Author Topic: [request] TNManager.Create should return game object [EDIT]  (Read 2116 times)

Masaaki

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 23
    • View Profile
[request] TNManager.Create should return game object [EDIT]
« on: August 26, 2013, 12:29:56 AM »
I noticed while writing my game code that TNManager.Create does not return the game object it creates.
At first I thought it must be asynchronous. But looking at the Create overloads, sure enough right at the end of the function:

  1. Instantiate(go);

So since it appears to be instantly creating the local version anyway, I'd like that Create returns the game object it instantiates.

EDIT: Woops, I was dead wrong. Missed the "return" earlier in the function.
Since that's out of the question... I'm really in need of some way to provide some kind of initial data to this object when it's instantiated. Perhaps a way to specify an initial RFC to call plus parameters to it?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile

Masaaki

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 23
    • View Profile
Re: [request] TNManager.Create should return game object [EDIT]
« Reply #2 on: August 26, 2013, 12:43:26 PM »
Oh, cool. I was on v1.7, just purchased a few days ago and didn't realize there would be an update so soon.
I'll go ahead and update my review now :)