Mercurial > malikania
view README.md @ 159:7362fba6ff11
Server: separate database access from model objects, #760 @4h
For a cleaner object usage regarding model access, we now use plain objects
instead of smart pointers of polymorphic objects.
For example, account, character and spell class are static objects which have a
reference to the real database backend, therefore each time a function requires
database access, it is forwarded to the appropriate database functions using
account_dao, character_dao and spell_dao.
To avoid user destroying the data by itself, the model::set_id function is only
available if MALIKANIA_PRIVATE macro is defined, thus database backends have
access but usually not the user code.
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 03 Mar 2018 17:34:12 +0100 |
parents | d4f5f7231b84 |
children |
line wrap: on
line source
Malikania Engine README ======================= Malikania Engine is a free, opensource 2D MMORPG engine.