mirror of
https://github.com/CraftyBoss/SuperMarioOdysseyOnline.git
synced 2024-11-25 04:35:17 +00:00
22 lines
567 B
C
22 lines
567 B
C
|
#pragma once
|
||
|
|
||
|
#include "Packet.h"
|
||
|
#include "al/util.hpp"
|
||
|
|
||
|
struct GameInf : Packet {
|
||
|
GameInf() : Packet() {this->mType = PacketType::GAMEINF; mPacketSize = sizeof(GameInf) - sizeof(Packet);};
|
||
|
bool is2D = false;
|
||
|
u8 scenarioNo = -1;
|
||
|
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); }
|
||
|
|
||
|
};
|