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
pirms 4 gadiem
Martin Dørum
c108c704ca
cmake stuff
pirms 4 gadiem
Martin Dørum
976d9b4b9c
replace core::air with @::air
"@internal::" is also renamed to "@::" for libswan-internal stuff.
pirms 4 gadiem
Martin Dørum
07c46110e5
removed unused line
pirms 4 gadiem
Martin Dørum
e9c9c862e8
mods are responsible for creating the mod object now, not just init
pirms 4 gadiem
Martin Dørum
d25a7f8458
nicer entity ctors
pirms 4 gadiem
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.
pirms 4 gadiem
Martin Dørum
56e541b9b2
renderbuf is vestigial
pirms 4 gadiem
Martin Dørum
24b8fdcd8d
more optimization
pirms 4 gadiem
Martin Dørum
08d7346d5b
optimization
pirms 4 gadiem
Martin Dørum
e03e9071b8
fix some collision stuff
pirms 4 gadiem
Martin Dørum
d6e70b49d5
always clear texture
pirms 4 gadiem
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)
pirms 4 gadiem
Martin Dørum
b505a28a6f
new deps
pirms 4 gadiem
Martin Dørum
491481e63a
more renaming
pirms 4 gadiem
Martin Dørum
253c24148e
WGDefault -> DefaultWorldGen
pirms 4 gadiem
Martin Dørum
be5ac63730
visuals
pirms 4 gadiem
Martin Dørum
bb1817ac7a
texture stuff
pirms 4 gadiem
Martin Dørum
9f6f2abd9b
deeper
pirms 4 gadiem
Martin Dørum
056579e6be
cave background stuff
pirms 4 gadiem
Martin Dørum
f6c5526b94
delete instead of compressing unmodified chunks
pirms 4 gadiem
Martin Dørum
903774f7a7
caves
pirms 4 gadiem
Martin Dørum
743d7e3435
fix thing
pirms 4 gadiem
Martin Dørum
6adf67043f
oh go on then, have 32x32 chunks
pirms 4 gadiem
Martin Dørum
246dae6cb9
fix imgui_sdl
pirms 4 gadiem
Martin Dørum
1e8a87930a
small stuff
pirms 4 gadiem
Martin Dørum
ce70c058aa
mostly performance stuff
pirms 4 gadiem
Martin Dørum
3f4040720d
minor stuff
pirms 4 gadiem
Martin Dørum
55e1bb4d41
maybe this is better?
pirms 4 gadiem
Martin Dørum
91d7ef454c
nicer syntax for range-y stuff
pirms 4 gadiem
Martin Dørum
ab8b5fb9f1
tiny perf counter change
pirms 4 gadiem
Martin Dørum
f9277a2334
add const to equality operators
pirms 4 gadiem
Martin Dørum
fa163b4bd3
more pure functional tile gen
pirms 4 gadiem
Martin Dørum
d951cbe6ef
plots
pirms 4 gadiem
Martin Dørum
051d044dbf
add compile_commands to all
pirms 4 gadiem
Martin Dørum
7907c531a3
ignore compile_commands.json
pirms 4 gadiem
Martin Dørum
1a64feb187
just a bunch of stuff
pirms 4 gadiem
Martin Dørum
09899a4b20
compile_commands target
pirms 4 gadiem
Martin Dørum
bcc6e9f421
make clang-tidy happier
pirms 4 gadiem
Martin Dørum
a6267cd1ae
zooming, and nicer input handling
pirms 4 gadiem
Martin Dørum
c6ffa3c7d5
basic imgui integration (now with SDL)
pirms 4 gadiem
Martin Dørum
5794938993
inventory stuff mainly
pirms 4 gadiem
Martin Dørum
ca776fc1ba
get all ents which implement a trait
pirms 4 gadiem
Martin Dørum
f1cb802ee1
inventory trait
pirms 4 gadiem
Martin Dørum
c90512a9c9
ItemStack ctor stuff
pirms 4 gadiem
Martin Dørum
d4f08974a5
item stack stuff, mockable Item
pirms 4 gadiem
Martin Dørum
76a759d2d0
thanks, clang-tidy
pirms 4 gadiem
Martin Dørum
49b180cea4
tiny stuff
pirms 4 gadiem
Martin Dørum
6cec8cea31
started on inventory stuff
pirms 4 gadiem
Martin Dørum
f0825c4786
added BodyTrait::StaticBody
pirms 4 gadiem