Eric Swanson
464a3643c1
Remove unused Executor.makeObj()
2020-06-17 00:23:42 -07:00
Eric Swanson
36d8603666
Add elvis operator:
...
a ?: b
Evaluates to a if a is true (not: false, 0, undefined, etc)
Otherwise evaluates to b
Short-circuit evaluation
2020-04-29 02:50:11 -07:00
Kevin Eady
12d6186d10
Script option enhancements ( #118 )
...
* Fix SCRIPTOPT_CAN_ACCESS_OFFLINE_MOBILES
* Add SCRIPTOPT_SURVIVE_ATTACHED_DISCONNECT
* wip beginning work on templatization
* Use PolModule in pol-specific modules
* wip, creating PolModule with getXYZParam
* wip 1, moving getXYZ to UOExecutor
* compilable with PolObjectImp / PolApplicObj
* add type guard
* wip, change signatures
change signatures of script_method, script_method_id, and
custom_script_method
* compilable (windows)
* linux fixes
* namespace fixes
* remove uoexhelp
* formatting
* compilable
- move can_access_offline_mobiles back to uoexec
- add guildscrobj and partyscrobj sources
- move EGuildRefObjImp and EPartyRefObjImp
- wip, implement asUOExec
- formatting uoexec.cpp,.h
* finish uoexec() helper
* some cleanup
2020-02-08 09:21:35 +01:00
turleypol
fc523320d9
added support of ++/-- for object members.
2019-09-26 07:06:45 +02:00
turleypol
169c1ec4e3
added i--, corrected that no warning appears when using i++. Extended
...
tests
2019-09-22 11:04:57 +02:00
turleypol
b2a3e1b792
starting to support i++
2019-09-22 00:34:14 +02:00
turleypol
902c9cbfde
first version of ++i and --i unary operator
2019-09-21 14:56:06 +02:00
turleypol
3973851383
added getUnicodeStringParam needed for all the unicode em functions
...
which now accept only unicode arrays and should then also accept
strings
(arrays then only for backward compatibility)
2018-12-31 11:59:47 +01:00
turleypol
892005f2b0
code simplification, deprecate warning for uoclient.cfg MethodScript
...
entry
2018-10-13 21:46:41 +02:00
turleypol
6107184258
only one global config include exists now
2018-06-17 18:31:55 +02:00
turleypol
d7fbb4ac8e
cleanup debug prints
...
fixed funcref implementation
2018-02-04 11:58:26 +01:00
turleypol
0d04d5e19b
Current FunctionRef status. Mixed with a few more cmake stuff
2018-02-03 19:05:22 +01:00
turleypol
dbb25bdb62
Include and buildsystem cleanup ( #45 )
...
Include cleanup
Reworked buildsystem (Linux only)
Removed dynamic libs, Linux now again uses static linking (like windows)
2018-01-29 21:55:48 +01:00
turleypol
798eda5b63
Cleanup of header includes.
2018-01-01 21:52:14 +01:00
Fernando Rozenblit
81ef24d781
UOExecutor now tells if the script could be suspended
...
Scripts which are running to completion outside the ScriptScheduler
can't be suspended. This will now be tested by the UOExecutor (as
os_module->suspend() doesn't care).
2017-07-30 20:10:19 +02:00
Fernando Rozenblit
fda9341823
Changed the stack in the executor from deque to vector. About 10% performance gain in tests.
2017-07-29 21:51:19 +02:00
turley
f9c3db9e41
Modules share the same (helper) template base class
...
Optimize function name search for all modules not only uo by using an additional map, replaced c array with vector for functionsdef.
Simplified pragma pack order. (MSVC version is supported in all
compilers)
Removed compilerassert.h (asserteql,..) replaced with static_assert
Removed some old #ifs
2016-12-20 23:53:32 +01:00
turley
189cad3479
Formating everything
...
Authors are not forced to use the clang-format setting, but should
atleast be inspired by the style.
The only thing which is now not allowed are tabs for ident/alignment!
2016-02-19 19:26:35 +01:00
turley
ed7b16b233
normalized lineendings
2016-02-11 22:54:43 +01:00
Gabriele Tozzi
d1ac902926
Documentation: reformatted headers for DoxyGen
2016-01-28 14:52:40 +01:00
turley
6de0c7e1c0
added define to use boost regex (older gcc has bug in std version)
...
added define for the git revision and centralized others
2016-01-19 21:04:40 +01:00
turley
b77a13073c
corrected several data races
2015-03-14 11:45:14 +01:00
frozenblit
943b820eba
More and more cleanups
...
Added some missing include guards, corrected wrong include guard names.
Removed more stl_inc.h includes.
2014-11-02 19:40:40 +01:00
frozenblit
d7fe789c65
More cleanups
2014-10-31 23:59:51 +01:00
turley
1a054e76e3
moved some escript function names into flyweight.
2014-08-15 15:27:46 +02:00
turley
331792c755
added more memoryusage estimation
2014-06-07 09:00:37 +00:00
turley
c42241df61
some minor logging stuff
2014-03-08 07:32:36 +00:00
turley
31ee263a45
activated new logging facility
2014-01-18 13:29:38 +00:00
turley
99d7dc3037
namespaces...finally :)
...
Hard part is finished every file is touched. Namespaces are currently rough named by directory name.
Maybe we could split it more
2013-12-21 09:10:46 +00:00
turley
90f1fc9248
implemented the std mutex
2013-09-13 19:03:25 +00:00
turley
4c7f70fc79
first version of a generic message_queue (currently not lockfree, need to test more)
...
replaced old auto_ptr with unique_ptr
2013-09-13 18:07:19 +00:00
turley
e6851b8b99
more codecleanup
2012-10-06 09:54:20 +00:00
turley
49b6d30aaa
Some code cleanups
...
fixed possible crash with speech tokens
2012-09-28 16:58:05 +00:00
turley
269f6e9069
secured: executor_instances, gameclock and logfile
...
added LEAK_DEBUG define:
disables the fixed allocs and uses direct new/delete, useful in conjunction with define of _STLP_USE_NEWALLOC in stlport/stl/config/host.h (rebuild of STLPORT required) to see real leaks
fixed leak of intrinsic weapons
small speedup for map packet
2012-08-27 17:47:15 +00:00
turley
fac3213f2a
finally support for +=,-=,*=,/=,%= with objectmembers, like who.resist_fire_mod+=1
2012-01-03 14:53:36 +00:00
turley
4e7e400254
64bit compilation..
2011-12-23 13:28:38 +00:00
turley
22c1e43429
ESCRIPT_PROFILE now measures time in microsecond instead of milliseconds
2011-03-17 16:45:43 +00:00
turley
981ff65c43
-added ESCRIPT_PROFILE #define stops the execution time of functions/members/methods PolCore().internal(1) logs it into debug.log
...
-added globalproperty file for PreprocessorDefinitions (i hate to set needed defs in every proj) vs2008/10 only
-some speedups
-removed "Waah! ..." prints on heal/damage dead chr
-fixed "*.. is attacking you!*"
2011-03-04 14:32:18 +00:00
turley
7f1dc83acf
some minor namespace fixes
2011-02-05 12:24:00 +00:00
turley
1a155cde33
pktwriter test functions #define
...
Fixed: exported function calls a different exported function stops execution (eg repsys functions in same script)
2010-08-09 11:05:16 +00:00
turley
e10cd27cea
sync: shini - long to int (prerequisit for 64-bit)
2010-03-29 14:52:03 +00:00
turley
8084d7c0e4
more cleanup
...
+pre-incrementing of iters is faster
2009-10-07 10:55:39 +00:00
turley
2e39309bf1
coordinate vartype cleanup, i hope no new bugs :(
2009-09-10 12:24:52 +00:00
turley
07e1c0daad
Added: struct .? and .- as shortcut for .exists() and .erase()
2009-09-05 16:22:35 +00:00
muaddib_pol
d032ee448f
+ POL is now, open source.
2009-09-03 19:44:42 +00:00