Commit graph

88 commits

Author SHA1 Message Date
turleypol
a3eda8818e fixed crash while creating house components
fixed moveitem
2020-09-06 19:47:27 +02:00
turleypol
a19228fdc6 updated customhouses to use Pos/Vec 2020-06-21 15:25:25 +02:00
turleypol
a81ddaf816 MultiDef min/max Vec3d 2020-05-31 19:11:42 +02:00
turleypol
4edcd7fd31 MULTI_ELEM contains now Vec3d 2020-05-31 14:01:05 +02:00
turleypol
ef21af3e0c realm functions like walkheight now expect and return s8 for z level 2020-04-19 12:46:57 +02:00
turleypol
9040333c5e minimal solution for compilation of multis 2020-04-18 11:57:19 +02:00
turleypol
2506ab8516 Area2d git intersect method, partial cleanup of house.cpp 2020-04-18 10:02:19 +02:00
turleypol
532d6d06ca made realm::zone private and change layout to be cache friendly for
iteration
2020-04-17 19:17:05 +02:00
Kevin Eady
be1e045df5 house.cpp compiles 2020-04-16 22:13:49 +02:00
Fernando Rozenblit
6ae7095a9f Added supporting_multi() to UObject. Fixed a lot of code. Still too much to go. 2020-04-05 00:05:04 +02:00
turleypol
9cd43476eb interface extensions, converted core/create and directly called
functions
2020-04-04 17:22:24 +02:00
turleypol
a27853a575 updated uworld 2020-04-02 07:58:44 +02: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
e6edceef65 cleanup of debug prints 2019-12-28 17:56:32 +01:00
turleypol
77082944d2 readshapes of customhouses include teleporters which are components 2019-12-22 19:41:03 +01:00
turleypol
4f0d29a4b6 try to fix the problem that clearcomponents does not work when a teleporter replaced a floor tile 2019-12-22 13:42:49 +01:00
turleypol
22cafd7ffb added a few debug prints for customhousing 2019-12-18 20:30:36 +01:00
turleypol
483d7ebf17 CustomHouses: do not allow a new commit when waiting for another. house.house_parts return current list of parts when in editing mode instead of an error 2019-12-13 20:07:52 +01:00
Kevin Eady
c002cdd5c3 Remove osmodule includes 2019-03-15 00:58:55 +01:00
Kevin Eady
44f2ebbe90 Refactor to make os_module private in UOExecutor 2019-03-11 21:37:51 +01:00
turleypol
25dae4fc21 fixed namespaces of moved files 2018-12-22 00:32:47 +01:00
turleypol
e1b14dcd00 moved polfile/uofile files into plib to cleanup atleast a bit the
compile dependencies
2018-12-21 20:27:05 +01:00
turleypol
983c6a3c73 first round for scripted object class methods 2018-10-13 00:03:40 +02:00
esdete
dc2d29b433 NULL to nullptr 2018-07-31 14:30:29 +02:00
Gabriele Tozzi
b72f725e02 Whitespace fixes 2018-04-03 04:13:03 +02: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
turley
679243c14c fixed reset of the house property after component remove. 2017-05-01 14:42:18 +02:00
turley
099c81d572 Fixed some variable names hiding class members 2016-08-28 15:38:35 +02: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
a62d080a42 Fix warning and minor improvements in recently modified housing code 2016-01-25 18:54:53 +01:00
Gabriele Tozzi
fd24da5cd1 Documentation: reformatting some comment blocks 2016-01-25 01:17:56 +01:00
Gabriele Tozzi
4a02fa110d Fix: usage of assert() in my previous commits due to inexperience
Also fixed a rval issue in recently modified house components code.
2016-01-21 18:43:45 +01:00
Gabriele Tozzi
e979010408 Added: New Item.house property
Returns a reference to the house if the item is a component of it
(listed in House.components()).
This is the intended replacement for the previously removed CProp
"house_serial": use item.house.serial instead of
GetObjProperty(item, "house_serial").
2016-01-20 05:00:32 +01:00
Gabriele Tozzi
a5efaa4fa6 Merge branch 'master' of https://github.com/polserver/polserver into cmake 2015-12-05 09:41:51 +01:00
frozenblit
b3b9bb1fb6 Removing dependence on useless includes.
Preparing to reorganize the uofile code by removing useless includes
from the rest ;)
2015-12-04 00:50:14 +01:00
Gabriele Tozzi
24eee9ecf4 Merge branch 'master' of https://github.com/polserver/polserver into cmake
Conflicts solved, still need to test and review it before merging into master.
2015-11-27 06:26:46 +01:00
Gabriele Tozzi
6c9df527d7 Removed: "house_serial" CProp is not set by core for house components
I generated a CProp collision on old ZuluHotel-based shards.
As a general rule, I think core should not use CProps.
2015-10-06 21:35:42 +02:00
turley
dfd65e30cd Moved plib realm to pol 2015-09-18 19:11:46 +02:00
Thomas Volkert
1dd2200c6b Renamed endian.h to clib_endian.h to avoid redefinition problems in
system files and the general hiding of the endian.h from the system
2015-08-31 20:01:31 +02:00
turley
e8b46466fa Simplified WorldIterator more
completely removed wrldsize header
simplified more headers
changed zone_convert* parameter from non-const reference to pointer, to make the caller clear that it will change.
2015-01-03 10:15:31 +01:00
turley
79dff37246 Splitted gamestate external. 2015-01-02 14:46:44 +01:00
turley
88ec380941 Moved globals into separate directory. 2014-12-30 15:20:59 +01:00
turley
2737393f2a Tried to put all global vars into centralized structures.
Currently plib/systemstate, pol/uvars, pol/ucfg, pol/multi/multidef

Next step should be to split them based on usage, since its currently a bit of include hell...
2014-12-30 14:14:41 +01:00
turley
122f8fd25f Cleanup of Remove Object pkt
Added override and final makro
2014-11-22 12:28:15 +01:00
turley
dd4d4c0f9a Added new WorldIteratorFilter for active client only players
Fixed warning during pkt write of sound effects.
2014-11-21 21:28:09 +01:00
frozenblit
ecb13b694d Never-ending cleanup 2014-11-02 00:20:20 +01:00
turley
845a54251d Removed some duplicate error strings, fixed some warnings. 2014-10-31 18:15:56 +01:00
frozenblit
ab13968e74 Fixed missing breaks for house script methods 2014-10-28 19:00:48 +01:00