-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add new message types and handlers, refactor client and server code #2264
Open
Pospelove
wants to merge
33
commits into
skyrim-multiplayer:main
Choose a base branch
from
Pospelove:moremsg
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 12 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
bdb89bc
.
Pospelove 370bc15
protoversion
Pospelove 5e0c84a
.
Pospelove 89418fe
.
Pospelove 4cf4c15
.
Pospelove 8578c7e
.
Pospelove 77643d3
thanks nixos
Pospelove a6ed95f
implement serialize methods for appearance struct
Pospelove 20d6bff
.
Pospelove fb2413c
.
Pospelove eb32b8d
progress
Pospelove 31eed12
wip-refact-deferred
Pospelove c03a2ac
wip
Pospelove a012aa4
cheat a bit to not implement std::map in archives
Pospelove 1524dbb
finalize visitor
Pospelove 2e152d7
try support variant in serialization archives
Pospelove 53bf59b
fix client
Pospelove d54cae2
b
Pospelove 644c834
hh
Pospelove 2c3d834
.
Pospelove 6b64330
upd
Pospelove cca53af
ee
Pospelove 80fa88b
wip fix compile
Pospelove 03ecec5
wip
Pospelove f2da0b3
fix all except variant serialization
Pospelove 92e4f24
j
Pospelove 4868bd2
fix
Pospelove 230c4bc
update
Pospelove f8f76ff
.
Pospelove d84c4e8
.
Pospelove 6f7a1a1
s
Pospelove 5dbfb90
fix-some-tests
Pospelove f25c2e5
c
Pospelove File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
skymp5-client/src/services/messages/deathStateContainerMessage.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import { MsgType } from "../../messages"; | ||
|
||
export interface DestroyActorMessage { | ||
type: "destroyActor"; | ||
t: MsgType.DestroyActor, | ||
idx: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import { MsgType } from "../../messages"; | ||
|
||
export interface HostStartMessage { | ||
type: "hostStart"; | ||
t: MsgType.HostStart; | ||
target: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import { MsgType } from "../../messages"; | ||
|
||
export interface HostStopMessage { | ||
type: "hostStop"; | ||
t: MsgType.HostStop; | ||
target: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import { Inventory } from "skyrimPlatform"; | ||
import { MsgType } from "../../messages"; | ||
|
||
export interface SetInventoryMessage { | ||
type: "setInventory"; | ||
t: MsgType.SetInventory; | ||
inventory: Inventory; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import { MsgType } from "../../messages"; | ||
|
||
export interface SetRaceMenuOpenMessage { | ||
type: "setRaceMenuOpen"; | ||
t: MsgType.SetRaceMenuOpen; | ||
open: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
returnValue
inFinishSpSnippetMessage
is defined asboolean | number | string
in TypeScript, but in C++ it's defined asstd::optional<std::variant<bool, double, std::string>>
. The use ofdouble
in C++ might lead to precision issues if the number is an integer in TypeScript. Consider aligning the types to avoid potential issues.