API reference
The library’s namespaces, each with what it is for.
| Namespace | |
|---|---|
| dao | Everything in DAOLib: the game’s classes and the library’s parts, each in a namespace of its own. |
| dao::abilities | Abilities: their names, whether a creature can use one now and what it costs, and cooldowns. |
| dao::animation | How long animations, attacks and abilities take a creature to play. |
| dao::atmosphere | |
| dao::attack | Melee and ranged attacks: reach, the approach to a target, turning to face it. |
| dao::audio | |
| dao::board | |
| dao::camera | Smooth camera moves: panning to a creature, turning behind it, easing the zoom. |
| dao::chargen | |
| dao::clock | Pause or speed up the game’s clock for effects, regeneration and their timers. |
| dao::commands | A creature’s commands: when they start and end, the steps they run, and holding a spell’s conjure. |
| dao::commands::subaction | |
| dao::crafting | |
| dao::creatures | |
| dao::damage | |
| dao::data | The game’s data tree, the named values its interface reads and writes. |
| dao::dialogue | Conversations, cutscenes and movies: watch them, steer which replies appear, skip them. |
| dao::effects | Temporary effects: list them on a creature, stop them wearing off, age them at once. |
| dao::equipment | Hear when equipment goes on or comes off a creature. |
| dao::events | The scripts’ events (damage, perception, death and the rest), as callbacks. |
| dao::framebuffer | |
| dao::gda | The game’s data tables (2DA/GDA): read a value by table, row and column. |
| dao::gui | The Flash interface: answer movies’ calls into the game, call into movies, add screens. |
| dao::input | Key bindings of a plugin’s own, and pointing the game’s cursor pick at a pixel. |
| dao::items | |
| dao::journal | The journal’s quests, current and completed. |
| dao::levelup | |
| dao::lights | |
| dao::loot | |
| dao::messages | The engine’s messages: watch, intercept or send them. |
| dao::modes | |
| dao::Module | The running game executable, and turning the library’s address IDs into addresses in it. |
| dao::objects | |
| dao::options | A plugin’s own settings in the game’s options screen. |
| dao::orders | Give orders as the player’s clicks do: attack, use, cast, move. |
| dao::party | The party: who is selected and who the player controls. |
| dao::partypicker | |
| dao::portraits | Frame a creature’s portrait with a camera of your own. |
| dao::render | |
| dao::resources | Read a file as the game finds it, a mod’s version over the game’s. |
| dao::saves | A plugin’s own data kept with the game’s saves; listing saves, and saving or loading. |
| dao::scene | |
| dao::screenshot | |
| dao::script | Script commands from C++: call them, intercept them, replace them or add new ones. |
| dao::store | |
| dao::strings | A plugin’s own text in the player’s language, from talk tables beside its DLL. |
| dao::tactics | |
| dao::timers | The scripts’ delayed events: hold them, deliver them on a clock of your own, trace them. |
| dao::tlk | The game’s own text by string reference, in the player’s language. |
| dao::vfx | Draw in the world with the game’s visual effects: rings, reticles, any effect by row. |
| dao::world | The world’s geometry: rays, line of sight, screen positions, paths and rooms. |
| dao::world::groups | The collision groups a ray can be tested against. |
| dao::worldmap |