Daniel López Guimaraes
21fdc4730e
refactor: Replace AnyDataHolder with AnyObjectHolder
2025-01-09 23:24:02 +00:00
Daniel López Guimaraes
d7f8b585c1
feat: Migrate to new nex-go types
2025-01-01 19:55:13 +00:00
Daniel López Guimaraes
e853c5df55
fix(match-making): Change host when host disconnects
...
Assign a new host when the current host is disconnecting from a
gathering. To simplify the implementation, set the owner of the
gathering as the new host.
Fixes Splatoon where the client doesn't transfer the host by
themselves.
2024-10-03 20:13:33 +01:00
Daniel López Guimaraes
0290f5c994
feat(match-making): Implement JoinMatchmakeSessionBehavior
...
Also include some minor fixes.
2024-09-01 01:54:36 +01:00
Daniel López Guimaraes
808a786461
fix(match-making): Check if participants are allowed to change owner
2024-08-31 12:31:36 +01:00
Daniel López Guimaraes
69e3b1f342
feat(match-making): Add tracking system
...
Keep tracking on gathering (un)registrations, participants joining and
leaving and host and owner changes. All tracking is managed inside the
database functions except for the host and owner changes.
The `matchmaking.participants` now remains useless from this change at
the moment, so remove it for now.
2024-08-31 00:27:51 +01:00
Daniel López Guimaraes
8caa52cbbe
feat: Add MatchmakingManager abstraction
...
Allows removal of matchmake_extension_database dependency inside
match-making
2024-07-03 02:08:45 +01:00
Daniel López Guimaraes
20f418e04f
feat(matchmake-extension): Support user and system password
2024-07-01 20:08:44 +01:00
Daniel López Guimaraes
ed1f78ccfa
fix(match-making): Don't use "negative" PIDs for extra participants
...
The concept of negative PIDs was a guess and wouldn't make sense on the
Switch. Instead, replace it with storing the "main" PID multiple times
on the participants array.
2024-07-01 19:26:43 +01:00
Daniel López Guimaraes
cc89c2ed3f
feat(match-making): Split participant disconnect from new joins
2024-06-30 16:10:34 +01:00
Daniel López Guimaraes
03912fde5b
fix(find_by_single_id): Add missing mutex unlocks
2024-06-30 16:09:03 +01:00
Daniel López Guimaraes
54f171f298
fix(get_session_urls): Don't get station URLs from owner PID
...
Doing that wouldn't work anyway on games.
2024-06-30 16:07:31 +01:00
Daniel López Guimaraes
e71f872ac1
feat!: Matchmaking rewrite
2024-06-30 14:08:39 +01:00
Daniel López Guimaraes
d435690ad0
match-making: Send notification on UpdateSessionURL
2024-04-08 20:36:24 +01:00
Daniel López Guimaraes
dfe7dba66b
chore: Update module version to v2
2024-04-07 23:56:20 +01:00
Daniel López Guimaraes
67fb7c2dd3
match-making: Set original owner on ownership change notification
2024-04-06 18:19:25 +01:00
Daniel López Guimaraes
656fa0fafb
match-making: Use MutexSlice for connection IDs
2024-03-23 19:25:10 +00:00
Daniel López Guimaraes
34f42e501d
chore: Use nex-go constants
2024-03-17 22:37:34 +00:00
PabloMK7
a8cc302e32
Remove unneeded import
2024-03-06 14:11:47 +01:00
PabloMK7
3d22887dc8
Removing lingering "Leaving" print
2024-03-06 14:04:04 +01:00
Daniel López Guimaraes
7f33824207
match-making: Fix wrong session ownership check
2024-02-22 16:12:18 +00:00
Jonathan Barrow
2728968441
update: added OnAfter event handlers for common methods
2024-02-13 16:34:03 -05:00
Daniel López Guimaraes
b6c8028476
refactor: Remove common protocols global variables
2024-02-11 14:51:26 +00:00
Daniel López Guimaraes
410ca40c01
refactor: Update ServerInterface to EndpointInterface
...
Also update method handlers to use the new nex.Error return.
2024-02-11 00:33:30 +00:00
Daniel López Guimaraes
bbb4872e89
Fix typos and use account getters from endpoint
2024-01-25 17:39:32 +00:00
Jonathan Barrow
d15b82cc12
chore: nex.Errors -> nex.ResultCodes
2024-01-24 16:51:45 -05:00
Jonathan Barrow
ce83fe9720
chore: update to new types
2024-01-22 12:40:37 -05:00
Daniel López Guimaraes
33c6ccc225
Update RMC method creation
2023-12-16 15:46:55 +00:00
Daniel López Guimaraes
6aa24a9ccf
Rename common protocols to CommonProtocol
...
This reduces the redundancy and follows better the Go style.
2023-12-14 23:21:01 +00:00
Daniel López Guimaraes
5168b5c3d4
Update PRUDP cast comments
...
Now that the websockets server is integrated into PRUDPServer, we have
to question if we even want to remove these casts, since it doesn't make
much sense for HPP.
Also updaete SecureConnection::Register to support TCP addresses on the
client for websocket implementations.
2023-12-14 21:33:25 +00:00
Jonathan Barrow
a5300196f8
match-making: spacing issue in protocol.go
2023-12-14 14:46:03 -05:00
Jonathan Barrow
365fe3f1e3
renamed matchmaking and matchmaking-ext to match protocol lib
2023-12-14 04:16:59 -05:00