Author Topic: Custom player class  (Read 1796 times)

Dechcaudron

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
Custom player class
« on: July 06, 2014, 09:27:03 PM »
Hey GCC,

are we able to extend the player class? I mean, I already have an extension of this class stored in a different table from players, but I have to manage all the dictionaries that keep track of the online players and everything manually. Program.cs could work with a different player class, but since that script is given by your server, changing it myself would be useless.

Comments?
Dechcaudron

AMarinov

  • Global Moderator
  • Newbie
  • *****
  • Posts: 17
    • View Profile
Re: Custom player class
« Reply #1 on: July 07, 2014, 01:04:16 PM »
Hi Dechcaudron,

You can inherit from the Player class, but the management is up to you.
Recommended approach would be to have your own collections of custom player classes, and update them accordingly to the player Connected/Disconnected events.

Regards,
Atanas


Dechcaudron

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
Re: Custom player class
« Reply #2 on: July 07, 2014, 01:22:56 PM »
Hi Atanas,

just like I thought then

Keep it up,
Dechcaudron