| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
These functions can only be used in the context of a character talking
to an NPC, so these parameters can be deduced from that context rather
than passing them explicitly all the time.
Simplifies NPC scripting.
|
|
|
|
|
|
|
|
|
| |
The requirement for having these definitions was relaxed in the C++11
standard. In short, they are not needed anymore for static const
integral types.
Details:
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#454
|
|
|
|
| |
This was the final step to remove the hierachy with Entity on the top.
|
|
|
|
|
|
| |
I did not really care too much about staying consistent with the use of
static_casts to Actors since they are only temporary anyway until Actor
is a component too.
|
|
|
|
|
| |
A CharacterData was created as a proxy class in order to allow using the
old serialization method.
|
| |
|
|
|
|
|
|
|
|
| |
This should allow to finally call functions to lua without having to care
about working around situations where a lua call causes a c++ call which
needs to call to lua again.
Tested against the source of tales repository data.
|
| |
|
|
|
|
|
|
| |
TODO: Inform client about this change.
Reviewed-by: bjorn.
|
|
|
|
|
|
|
|
|
|
|
|
| |
When creating an NPC, you now provide its optional talk and update functions
directly rather than them being stored in a table on the Lua side and then
called in response to a global callback.
Also fixed an issue with a missing gender parameter to the delayed NPC
creation callback used by NPCs defined on the map (found by Erik while
reviewing this patch).
Reviewed-by: Erik Schilling
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rather than wrapping NPC functions up in coroutines in the Lua side, they
are now managed on the C++ side as "script threads", which are essentially
the same thing.
The main purpose is that the server can now know whether any of these long
running script interactions are still active, which will probably be useful
when adding the ability to reload scripts.
Reviewed-by: Erik Schilling
|
|
|
|
| |
Reviewed-by: bjorn.
|
|
|
|
|
|
| |
Also added an header to the autoattack.{h,cpp} files.
Big but trivial fix.
|
| |
|
|
|
|
|
|
| |
Also updated the headers to refer to the GPL by URL instead of
suggesting to contact the FSF by snail mail, as per the latest
GPL usage instructions.
|
| |
|
|
|
|
| |
Adding support for npc string input.
|
|
|
|
|
| |
Fix for mysql backend (again)
Lua modification for integer and string ask with NPC, and closing fix.
|
|
|
|
|
|
| |
Also renamed Object to Actor, to make it sound a little less generic.
Cleans up a bit the rather big hierarchy of different object types we
have.
|
| |
|
| |
|
|
|
|
| |
monsters along the way. Note that the syntax of the LUA functions for creating NPCs has changed.
|
|
|