forked from simulationcraft/simc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Phase one of WoW client data access refactorization / rewriting.
sc_array_t, sc_data_t, sc_data_access_t are gone. sc_array_t, sc_data_t are fully replaced by the dbc_t, now extended to handle all "raw access" to client data. This also means that the days of massive memory allocations is over. Everything is accessed using the static data included in the binary through const safety. Second big change is that spell_data_t, spelleffect_data_t, talent_t are now the proper access classes for individual spell/effect/talent data. Each of the structs has gained an access method api to each of the fields in the struct. Raw value access is still retained, obviously, but should be avoided unless you know what oyu are doing(tm). Additionally, the enumeration based access to effects of a spell has been removed from the data access APIs. In many cases, class modules had to change. I have changed them to use the: a) dbc_t where needed ( player_t, sim_t "xx_data" variable has changed to "dbc" variable) b) spells, to use the run time linked (cached) pointers, in spell_data_t, spelleffect_data_t. This is not done fully as of yet. c) Class modules that used the "enum based" spell/effect data access have been converted to use the effect id / effect number based access. In addition to all this, thread safety has been implemented where applicable, and obsolete / unused methods have been removed throughout the data access system. This commit also changes the contents of a few files: a) data_definitions.hh no longer contains the "new" spell_data_t, spelleffect_data_t, talent_t structs, they have moved to simulationcraft.h, as they gained functionality b) sc_data_access.cpp is removed c) sc_const_data.cpp contains the implementation for dbc_t struct d) sc_data.cpp contains the implementation for spell_data_t, spelleffect_data_t, talent_t git-svn-id: https://simulationcraft.googlecode.com/svn/trunk@7876 3b4652a1-8050-0410-ac47-3d40261b0f8b
- Loading branch information
navv1234
committed
Mar 2, 2011
1 parent
caf9dae
commit ce14344
Showing
40 changed files
with
4,103 additions
and
5,106 deletions.
There are no files selected for viewing
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
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
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
Oops, something went wrong.