P0nk
0c9643fd7e
CharacterSaver integration test with Testcontainers
2024-09-15 11:41:03 +02:00
P0nk
e57d2a9ee2
Create account, chr tables & save chr to Postgres
2024-09-14 17:44:48 +02:00
P0nk
7297cd09b6
Separate PG from MySQL chr saving
2024-09-14 14:56:15 +02:00
P0nk
08eeeb54dc
Rename ...Dao -> ...Repository
2024-09-14 12:06:09 +02:00
P0nk
abbec8120e
Restructure chr saving - gather stats in record
2024-09-14 11:57:54 +02:00
P0nk
23a8a33e5f
Move transaction handling to CharacterSaver
2024-09-13 23:59:29 +02:00
P0nk
f41268cdde
Handle disconnect solely in TransitionService
2024-09-13 22:59:55 +02:00
P0nk
4e39142fb3
Direct almost all chr saving through CharacterSaver
...
Client#disconnectInternal remains.
Had to remove some configurable save points to keep it simple.
2023-08-04 16:14:51 +02:00
P0nk
e52f646558
Fix batch insert monster cards
...
batch.add() clears all bindings, unlike vanilla JDBC
2023-08-04 15:38:14 +02:00
P0nk
05b7ec77c8
Add ChannelService to handle cc'ing
2023-08-04 15:01:49 +02:00
P0nk
f6aa8ceba6
Rewrite MonsterBook, touch up chr loading
...
Temporarily disabled loading monster cards from db
2023-07-25 21:27:35 +02:00
P0nk
b3ec325e95
Add monster card table and initial dao
2023-07-25 18:46:03 +02:00
P0nk
e31465a1b5
Add MonsterCard
2023-07-25 17:52:38 +02:00
P0nk
2139147dcd
Add getShop to DAO, preparing to refactor shop loading
2023-03-29 21:14:19 +02:00
P0nk
a496c0f2b4
Add ShopDao
2023-03-18 14:32:21 +01:00
P0nk
f2f3abdb32
Move last pieces of monster drops to DropProvider
2023-03-16 18:55:33 +01:00
P0nk
5a35b55d7a
Cache continent drops
2023-03-16 18:03:43 +01:00
P0nk
02aa4a237f
Global monster drops are retrieved from DropProvider (postgres db)
2023-03-16 18:00:21 +01:00
P0nk
703ae30a27
Move "steal item" logic to DropProvider
2023-03-15 22:22:14 +01:00
P0nk
6bf8785f22
Fix error in monster_drop query
2023-03-15 22:17:42 +01:00
P0nk
53768555a2
Add table, data, and provider method for global drops
2023-03-09 20:08:20 +01:00
P0nk
a70f4e303d
Add DropProvider and dao for monster drops
2023-03-08 22:46:24 +01:00
P0nk
0be48568d7
Get MakerItemCreateEntry from new info provider
2023-03-08 21:09:47 +01:00
P0nk
d2d4b442d2
Maker disassembly info to MakerInfoProvider
...
MakerProcessor is such a mess...
2023-03-04 22:33:34 +01:00
P0nk
9d6574d3ba
Cache maker info with Caffeine
2023-03-04 21:27:18 +01:00
P0nk
f2ca67aba4
Add tests for MakerInfoProvider
...
These are going to be handy soon,
as I'm about to add Caffeine for caching.
2023-03-04 21:02:04 +01:00
P0nk
6073b20d65
Cache MakerRecipe, move stimulant to MakerInfoProvider
2023-03-04 17:20:16 +01:00
P0nk
c0c0a2d2d9
Get maker reagent from PG db, rework processor (no statics)
2023-03-02 08:18:13 +01:00
P0nk
b7c79800eb
Fix note not showing if case mismatch in name
...
This wouldn't be a problem in the first case,
if there was a foreign key connection between
note and character tables.
Can't add that quite yet though.
2023-02-28 21:30:20 +01:00
P0nk
12745c207d
Move notes to the Postgres database
2023-02-25 00:40:36 +01:00
P0nk
f6f3c9c3e3
Initiate Postgres connection pool on startup
2023-02-25 00:11:33 +01:00
P0nk
8bb825ef02
Add Docker compose support for Postgres
2023-02-24 23:42:13 +01:00
P0nk
f1192279bf
Add Flyway, run db migration in local PostgreSQL db
...
First step in my plan to switch away from MySQL.
2023-02-24 21:49:00 +01:00
P0nk
387437cada
Workaround for Guild dependence on NoteDao
2022-12-27 11:05:00 +01:00
P0nk
af14da987e
Replace FredrickProcessor dependence on NoteDao
2022-12-27 11:04:11 +01:00
P0nk
389b3ad2a4
Add NoteService to handle note operations
...
NoteService should be the only class with access to NoteDao;
nowhere else should NoteDao be accessed directly.
Channel dependencies are static in PacketProcessor, for now.
Ideally they would be injected in the constructor,
but since the constructor is private and I don't want to open
up that can of worms, I'll leave it like this.
At the very least, now we have a way of injecting services into
the handlers. This will make further restructuring way easier.
2022-12-27 10:34:55 +01:00
P0nk
5f1f5b7dcd
Fix saving note
2022-12-27 10:24:47 +01:00
P0nk
605f2e212e
Add NoteDao, used by NoteActionHandler to delete note when read
2022-12-26 18:07:41 +01:00