Advertisement
vladislavbelov

SimulationDocs.h

Jun 27th, 2015
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.38 KB | None | 0 0
  1. Index: source/simulation2/docs/SimulationDocs.h
  2. ===================================================================
  3. --- source/simulation2/docs/SimulationDocs.h    (revision 16799)
  4. +++ source/simulation2/docs/SimulationDocs.h    (working copy)
  5. @@ -37,6 +37,9 @@
  6.  - @ref defining-js-interfaces
  7.  - @ref defining-cpp-message
  8.  - @ref defining-js-message
  9. +- @ref adding-entities
  10. + - @ref usual-entities
  11. + - @ref system-entity
  12.  - @ref communication
  13.   - @ref message-passing
  14.   - @ref query-interface
  15. @@ -511,6 +514,32 @@
  16.  
  17.  
  18.  
  19. +@section adding-entities Adding components to entities
  20. +
  21. +Before you start working with the component, you need to assign it to an entity.
  22. +You can do this in two ways.
  23. +The first - to add via entities templates. Second - add to the @c CComponentManager implementation.
  24. +
  25. +@subsection usual-entities Usual entities
  26. +
  27. +Update an entity template file in @b mod/simulation/templates/ and add
  28. +
  29. +@code
  30. +<Example>
  31. +<!-- component parameters defined in the component XML schema -->
  32. +</Example>
  33. +@endcode
  34. +
  35. +@subsection system-entity System entity
  36. +
  37. +Update the file @b simulation2/system/ComponentManager.cpp and add in the member function @c CComponentManager::AddSystemComponents
  38. +
  39. +@code
  40. +AddComponent(m_SystemEntity, CID_Example, noParam);
  41. +@endcode
  42. +
  43. +
  44. +
  45.  @section communication Component communication
  46.  
  47.  @subsection message-passing Message passing
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement