Question about class construction, variables, and handles in BGT
Alright, so currently I'm working on getting account code set up for my game.
However I'm having an issue coming up with a way for my server to call my account class and assign that account with a unique name. The following piece of code might explain my predicament better.
string accountname="john";
class account
{
//account code goes here.
}
void maine()
{
account accountname;
}
For the idea I have to work, accountname needs to be seen as a variable, rather than an actual name. The result I want from the above code is to end up with an account class called john if that isn't clear. I haven't tried implementing this idea into my code yet because I'm almost certain it will fail. I think I might be able to use it as a handle like so though.
string accountname;
class account
{
//account code goes here.
}
void maine()
{
account @accountname;
}
However, I'm not too familiar with using handles, so again I'm almost certain this won't work.
If anybody has any suggestions on how to make this work, I'd appreciate it.
Thanks.
_______________________________________________ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector