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
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
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
743d7e3435
fix thing
преди 4 години
Martin Dørum
6adf67043f
oh go on then, have 32x32 chunks
преди 4 години
Martin Dørum
ce70c058aa
mostly performance stuff
преди 4 години
Martin Dørum
55e1bb4d41
maybe this is better?
преди 4 години
Martin Dørum
91d7ef454c
nicer syntax for range-y stuff
преди 4 години
Martin Dørum
f9277a2334
add const to equality operators
преди 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
ca776fc1ba
get all ents which implement a trait
преди 4 години
Martin Dørum
f1cb802ee1
inventory trait
преди 4 години
Martin Dørum
c90512a9c9
ItemStack ctor stuff
преди 4 години
Martin Dørum
d4f08974a5
item stack stuff, mockable Item
преди 4 години
Martin Dørum
76a759d2d0
thanks, clang-tidy
преди 4 години
Martin Dørum
6cec8cea31
started on inventory stuff
преди 4 години
Martin Dørum
f0825c4786
added BodyTrait::StaticBody
преди 4 години
Martin Dørum
9817aae87d
do huge movements in steps instead of at once
преди 4 години
Martin Dørum
a083706f6e
RenderSetLogicalSize to handle HiDPI
преди 4 години
Martin Dørum
656f558744
getEntsInArea
преди 4 години
Martin Dørum
4d7de9b27f
Iter stuff
преди 4 години
Martin Dørum
3b4ce891fe
traits
преди 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
3b2479c791
texture alpha/color mods
преди 4 години
Martin Dørum
19ca65b3de
TexLock should be movable and not copyable
преди 4 години
Martin Dørum
cc91b3da8d
TexLock
преди 4 години
Martin Dørum
50497bf571
fixed a couple issues
преди 4 години
Martin Dørum
f4727d76e7
started perf counter
преди 4 години
Martin Dørum
0725e17589
indentation error
преди 4 години
Martin Dørum
d06bede011
rendering
преди 4 години
Martin Dørum
d44754b089
chunk stuff
преди 4 години
Martin Dørum
aa3b7ffa87
add a max delta time
преди 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 години