Commit Graph
304 Commits
Author SHA1 Message Date
Robin Eklind 27b40436a9 Use pointers instead of references for Devilution exported API
With this change, all exported declarations of Devilution are now
compatible with the C-ABI; that is, all declarations of Source/*.h.

This makes it possible to link against DevilutionX from mods written in
other languages than C++, for instance Rust, Go or Python.

Updates #612.
2020-02-14 22:41:13 +01:00
Anders Jenbo 40ba1e7a6f Merge branch 'master' of github.com:diasurgical/devilution 2020-02-01 14:48:39 +01:00
qndel c2587d9786 use enums (#1997) 2020-01-28 17:33:34 +01:00
qndel 3008439bc7 enums and stuff 2020-01-15 15:46:21 +01:00
Marco 29b9c99e5a added some more values from enums (#1955) 2020-01-14 17:30:13 +01:00
qndel f9558c81c4 AddObject cleanup 2020-01-07 16:35:03 +01:00
qndel 59ccb89e12 ProcessObjects cleanup 2020-01-07 06:50:54 +01:00
Marco a939a7f0be Enum for object trap 2020-01-06 20:26:55 +01:00
qndel 6a8e2f0e25 SetupObject cleanup 2020-01-03 03:14:53 +01:00
qndel b01f1907b5 Obj_Circle cleanup 2020-01-03 00:32:27 +01:00
qndel 1abb61cb64 OperateCauldron cleanup 2020-01-02 23:48:30 +01:00
qndel 3a66af638d OperateTrapLvr cleanup 2020-01-02 23:44:49 +01:00
qndel 3f9398812a SyncDoors cleanup 2020-01-02 23:44:17 +01:00
Marco 4626450e11 some more item based enum consts 2019-12-30 22:03:43 +01:00
Marco d6d60f0109 OperateSkelBook const IMISC_SCROLL 2019-12-28 16:25:29 +01:00
Anders Jenbo da03bae69d Merge branch 'master' of github.com:diasurgical/devilution 2019-12-25 20:38:25 +01:00
Anders Jenbo 0c90ad0527 Set bool values TRUE/FALSE 2019-12-22 23:57:10 +01:00
Anders Jenbo 9a704ff2f0 Merge branch 'master' of github.com:diasurgical/devilution 2019-12-19 01:05:01 +01:00
Anders Jenbo 5fa0c5781b Backport cleanups from Hellfire branch 2019-12-15 06:14:57 +01:00
galaxyhaxz 9c98c1e43d Fix all "pass by ref" functions 2019-12-02 09:16:01 +01:00
qndel 1414b7e2aa apply enum to max shrines 2019-11-30 14:35:23 +01:00
qndel 80ee6b2668 apply TRUE/FALSE 2019-11-30 14:34:52 +01:00
qndel 5cb4e9ad25 AddMagicCircle cleanup 2019-11-30 10:39:23 +01:00
qndel dd7a8d7b2d Obj_Trap cleanup 2019-11-30 10:37:48 +01:00
qndel 8ab71cb98b AddL1Door cleanup 2019-11-30 10:35:35 +01:00
Anders Jenbo 215ff59e65 Merge branch 'master' of github.com:diasurgical/devilution 2019-11-01 00:06:53 +01:00
galaxyhaxz 67fedd9e99 Fix unknown struct field and drawpanflag 2019-10-31 22:57:15 +01:00
Anders Jenbo 4e8a8d2157 Merge remote-tracking branch 'refs/remotes/devilution/master' 2019-10-26 13:43:28 +02:00
Anders Jenbo 0e578ffb11 Enable assertions 2019-10-22 19:04:55 +02:00
Robin Eklind e155a9423e rename random to random_ to avoid collision with random in stdlib.h
Fixes #1813.
2019-10-21 09:56:36 +02:00
galaxyhaxz 80840b4d69 PlrHasItem: change pointer to reference 2019-10-20 20:47:00 +02:00
Anders Jenbo 2079b67475 Drop dpiece_defs_map_1 memory access optimization
This also gets rid of IsometricCoord. They where used to map tiles in a
way that had a simpler access pattern when rendering the screen in
visual oriented rows.
See
https://github.com/diasurgical/devilution/pull/544#issuecomment-450968761
2019-10-20 15:59:47 +02:00
Anders Jenbo 73a7a1ae6d Remove unimplemented functions that aren't needed with SDL 2019-10-08 23:04:39 +02:00
Anders Jenbo d840f388c7 Merge branch 'master' of github.com:diasurgical/devilution 2019-10-08 22:05:10 +02:00
arczi84 1ab2fb2666 Endian madness 2019-10-08 02:28:03 +02:00
qndel 06e7b4dbdb more enums 2019-10-05 15:25:54 +02:00
qndel 7129558d0b apply enums 2019-10-05 15:24:44 +02:00
qndel 93f7c5f935 AddWeaponRack cleanup 2019-10-01 19:45:52 +02:00
qndel 2cef74bd57 AddArmorStand cleanup 2019-10-01 19:45:06 +02:00
Anders Jenbo 14f8c9368a Merge branch 'master' of github.com:diasurgical/devilution 2019-09-13 17:51:58 +02:00
qndel 7daee74e3d BreakCrux cleanup 2019-09-08 10:21:11 +02:00
Anders Jenbo 1f715f86f6 Clean up 2019-08-27 17:06:54 +02:00
Robin Eklind f4e8860297 objects: use boolean values for fileload 2019-08-27 14:59:53 +02:00
Anders Jenbo f605138c79 Strip ASM code 2019-08-26 13:33:03 +02:00
Anders Jenbo 98ab9b9600 Merge branch 'master' of github.com:diasurgical/devilution 2019-08-18 08:07:33 +02:00
Anders Jenbo 68d51e7d27 Implementing Spawned Shareware version 2019-08-12 16:04:20 +02:00
Anders Jenbo 2fcf8dab70 Merge branch 'master' of github.com:diasurgical/devilution 2019-07-21 19:39:17 +02:00
Anders Jenbo b023104434 Remove u from values 2019-07-21 00:57:53 +02:00
Anders Jenbo 5ab9f4609a Clean up signedness 2019-07-21 00:57:53 +02:00
Anders Jenbo aa50489569 Clean up generated comments 2019-07-21 00:57:53 +02:00