mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +00:00
Create placeholder for ID_GAME_JOURNAL
This commit is contained in:
parent
a69f294ef0
commit
e9b22814b9
7 changed files with 50 additions and 2 deletions
|
@ -242,6 +242,14 @@ void Networking::processPlayerPacket(RakNet::Packet *packet)
|
|||
break;
|
||||
}
|
||||
|
||||
case ID_GAME_JOURNAL:
|
||||
{
|
||||
DEBUG_PRINTF("ID_GAME_JOURNAL\n");
|
||||
myPacket->Read(player);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case ID_GAME_ATTACK:
|
||||
{
|
||||
DEBUG_PRINTF("ID_GAME_ATTACK\n");
|
||||
|
|
|
@ -346,6 +346,10 @@ void Networking::processPlayerPacket(RakNet::Packet *packet)
|
|||
}
|
||||
break;
|
||||
}
|
||||
case ID_GAME_JOURNAL:
|
||||
{
|
||||
break;
|
||||
}
|
||||
case ID_GAME_ATTACK:
|
||||
{
|
||||
if (pl != 0)
|
||||
|
|
|
@ -157,8 +157,8 @@ add_component_dir (openmw-mp
|
|||
Packets/Player/PacketChatMessage Packets/Player/PacketCharGen Packets/Player/PacketAttribute
|
||||
Packets/Player/PacketSkill Packets/Player/PacketLevel Packets/Player/PacketHandshake
|
||||
Packets/Player/PacketGUIBoxes Packets/Player/PacketClass Packets/Player/PacketTime
|
||||
Packets/Player/PacketInventory Packets/Player/PacketSpellbook Packets/Player/PacketActiveSkills
|
||||
Packets/Player/PacketPlayerCellChange
|
||||
Packets/Player/PacketInventory Packets/Player/PacketSpellbook Packets/Player/PacketJournal
|
||||
Packets/Player/PacketActiveSkills Packets/Player/PacketPlayerCellChange
|
||||
|
||||
Packets/World/PacketObjectDelete Packets/World/PacketObjectPlace Packets/World/PacketObjectLock
|
||||
Packets/World/PacketObjectUnlock Packets/World/PacketObjectScale Packets/World/PacketObjectMove
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include "../Packets/Player/PacketLoaded.hpp"
|
||||
#include "../Packets/Player/PacketInventory.hpp"
|
||||
#include "../Packets/Player/PacketSpellbook.hpp"
|
||||
#include "../Packets/Player/PacketJournal.hpp"
|
||||
#include "../Packets/Player/PacketConsole.hpp"
|
||||
#include "../Packets/Player/PacketActiveSkills.hpp"
|
||||
#include "../Packets/Player/PacketPlayerCellChange.hpp"
|
||||
|
@ -67,6 +68,7 @@ mwmp::PlayerPacketController::PlayerPacketController(RakNet::RakPeerInterface *p
|
|||
AddPacket<PacketLoaded>(&packets, peer);
|
||||
AddPacket<PacketInventory>(&packets, peer);
|
||||
AddPacket<PacketSpellbook>(&packets, peer);
|
||||
AddPacket<PacketJournal>(&packets, peer);
|
||||
|
||||
AddPacket<PacketActiveSkills>(&packets, peer);
|
||||
|
||||
|
|
|
@ -33,6 +33,7 @@ enum GameMessages
|
|||
ID_GAME_TIME,
|
||||
ID_GAME_INVENTORY,
|
||||
ID_GAME_SPELLBOOK,
|
||||
ID_GAME_JOURNAL,
|
||||
ID_GAME_ACTIVESKILLS,
|
||||
|
||||
ID_PLAYER_CELL_CHANGE,
|
||||
|
|
15
components/openmw-mp/Packets/Player/PacketJournal.cpp
Normal file
15
components/openmw-mp/Packets/Player/PacketJournal.cpp
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||
#include "PacketJournal.hpp"
|
||||
|
||||
using namespace std;
|
||||
using namespace mwmp;
|
||||
|
||||
PacketJournal::PacketJournal(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
|
||||
{
|
||||
packetID = ID_GAME_JOURNAL;
|
||||
}
|
||||
|
||||
void PacketJournal::Packet(RakNet::BitStream *bs, BasePlayer *player, bool send)
|
||||
{
|
||||
PlayerPacket::Packet(bs, player, send);
|
||||
}
|
18
components/openmw-mp/Packets/Player/PacketJournal.hpp
Normal file
18
components/openmw-mp/Packets/Player/PacketJournal.hpp
Normal file
|
@ -0,0 +1,18 @@
|
|||
#ifndef OPENMW_PACKETJOURNAL_HPP
|
||||
#define OPENMW_PACKETJOURNAL_HPP
|
||||
|
||||
#include <components/openmw-mp/Packets/Player/PlayerPacket.hpp>
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class PacketJournal : public PlayerPacket
|
||||
{
|
||||
public:
|
||||
PacketJournal(RakNet::RakPeerInterface *peer);
|
||||
|
||||
virtual void Packet(RakNet::BitStream *bs, BasePlayer *player, bool send);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
#endif //OPENMW_PACKETJOURNAL_HPP
|
Loading…
Reference in a new issue