I'm looking for some help with accessing data produced by my extension (built with ISXDK) via LavishScript. I was reading through the wiki and I've noticed 2 things
1. There are a few pages in the wiki that are just... blank. The only other documentation I could find were the extensive comments in the source code produced by mkisx, is that what I should be relying on? Is the wiki going to be updated? Do I already have the information I need to update the wiki myself?
2. On the page regarding TLOs, it stated that
Which is understandable enough, but how would I go about accessing my health? Do I need to create my own "Player" data type? I fully understand the concept of classes in C++ and C#, but is a TLO similar to that or should I be using something completely different?For example, you do not want to have a Top-Level Object that specifically retrieves your character's health in a game -- that should be a part of a character object, and referenced by something like "Me" (short and sweet, and easy to understand).
Let's say for example in C++ I had
Code: Select all
class Player
{
private:
uint32 _health;
public:
std::string _name;
uint32 GetHealth()
{
_health = UpdateHealthFromElsewhereInProgram();
return _health;
}
Player(uint32 health) { _health = health; _name = GetNameFromElsewhere(); }
};
By all means, if the information I need is already on the wiki and I've just missed it somehow feel free to tell me to just go read it. I'm not an expert on C++ but I know my way around, I just don't understand what I should be doing to access this. I know I could probably do it by iterating the va_list passed to me when calling the TLO but that feels... wrong. I don't know if I need to make my own datatype or not but I'm assuming if at any point I want to handle Player objects externally I'll need to create a datatype for that.
Thanks for your time and again, I've already spent a long time reading through both the wiki and the source code comments, but if you're 100% certain all the information I need is there then I don't mind going back and reading some more. I just feel pretty stuck at a conceptual level right now, it feels like even though I have a solution it's not what I should be doing
