Ofunniku / dwarftherapist

Automatically exported from code.google.com/p/dwarftherapist
Other
0 stars 0 forks source link

Certain dwarf object methods don't work for scripting #331

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using certain functions in the scripting interface does not work, for example 
d.profession() and d.custom_profession_name()

I believe this is because of missing Q_INVOKABLE modifiers at function 
declarations.

I propose adding said modifier on all suitable dwarf object methods (dwarf.h) 
which are currently without it, which would probably be: 
profession, custom_profession_name, translated_name, nickname, total_xp, 
migration_wave, get_rating_by_skill, current_job, current_job_id, 
current_sub_job_id, first_name, squad_name. (basically all the methods that 
return either a numeric, boolean, or string)

Original issue reported on code.google.com by nycko...@gmail.com on 28 May 2011 at 8:12

GoogleCodeExporter commented 9 years ago
Rolling into 310.

Original comment by ehler...@gmail.com on 6 Mar 2012 at 3:03