5b78c3dbd4
added entity_test.go
2023-11-25 23:36:23 -06:00
bb50948935
minor styling fix
2023-11-25 23:15:47 -06:00
d32facf363
swithed to blackbox testing
...
just because i am lazy
2023-11-25 23:11:19 -06:00
4419260cd0
rename TestPacket -> TestPacketEncodeDecode
...
also, verify encoded bytes to a sample
2023-11-22 20:04:53 -06:00
9df5a3d0d5
start packet_test.go; minor packet.go refactoring
2023-11-22 18:18:22 -06:00
7eece044c5
more better db tests; use psql 15, not latest
...
- our db_test tests now use psql version 15 (which is the same
version our docker-compose file uses) for consistency.
- also added another test, TestDBPlayer
2023-11-22 15:41:31 -06:00
e8f8129b35
fix: SetPlayerInventorySlots actually uses tx now
...
lol, must've been a typo
2023-11-21 14:13:55 -06:00
f95cc2cae7
test: started internal/db test cases
...
- we use github.com/bitcomplete/sqltestutil to spin up a postgresql
container to test against
- minor error variable refactoring
2023-11-21 13:58:59 -06:00
459b71a109
fix: Chunks are now goroutine safe
...
- added Chunk.ForEachEntity()
- refactored SendPacketExclude() to use it
- Chunk.Entities is now Chunk.entities, which is private.
- Chunk.AddEntity() && RemoveEntity() now lock the chunk mutex
2023-11-21 01:49:57 -06:00
06f4a4d33f
minor chunk refactoring
...
- rename GetChunk -> GetChunkPos
- rename SetChunk -> SetChunkPos
2023-11-21 01:36:23 -06:00
3e04103ae4
fix formatting
2023-09-18 21:09:20 -05:00
3559682d18
genstructs.py: generate PacketIDToString()
...
this will be nice to have for debugging
2023-09-18 20:46:37 -05:00
458e907c99
moved 'core' to 'internal'
2023-08-23 18:16:24 -05:00