Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
enginmanap committed Jan 12, 2019
1 parent 7e4a2c0 commit fd25e6b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 5 additions & 3 deletions docs/ExtendingByAPI/implementAIActor.rst
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ InformationRequest struct
_________________________

This struct is part of ActorInterface, and each frame Limon Engine checks all Actors for request changes. When a request is checked, its information will be reset to prevent multiple requests.

+------------------------+-----------------------------+--------------------------------------------------------------------------+
| Type | Name | Description |
+------------------------+-----------------------------+--------------------------------------------------------------------------+
Expand All @@ -143,11 +144,12 @@ How to enable Dynamic Library discovery
_______________________________________

Limon engine will try to load custom actors on engine startup, from libcustomTriggers file (extension based on platform). If the file is found, engine will check for a method with following signature:
::

``void registerActors(std::map<std::string, ActorInterface*(*)(uint32_t, LimonAPI*)>* actorMap)``
void registerActors(std::map<std::string, ActorInterface*(*)(uint32_t, LimonAPI*)>* actorMap)

This method should fill the actorMap passed, with all the custom actors, like this:
::

(*actorMap)["$ACTORNAME1$"] = &createActorT<$ActorClass1$>;
(*actorMap)["$ACTORNAME2$"] = &createActorT<$ActorClass2$>;
(*actorMap)["$ACTOR_NAME1$"] = &createActorT<$ActorClass1$>;
(*actorMap)["$ACTOR_NAME2$"] = &createActorT<$ActorClass2$>;
9 changes: 4 additions & 5 deletions docs/ExtendingByAPI/implementAction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,11 @@ _______________________________________

Limon engine will try to load custom actions on engine startup, from libcustomTriggers file (extension based on platform). If the file is found, engine will check for a method with following signature:


``void registerAsTrigger(std::map<std::string, TriggerInterface*(*)(LimonAPI*)>* triggerMap)``
::
void registerAsTrigger(std::map<std::string, TriggerInterface*(*)(LimonAPI*)>* triggerMap)

This method should fill the triggerMap passed, with all the custom actions, like this:

``
::
(*triggerMap)["$ACTION_NAME1$"] = &createT<$ActionClass1$>;
(*triggerMap)["$ACTION_NAME2$"] = &createT<$ActionClass2$>;
``

0 comments on commit fd25e6b

Please sign in to comment.