-
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
541 additions
and
52 deletions.
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
17 changes: 11 additions & 6 deletions
17
skymp5-client/src/services/messages/customPacketMessage.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
import { MsgType } from "../../messages"; | ||
|
||
// export interface CustomPacketMessage { | ||
// t: MsgType.CustomPacket, | ||
// content: CustomPacketMessageContent | ||
// } | ||
|
||
// interface CustomPacketMessageContent { | ||
// customPacketType: string, | ||
// gameData: Record<string, unknown> | ||
// } | ||
|
||
export interface CustomPacketMessage { | ||
t: MsgType.CustomPacket, | ||
content: CustomPacketMessageContent | ||
} | ||
|
||
interface CustomPacketMessageContent { | ||
customPacketType: string, | ||
gameData: Record<string, unknown> | ||
contentJsonDump: string | ||
} |
This file was deleted.
Oops, something went wrong.
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
8 changes: 5 additions & 3 deletions
8
skymp5-client/src/services/messages/updateAnimVariablesMessage.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
11 changes: 8 additions & 3 deletions
11
skymp5-client/src/services/messages/updateGameModeDataMessage.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
export interface GamemodeValuePair { | ||
name: string; | ||
content: string; | ||
} | ||
|
||
export interface UpdateGamemodeDataMessage { | ||
type: "updateGamemodeData"; | ||
eventSources: Record<string, string>; | ||
updateOwnerFunctions: Record<string, string>; | ||
updateNeighborFunctions: Record<string, string>; | ||
eventSources: GamemodeValuePair[]; | ||
updateOwnerFunctions: GamemodeValuePair[]; | ||
updateNeighborFunctions: GamemodeValuePair[]; | ||
} |
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 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include "MessageBase.h" | ||
#include "MsgType.h" | ||
#include <type_traits> | ||
|
||
struct CustomPacketMessage : public MessageBase<CustomPacketMessage> | ||
{ | ||
static constexpr auto kMsgType = | ||
std::integral_constant<char, static_cast<char>(MsgType::CustomPacket)>{}; | ||
|
||
template <class Archive> | ||
void Serialize(Archive& archive) | ||
{ | ||
archive.Serialize("t", kMsgType) | ||
.Serialize("contentJsonDump", contentJsonDump); | ||
} | ||
|
||
std::string contentJsonDump; | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#pragma once | ||
#include "MessageBase.h" | ||
#include "MsgType.h" | ||
#include <type_traits> | ||
|
||
struct HostStartMessage : public MessageBase<HostStartMessage> | ||
{ | ||
static constexpr auto kMsgType = | ||
std::integral_constant<char, static_cast<char>(MsgType::HostStart)>{}; | ||
|
||
template <class Archive> | ||
void Serialize(Archive& archive) | ||
{ | ||
archive.Serialize("t", kMsgType).Serialize("target", target); | ||
} | ||
|
||
uint64_t target = 0; | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#pragma once | ||
#include "MessageBase.h" | ||
#include "MsgType.h" | ||
#include <type_traits> | ||
|
||
struct HostStopMessage : public MessageBase<HostStopMessage> | ||
{ | ||
static constexpr auto kMsgType = | ||
std::integral_constant<char, static_cast<char>(MsgType::HostStop)>{}; | ||
|
||
template <class Archive> | ||
void Serialize(Archive& archive) | ||
{ | ||
archive.Serialize("t", kMsgType).Serialize("target", target); | ||
} | ||
|
||
uint64_t target = 0; | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#pragma once | ||
#include "MessageBase.h" | ||
#include "MsgType.h" | ||
#include <type_traits> | ||
|
||
struct OnEquipMessage : public MessageBase<OnEquipMessage> | ||
{ | ||
static constexpr auto kMsgType = | ||
std::integral_constant<char, static_cast<char>(MsgType::OnEquip)>{}; | ||
|
||
template <class Archive> | ||
void Serialize(Archive& archive) | ||
{ | ||
archive.Serialize("t", kMsgType).Serialize("baseId", baseId); | ||
} | ||
|
||
uint32_t baseId = 0; | ||
}; |
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.