Author Topic: Suggestion: rename "Application" class  (Read 2140 times)

pahe

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 1
  • Posts: 37
    • View Profile
Suggestion: rename "Application" class
« on: June 18, 2015, 02:27:22 AM »
Hi.

I updated yesterday the TNet plugin and also extracted the server zip. After that, I got several compiler warnings, that "Application" has no XYZ function. I started to wonder what was happening, as these were simple UnityEngine function which always worked. After an hour or so, I realized that the server class is called "Application" without a namespace (doh!). I simply renamed the class then to TNetApplication and it worked fine.

Could you rename that one or move it into a namespace, so that problem wouldn't reoccur again?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Suggestion: rename "Application" class
« Reply #1 on: June 18, 2015, 07:34:16 AM »
Server executable is stand-alone. It doesn't need Unity, and shouldn't be inside Assets folder at all. You extracted it into the wrong place.

pahe

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 1
  • Posts: 37
    • View Profile
Re: Suggestion: rename "Application" class
« Reply #2 on: June 18, 2015, 09:23:50 AM »
Sure I did. I simply extracted it into the TNet folder (haven't thought about it), so it was clearly my fault here. But I can imagine that other (unexperienced) developers may do the same as me and I think it doesn't hurt to rename it?

Well, anyway, just a suggestion :)