Martin Dørum
4a8694dc27
store entities contiguously in memory
There are still some things left to do:
* Implement despawn
* Maybe shrink SlotVector if there's a lot more free slots than occupied slots
* Implement iteration over entities
пре 4 година
Martin Dørum
976d9b4b9c
replace core::air with @::air
"@internal::" is also renamed to "@::" for libswan-internal stuff.
пре 4 година
Martin Dørum
e9c9c862e8
mods are responsible for creating the mod object now, not just init
пре 4 година
Martin Dørum
1fb53a1df3
event system
I know, I know, this segfaults on exit.
I need to make each mod subclass a Swan::Mod superclass
so that they can have EventListener structs which are
destroyed when the mod exits, and the mod has to exit
before the world goes away so that mods' EventListener
dtors can access their respective EventEmitters.
пре 4 година
Martin Dørum
56e541b9b2
renderbuf is vestigial
пре 4 година
Martin Dørum
24b8fdcd8d
more optimization
пре 4 година
Martin Dørum
08d7346d5b
optimization
пре 4 година
Martin Dørum
e03e9071b8
fix some collision stuff
пре 4 година
Martin Dørum
d6e70b49d5
always clear texture
пре 4 година
Martin Dørum
d808b8bcfb
this is a big one
* reworked some resource loading and mod init stuff
* texetures are now configured at runtime via .toml files
* moved from SRF to messagepack
* changed folder structures
* added the fmt library (for later)
пре 4 година
Martin Dørum
253c24148e
WGDefault -> DefaultWorldGen
пре 4 година
Martin Dørum
be5ac63730
visuals
пре 4 година
Martin Dørum
056579e6be
cave background stuff
пре 4 година
Martin Dørum
f6c5526b94
delete instead of compressing unmodified chunks
пре 4 година
Martin Dørum
1e8a87930a
small stuff
пре 4 година
Martin Dørum
ce70c058aa
mostly performance stuff
пре 4 година
Martin Dørum
55e1bb4d41
maybe this is better?
пре 4 година
Martin Dørum
ab8b5fb9f1
tiny perf counter change
пре 4 година
Martin Dørum
d951cbe6ef
plots
пре 4 година
Martin Dørum
1a64feb187
just a bunch of stuff
пре 4 година
Martin Dørum
bcc6e9f421
make clang-tidy happier
пре 4 година
Martin Dørum
a6267cd1ae
zooming, and nicer input handling
пре 4 година
Martin Dørum
c6ffa3c7d5
basic imgui integration (now with SDL)
пре 4 година
Martin Dørum
5794938993
inventory stuff mainly
пре 4 година
Martin Dørum
d4f08974a5
item stack stuff, mockable Item
пре 4 година
Martin Dørum
9817aae87d
do huge movements in steps instead of at once
пре 4 година
Martin Dørum
656f558744
getEntsInArea
пре 4 година
Martin Dørum
3b4ce891fe
traits
пре 4 година
Martin Dørum
173db9be7f
test collision below before above
пре 4 година
Martin Dørum
8b11f2f06d
indentation
пре 4 година
Martin Dørum
f5a74bc67d
NonCopyable, and fix up some copy/move stuff
пре 4 година
Martin Dørum
e1c9c0e4cd
don't redraw the entire chunk when a tile changes
пре 4 година
Martin Dørum
4fecdb3f88
move constructors
пре 4 година
Martin Dørum
19ca65b3de
TexLock should be movable and not copyable
пре 4 година
Martin Dørum
cc91b3da8d
TexLock
пре 4 година
Martin Dørum
e6ecab47f9
readability
пре 4 година
Martin Dørum
4c88962ccc
breakBlock fix
пре 4 година
Martin Dørum
50497bf571
fixed a couple issues
пре 4 година
Martin Dørum
f4727d76e7
started perf counter
пре 4 година
Martin Dørum
d06bede011
rendering
пре 4 година
Martin Dørum
d44754b089
chunk stuff
пре 4 година
Martin Dørum
98fcf0dde9
throttle chunk generation
пре 4 година
Martin Dørum
8781e63dfe
copy ctors should have noexcept
пре 4 година
Martin Dørum
a4652732ab
fix mod dynlib lifetime issues
пре 4 година
Martin Dørum
201dffd6fc
make World::addPlane slightly clearer
пре 4 година
Martin Dørum
77a9aca716
slowly but surely approaching feature parity
пре 4 година
Martin Dørum
432061954a
pre-convert pixel formats, other stuff
пре 4 година
Martin Dørum
52de01d886
chunk drawing works, though should be optimized probably
пре 4 година
Martin Dørum
f22b1e47e7
mod loading and resource stuff
пре 4 година
Martin Dørum
0993872ad5
at least it now draws _something_...
пре 4 година