How to add a new parameter inside an entity
+  Add parameter in simserver/conf/ Entity.xml
#ref(1.png)
There are 3 different type: string, bool, double.
This file allows to parse new parameter as <set-attr-value name=”theName” value=”value”/> in the world file
+  Add parameter to commonlib/SimObjBaseAttr.h
#ref(2.png)
This file allows to generate automatically accessor to the variable.
#ref(2bis.png) ; exemple of user "get" accessor
Every type have his own fonction

Front page   Edit Diff Backup Upload Copy Rename Reload   New List of pages Search Recent changes   Help   RSS of recent changes