Author Topic: How much can handly one TNObject?  (Read 1902 times)

Rexima

  • Jr. Member
  • **
  • Thank You
  • -Given: 7
  • -Receive: 2
  • Posts: 78
    • View Profile
How much can handly one TNObject?
« on: June 16, 2014, 10:18:43 AM »
Hey Aren,

is it correct, that a TNObject can handle 255 RFC's?
Or can TNet handly generaly only 255 RFC's?

We have atm one script called RFCConstants, there are all RCF, for the whole game.
Now i found a thread, where you said, we can use 255 RFC's on one TNObject, right?

//EDIT:
I have a second question, is it possible to send an RFC over gameobjects?
Or can i only call an RFC and retrieve it on the same script?
« Last Edit: June 17, 2014, 03:41:30 AM by Rexima »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How much can handly one TNObject?
« Reply #1 on: June 17, 2014, 02:19:05 PM »
Each unique TNObject can have up to 255 ID-identified RFCs and unlimited name-identified RFCs. If you find yourself needing more than 255 RFC IDs per object, I strongly advise you to question what you're doing that requires over 255 unique functions to begin with. Note that limitation applies to only a single TNObject. If you have different TNObjects, they each can have their own sets of IDs that will not conflict with each other.

You can only send and receive RFCs via TNObjects. If the other game object has a TNObject, you can GetComponent<TNObject>() on it and send through that.

Rexima

  • Jr. Member
  • **
  • Thank You
  • -Given: 7
  • -Receive: 2
  • Posts: 78
    • View Profile
Re: How much can handly one TNObject?
« Reply #2 on: June 18, 2014, 01:42:28 AM »
Thank you very much, and thank you for the nice update :)