Result of NetLobby::Login().
More...
#include <loginresultmsg.h>
|
| static Message * | NewMessage (int nType) |
| | Produce a message of the identified class through the factory list.
|
Result of NetLobby::Login().
The RTTI includes the class name and records Message as the base.
◆ Result
Values of mResult.
| Enumerator |
|---|
| kResultServerError | The login server failed.
|
| kResultAccountNotFound | The account does not exist.
|
| kResultInvalidPassword | The password is wrong.
|
| kResultAlreadyLoggedIn | The account is logged in elsewhere.
|
| kResultStatsFailed | The server did not take the statistics.
|
| kResultSuccess | The player is logged in.
|
◆ ~LoginResultMsg()
| LoginResultMsg::~LoginResultMsg |
( |
| ) |
|
|
overridedefault |
Destroy the object.
- Ghidra address:
- NTSC-U/C: 0x0039e2e0
- Ghidra address:
- PAL: 0x0040cfc0
◆ LoginResultMsg() [1/2]
| LoginResultMsg::LoginResultMsg |
( |
int | nResult | ) |
|
|
inlineexplicit |
Construct a failure, whose chatroom has the identifier -1.
Inline. The texts and the counts of the chatroom are not set.
- Parameters
-
◆ LoginResultMsg() [2/2]
| LoginResultMsg::LoginResultMsg |
( |
int | nResult, |
|
|
const char * | pszNews, |
|
|
const char * | pszEula, |
|
|
const NetChatroomInfo & | chatroom ) |
|
inline |
Construct a result.
Inline.
- Parameters
-
| nResult | One of Result. |
| pszNews | The news. |
| pszEula | The licence agreement. |
| chatroom | The chatroom the login places the player in. |
◆ operator new()
| void * LoginResultMsg::operator new |
( |
size_t | nSize | ) |
|
|
inline |
Allocate a message, billed to the class name.
- Parameters
-
| nSize | The object size the compiler supplies. |
- Returns
- The block.
◆ operator delete()
| void LoginResultMsg::operator delete |
( |
void * | pBlock | ) |
|
|
inline |
Release a message.
- Parameters
-
◆ Clone()
| Message * LoginResultMsg::Clone |
( |
| ) |
|
|
inlineoverridevirtual |
Produce a heap copy of this message.
- Returns
- The copy.
Implements Message.
◆ Type()
| int LoginResultMsg::Type |
( |
| ) |
|
|
inlineoverridevirtual |
Report this message's registered identity.
- Returns
- g_nLoginResultMsgType.
Implements Message.
◆ GetName()
| const char * LoginResultMsg::GetName |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ PrintExtra()
| void LoginResultMsg::PrintExtra |
( |
PrnStream & | stream | ) |
const |
|
overridevirtual |
Write the result, and after a success the chatroom, the news, and the licence agreement.
- Parameters
-
| stream | The stream to write to. |
- Ghidra address:
- NTSC-U/C: 0x00268c28
- Ghidra address:
- PAL: 0x00272830
Reimplemented from Message.
◆ GetChatroom()
- Returns
- The chatroom the login places the player in.
◆ GetEula()
| const char * LoginResultMsg::GetEula |
( |
| ) |
const |
|
inline |
- Returns
- The licence agreement the EULA screen shows.
◆ GetNews()
| const char * LoginResultMsg::GetNews |
( |
| ) |
const |
|
inline |
- Returns
- The news the welcome screen shows.
◆ GetResult()
| int LoginResultMsg::GetResult |
( |
| ) |
const |
|
inline |
- Returns
- One of Result, or another negative error.
The documentation for this class was generated from the following file: