How to add a new parameter inside an entity

  1. Add parameter in simserver/conf/ Entity.xml
    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
  2. Add parameter to commonlib/SimObjBaseAttr.h
    2.png
    This file allows to generate automatically accessor to the variable.
    2bis.png
    Every type have his own fonction

Attach file: file2bis.png 1427 download [Information] file2.png 1464 download [Information] file1.png 1485 download [Information]

Front page   Edit Freeze Diff Backup Upload Copy Rename Reload   New List of pages Search Recent changes   Help   RSS of recent changes
Last-modified: 2013-08-23 (Fri) 08:45:11 (3897d)