|
|
@ -1,4 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
www.sourceforge.net/projects/dfhack
|
|
|
|
www.sourceforge.net/projects/dfhack
|
|
|
|
Copyright (c) 2009 Petr Mrázek (peterix), Kenneth Ferland (Impaler[WrG]), dorf
|
|
|
|
Copyright (c) 2009 Petr Mrázek (peterix), Kenneth Ferland (Impaler[WrG]), dorf
|
|
|
@ -44,17 +43,23 @@ namespace DFHack
|
|
|
|
class DFContextShared;
|
|
|
|
class DFContextShared;
|
|
|
|
class WindowIO;
|
|
|
|
class WindowIO;
|
|
|
|
class Process;
|
|
|
|
class Process;
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* This class wraps all the different related objects for a particular Process
|
|
|
|
|
|
|
|
* \ingroup grp_context
|
|
|
|
|
|
|
|
*/
|
|
|
|
class DFHACK_EXPORT Context
|
|
|
|
class DFHACK_EXPORT Context
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
Context(Process * p);
|
|
|
|
Context(Process * p);
|
|
|
|
~Context();
|
|
|
|
~Context();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// @return true if there's version information for the associated Process
|
|
|
|
bool isValid();
|
|
|
|
bool isValid();
|
|
|
|
|
|
|
|
/// attach to the related process. Claims OS debugging resources
|
|
|
|
bool Attach();
|
|
|
|
bool Attach();
|
|
|
|
|
|
|
|
/// detach from the related process. Releases OS debugging resources
|
|
|
|
bool Detach();
|
|
|
|
bool Detach();
|
|
|
|
|
|
|
|
/// @return true if the process is attached.
|
|
|
|
bool isAttached();
|
|
|
|
bool isAttached();
|
|
|
|
|
|
|
|
|
|
|
|
/// stop the tracked process
|
|
|
|
/// stop the tracked process
|
|
|
@ -77,8 +82,6 @@ namespace DFHack
|
|
|
|
void ReadRaw (const uint32_t offset, const uint32_t size, uint8_t *target);
|
|
|
|
void ReadRaw (const uint32_t offset, const uint32_t size, uint8_t *target);
|
|
|
|
void WriteRaw (const uint32_t offset, const uint32_t size, uint8_t *source);
|
|
|
|
void WriteRaw (const uint32_t offset, const uint32_t size, uint8_t *source);
|
|
|
|
|
|
|
|
|
|
|
|
// FIXME: this is crap.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// get the creatures module
|
|
|
|
/// get the creatures module
|
|
|
|
Creatures * getCreatures();
|
|
|
|
Creatures * getCreatures();
|
|
|
|
|
|
|
|
|
|
|
@ -125,15 +128,6 @@ namespace DFHack
|
|
|
|
bool WriteEffect(const uint32_t index, const t_effect_df40d & effect);
|
|
|
|
bool WriteEffect(const uint32_t index, const t_effect_df40d & effect);
|
|
|
|
void FinishReadEffects();
|
|
|
|
void FinishReadEffects();
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
/*
|
|
|
|
|
|
|
|
* Trees and shrubs
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
bool InitReadVegetation( uint32_t & numplants );
|
|
|
|
|
|
|
|
bool ReadVegetation(const int32_t index, t_tree_desc & shrubbery);
|
|
|
|
|
|
|
|
void FinishReadVegetation();
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* Notes placed by the player
|
|
|
|
* Notes placed by the player
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -168,12 +162,6 @@ namespace DFHack
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* Get the other API parts for raw access
|
|
|
|
* Get the other API parts for raw access
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
// FIXME: BAD!
|
|
|
|
|
|
|
|
bool ReadAllMatgloss(vector< vector< string > > & all);
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
//bool ReadItemTypes(std::vector< std::vector< t_itemType > > & itemTypes);
|
|
|
|
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
DFContextShared * d;
|
|
|
|
DFContextShared * d;
|
|
|
|
};
|
|
|
|
};
|
|
|
|