mirror of
https://github.com/CraftyBoss/SuperMarioOdysseyOnline.git
synced 2024-11-25 12:45:17 +00:00
36f9343f83
Resend because: on server restarts the server will lose the stage and costume information. If only one client is connected to the server, the packets currently aren't resent, so the server doesn't know in which stage the client is and what costume it wears (which I'd like to display on the website). With more then one client connected it already works, because when another client joins the server, the client will send both packets.
22 lines
577 B
C
22 lines
577 B
C
#pragma once
|
|
|
|
#include "Packet.h"
|
|
#include "al/util.hpp"
|
|
|
|
struct PACKED GameInf : Packet {
|
|
GameInf() : Packet() {this->mType = PacketType::GAMEINF; mPacketSize = sizeof(GameInf) - sizeof(Packet);};
|
|
bool1 is2D = false;
|
|
u8 scenarioNo = 255;
|
|
char stageName[0x40] = {};
|
|
|
|
bool operator==(const GameInf &rhs) const {
|
|
return (
|
|
is2D == rhs.is2D &&
|
|
scenarioNo == rhs.scenarioNo &&
|
|
al::isEqualString(stageName, rhs.stageName)
|
|
);
|
|
}
|
|
|
|
bool operator!=(const GameInf& rhs) const { return !operator==(rhs); }
|
|
|
|
};
|