Erik Ogenvik
e85f0831b2
Restructure rule classes.
...
Classes under "rulesets" have been moved to "rules", and split up into
futher subdirectories matching their library. As a result we can now
better separate the python bindings, so that things that belongs to the
simulation are separeted from things that belongs to the ai.
2018-10-31 21:38:35 +01:00
Erik Ogenvik
f87233cd53
Clean up code.
2018-10-30 19:35:57 +01:00
Erik Ogenvik
653d5a38ba
Handle Py::Callable better.
2018-07-24 21:18:26 +02:00
Erik Ogenvik
ba539df70e
Use PyCXX throughout.
2018-07-23 16:43:39 +02:00
Erik Ogenvik
e80d07560c
Reload entity scripts when python code changes.
...
For now we reload all scripts. We should be smarter and only reload
those scripts which are affected though.
2018-04-30 23:34:58 +02:00
Erik Ogenvik
e7fa53214b
Use nullptr instead of NULL.
2018-02-06 13:45:11 +01:00
Olek Wojnar
7f9ff2246d
Remove CVS $Id tags
...
The legacy tags are causing build issues in Debian.
2013-07-15 20:31:59 +02:00
Alistair Riddoch
1f91e9f68c
Migrate PythonArithmeticFactory to using PythonClass
2011-12-19 11:35:41 +00:00
Alistair Riddoch
58e80e9ac9
Correctly handle references on reloaded modules
...
Add comments, and remove debug output.
2011-12-18 21:27:27 +00:00
Alistair Riddoch
43e06f60c4
Change the place where script factory is deleted
...
When the module has change, we get rid of the old factory, but it is
bad to do this before we know whether the new module is good.
2011-12-18 21:09:48 +00:00
Alistair Riddoch
03d012e149
Clean up reloading a bit
...
Add notes so we can ensure a failed reload is not disruptive
2011-12-16 19:28:45 +00:00
Alistair Riddoch
31761228dd
Move bsae class checks into PythonClass
...
This is a vastly simpler way to check the base, without a weird virtual call.
2011-12-15 10:28:08 +00:00
Alistair Riddoch
6f8fad304a
Move loading code out of ctor
2011-11-08 19:48:14 +00:00
Alistair Riddoch
4a0b3a508d
Add a new class to encapsulate a Python class on disk
2011-11-08 18:54:10 +00:00