Martin Dørum
e20d10ee29
automatically center entity when spawning
hace 3 años
Martin Dørum
cc1c71717a
change InventoryTrait to new trait system
hace 4 años
Martin Dørum
b2fd4178df
new trait system, split Body into Body and Physics
hace 4 años
Martin Dørum
93ecc0a214
allow despawning entities
hace 4 años
Martin Dørum
9dfdf8541d
ridiculously fast relPost/chunkPos
hace 4 años
Martin Dørum
abc277b256
integrate tracy, cmake stuff, etc
hace 4 años
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
hace 4 años
Martin Dørum
976d9b4b9c
replace core::air with @::air
"@internal::" is also renamed to "@::" for libswan-internal stuff.
hace 4 años
Martin Dørum
e9c9c862e8
mods are responsible for creating the mod object now, not just init
hace 4 años
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.
hace 4 años
Martin Dørum
56e541b9b2
renderbuf is vestigial
hace 4 años
Martin Dørum
24b8fdcd8d
more optimization
hace 4 años
Martin Dørum
08d7346d5b
optimization
hace 4 años
Martin Dørum
e03e9071b8
fix some collision stuff
hace 4 años
Martin Dørum
d6e70b49d5
always clear texture
hace 4 años
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)
hace 4 años
Martin Dørum
253c24148e
WGDefault -> DefaultWorldGen
hace 4 años
Martin Dørum
be5ac63730
visuals
hace 4 años
Martin Dørum
056579e6be
cave background stuff
hace 4 años
Martin Dørum
f6c5526b94
delete instead of compressing unmodified chunks
hace 4 años
Martin Dørum
743d7e3435
fix thing
hace 4 años
Martin Dørum
6adf67043f
oh go on then, have 32x32 chunks
hace 4 años
Martin Dørum
1e8a87930a
small stuff
hace 4 años
Martin Dørum
ce70c058aa
mostly performance stuff
hace 4 años
Martin Dørum
55e1bb4d41
maybe this is better?
hace 4 años
Martin Dørum
91d7ef454c
nicer syntax for range-y stuff
hace 4 años
Martin Dørum
ab8b5fb9f1
tiny perf counter change
hace 4 años
Martin Dørum
f9277a2334
add const to equality operators
hace 4 años
Martin Dørum
d951cbe6ef
plots
hace 4 años
Martin Dørum
1a64feb187
just a bunch of stuff
hace 4 años
Martin Dørum
bcc6e9f421
make clang-tidy happier
hace 4 años
Martin Dørum
a6267cd1ae
zooming, and nicer input handling
hace 4 años
Martin Dørum
c6ffa3c7d5
basic imgui integration (now with SDL)
hace 4 años
Martin Dørum
5794938993
inventory stuff mainly
hace 4 años
Martin Dørum
ca776fc1ba
get all ents which implement a trait
hace 4 años
Martin Dørum
f1cb802ee1
inventory trait
hace 4 años
Martin Dørum
c90512a9c9
ItemStack ctor stuff
hace 4 años
Martin Dørum
d4f08974a5
item stack stuff, mockable Item
hace 4 años
Martin Dørum
76a759d2d0
thanks, clang-tidy
hace 4 años
Martin Dørum
6cec8cea31
started on inventory stuff
hace 4 años
Martin Dørum
f0825c4786
added BodyTrait::StaticBody
hace 4 años
Martin Dørum
9817aae87d
do huge movements in steps instead of at once
hace 4 años
Martin Dørum
a083706f6e
RenderSetLogicalSize to handle HiDPI
hace 4 años
Martin Dørum
564c448fbc
fix a SIOF issue
hace 4 años
Martin Dørum
656f558744
getEntsInArea
hace 4 años
Martin Dørum
4d7de9b27f
Iter stuff
hace 4 años
Martin Dørum
24798a387d
all those test files didn't really work out
hace 4 años
Martin Dørum
3b4ce891fe
traits
hace 4 años
Martin Dørum
173db9be7f
test collision below before above
hace 4 años
Martin Dørum
8b11f2f06d
indentation
hace 4 años