Hi,
Victor STINNER wrote:
Hi,
I change the whole code for weapons config. It's now based on the class called
"EmptyWeaponConfig". This one have LoadXml member. Children use their parent
LoadXml.
great idea
So, it's "easy" to write a new *WeaponConfig class.
I also add an "weapon id" used to identidy weapons in
data/game_mode/classic.xml.
arf, I add a std::string m_key to identify weapons (but I had not
commited !)
I just noticed something broken : air attack is available in closed maps :-(
TODO :
- Translate data/game_mode/classic.xml in english (should be easier now)
I have begin this (not commited)
- Add a WriteXml member for *WeaponConfig classes (should be easier now) : it
will be the first point to add the possibility of produce new game mode XML
files
Um, interresting idea (i'm a genious :-D) : we should add the class argument
(used to sort weapons in weapons_list) in Weapon class ;-) Can you do this
Matthieu ?
Yes it's possible ;-) But I'm not sure this must be configurable in the
xml file.
Matt