Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: source/simulation2/docs/SimulationDocs.h
- ===================================================================
- --- source/simulation2/docs/SimulationDocs.h (revision 16799)
- +++ source/simulation2/docs/SimulationDocs.h (working copy)
- @@ -37,6 +37,9 @@
- - @ref defining-js-interfaces
- - @ref defining-cpp-message
- - @ref defining-js-message
- +- @ref adding-entities
- + - @ref usual-entities
- + - @ref system-entity
- - @ref communication
- - @ref message-passing
- - @ref query-interface
- @@ -511,6 +514,32 @@
- +@section adding-entities Adding components to entities
- +
- +Before you start working with the component, you need to assign it to an entity.
- +You can do this in two ways.
- +The first - to add via entities templates. Second - add to the @c CComponentManager implementation.
- +
- +@subsection usual-entities Usual entities
- +
- +Update an entity template file in @b mod/simulation/templates/ and add
- +
- +@code
- +<Example>
- +<!-- component parameters defined in the component XML schema -->
- +</Example>
- +@endcode
- +
- +@subsection system-entity System entity
- +
- +Update the file @b simulation2/system/ComponentManager.cpp and add in the member function @c CComponentManager::AddSystemComponents
- +
- +@code
- +AddComponent(m_SystemEntity, CID_Example, noParam);
- +@endcode
- +
- +
- +
- @section communication Component communication
- @subsection message-passing Message passing
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement