mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Finalization of object type handler interface
- updated code to use new interface - removed old DefObjHandler (todo - rename file) Summary: - most code but loading is now in place - type names may deserve improvements (some of them are too similar) - still barely compiles and not tested
This commit is contained in:
@@ -109,7 +109,7 @@ void LibClasses::init()
|
||||
|
||||
createHandler(objh, "Object", pomtime);
|
||||
|
||||
createHandler(dobjinfo, "Def information", pomtime);
|
||||
createHandler(objtypeh, "Object types information", pomtime);
|
||||
|
||||
createHandler(spellh, "Spell", pomtime);
|
||||
|
||||
@@ -135,7 +135,7 @@ void LibClasses::clear()
|
||||
delete creh;
|
||||
delete townh;
|
||||
delete objh;
|
||||
delete dobjinfo;
|
||||
delete objtypeh;
|
||||
delete spellh;
|
||||
delete modh;
|
||||
delete bth;
|
||||
@@ -152,7 +152,7 @@ void LibClasses::makeNull()
|
||||
creh = nullptr;
|
||||
townh = nullptr;
|
||||
objh = nullptr;
|
||||
dobjinfo = nullptr;
|
||||
objtypeh = nullptr;
|
||||
spellh = nullptr;
|
||||
modh = nullptr;
|
||||
bth = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user