|
-
June 13th, 2010, 08:46 PM
#16
Re: Working with a database
simple. The array right now is:
When I add a new item to the list, I increase it (manually) to:
No programs are resizing anything (well, except my IDE), it's all hard-coded.
Well, I have another question. This one might be a bit trickier. Would it be possible to save a function's name as a variable, and then use that variable to call the function? For example:
Code:
std::string functionVariable = "MyFunction()";
//or
specialvartype functionVariable = MyFunction();
Can this be done, in part or in whole? This would let me store item scripts (as functions) as one of the variables in the definition. The alternative would be to store a script ID instead, and use the ID with a switch-case to determine which function to run. Any advice?
Last edited by candlemaster; June 13th, 2010 at 09:01 PM.
Reason: Added a question
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|