Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Degree of Protection (PlusEmu)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="JayC" data-source="post: 465834" data-attributes="member: 36373"><p>Rather than trying to implement this like the Habbo class is, I would implement this as a member of the Habbo.cs file.</p><p></p><p>The reason for this is you already have your GameClient, and Player instances. Really the RP is just an extension of a Habbo.</p><p></p><p>In Habbo.cs I would have a reference to RoleplayUser</p><p></p><p>[CODE]public class Habbo{</p><p></p><p> public RoleplayUser RP {get; set;} = new RoleplayUser(); //You can also create a new instance in the constructor if you want to pass in parameters, probably a good idea to store the user id in the class so you can just pass the individual class to methods that utilize it.</p><p></p><p>}[/CODE]</p></blockquote><p></p>
[QUOTE="JayC, post: 465834, member: 36373"] Rather than trying to implement this like the Habbo class is, I would implement this as a member of the Habbo.cs file. The reason for this is you already have your GameClient, and Player instances. Really the RP is just an extension of a Habbo. In Habbo.cs I would have a reference to RoleplayUser [CODE]public class Habbo{ public RoleplayUser RP {get; set;} = new RoleplayUser(); //You can also create a new instance in the constructor if you want to pass in parameters, probably a good idea to store the user id in the class so you can just pass the individual class to methods that utilize it. }[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Degree of Protection (PlusEmu)
Top