Created
March 11, 2012 04:59
-
-
Save Bigcheese/2015096 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Some crazy header. | |
struct CreatureData { | |
const char padding[8]; | |
double x; | |
double y; | |
double z; | |
// etc... | |
}; | |
struct NPC { | |
void ShowPage(CreatureData*, const char*) [[aiobj::function(235012165)]]; | |
}; | |
class NPCEvent [[aiobj::NPCEvent]] { | |
const char padding[40]; | |
CreatureData *talker; | |
CreatureData *attacker; | |
CreatureData *victim; | |
CreatureData *private_; | |
CreatureData *friend_; | |
CreatureData *commander; | |
CreatureData *speller; | |
// etc... | |
NPC *myself; | |
void TALK_SELECTED() [[aiobj::handler(4)]]; | |
}; | |
/// End some crazy header. | |
class default_npc [[aiobj::NPCEvent]] { | |
int DesirePqSize = 50 [[aiobj::parameter]]; | |
// etc... | |
void TALK_SELECTED() [[aiobj::handler]] { | |
myself->ShowPage(talker, "noquest.htm"); | |
} | |
}; | |
class citizen : public default_npc { | |
const char *fnHi = "chi.htm" [[aiobj::parameter]]; | |
// etc... | |
void TALKED() [[aiobj::handler]] { | |
if (NoFnHi != 1) | |
return; | |
// etc... | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment