DayZ 1.26
DayZ Explorer by KGB
|
Структуры данных | |
class | ErrorHandlerModule |
Definition and API of an ErrorHandlerModule - Do not insert any logic here! (as this class is not moddable) Подробнее... | |
Переменные | |
class ErrorHandlerModule | m_Header = "" |
This is where to input logic and extend functionality of ErrorHandlerModule. | |
string | m_Prefix = "" |
Optional: Prefix (e.g. Fixed text at the start of the messages in the module) | |
ref UIScriptedMenu | m_UIHandler = null |
Optional: The UI the handler might generally use | |
int | m_LastErrorThrown = 0 |
Holds the last thrown error in this module, defaults to 0. | |
string | m_LastAdditionalInfo = "" |
Holds the last additional info passed in. | |
ref map< int, ref ErrorProperties > | m_ErrorDataMap = new map<int, ref ErrorProperties>() |
Map containing the codes that exist for the ErrorHandlerModule The code links to ErrorProperties This contains at the very least the Message for the error Additionally, it can contain the way to handle the error (e.g. Throw a Dialogue with the message) | |
|
protected |
Constructor, by default calls the function that will fill the ErrorDataMap.
Перекрестные ссылки FillErrorDataMap() и InitOptionalVariables().
|
protected |
Function to fill up m_ErrorDataMap, gets called in the Constructor.
Already insert the default "UNKNOWN ERROR" message for code "-1"
Перекрестные ссылки InsertDialogueErrorProperties().
Fetches the Client message for the error code.
errorCode | int The full error code |
string
The Client message for the error Перекрестные ссылки GetProperties().
Используется в GetLastClientMessage().
Fetches the Client message for the error code, attempting to retrieve the data from the latest.
errorCode | int The full error code to check against |
string
The Client message for the error Перекрестные ссылки ErrorEx, GetClientMessage(), ErrorModuleHandler::GetErrorHex(), m_LastAdditionalInfo и m_LastErrorThrown.
Fetches the Server message for the error code, attempting to retrieve the data from the latest.
errorCode | int The full error code to check against |
string
The Server message for the error Перекрестные ссылки ErrorEx, ErrorModuleHandler::GetErrorHex(), GetServerMessage(), m_LastAdditionalInfo и m_LastErrorThrown.
|
protected |
Fetches the ErrorProperties for the error code.
errorCode | int The full error code |
ErrorProperties
The data and handling for the error Перекрестные ссылки Error(), ErrorModuleHandler::GetCodeFromError(), ErrorModuleHandler::GetErrorHex() и m_ErrorDataMap.
Используется в GetClientMessage(), GetServerMessage() и OnErrorThrown().
Fetches the Server message for the error code.
errorCode | int The full error code |
string
The Server message for the error Перекрестные ссылки GetProperties().
Используется в GetLastServerMessage().
|
protected |
Function which gets called before FillErrorDataMap, designed to set Optional Variales before ErrorProperties are created.
|
protected |
Insert an error with Dialogue as handling, using the Optional Variables.
Перекрестные ссылки DialogueErrorProperties(), m_ErrorDataMap, m_Header, m_Prefix и m_UIHandler.
Используется в ClientKickedModule::FillErrorDataMap(), ConnectErrorClientModule::FillErrorDataMap(), FillErrorDataMap(), ConnectErrorServerModule::FillErrorDataMap() и BIOSErrorModule::InsertBIOSError().
Insert an error with no handling.
Перекрестные ссылки m_ErrorDataMap.
Используется в BIOSErrorModule::FillErrorDataMap(), ClientKickedModule::FillErrorDataMap(), ConnectErrorClientModule::FillErrorDataMap() и BIOSErrorModule::InsertBIOSError().
|
protected |
Insert an error with Dialogue as handling with extended prefix.
Перекрестные ссылки DialogueErrorProperties(), m_ErrorDataMap, m_Header, m_Prefix и m_UIHandler.
Используется в ClientKickedModule::FillErrorDataMap().
|
protected |
Insert an error with Dialogue as handling with extended prefix and separate server message.
Перекрестные ссылки DialogueErrorProperties(), m_ErrorDataMap, m_Header, m_Prefix и m_UIHandler.
Используется в ClientKickedModule::FillErrorDataMap().
|
protected |
Insert an error with Dialogue as handling with custom header.
Перекрестные ссылки DialogueErrorProperties(), m_ErrorDataMap, m_Prefix и m_UIHandler.
|
protected |
Insert an error with Dialogue as handling with custom prefix.
Перекрестные ссылки DialogueErrorProperties(), m_ErrorDataMap, m_Header и m_UIHandler.
Используется в ClientKickedModule::FillErrorDataMap().
|
protected |
Insert an error with Dialogue as handling with separate server message.
Перекрестные ссылки DialogueErrorProperties(), m_ErrorDataMap, m_Header, m_Prefix и m_UIHandler.
Используется в ClientKickedModule::FillErrorDataMap().
Event that gets triggered when an error of the owned category is thrown. Do not call directly! Call ErrorModuleHandler.ThrowError instead.
errorCode | int The full error code |
additionalInfo | string Any additional info regarding the error, usually data |
Перекрестные ссылки ErrorEx, GetCategory(), ErrorModuleHandler::GetErrorHex(), GetProperties(), m_ErrorDataMap, m_LastAdditionalInfo, m_LastErrorThrown и ToString().
|
protected |
Перекрестные ссылки m_UIHandler.
|
protected |
Map
containing the codes that exist for the ErrorHandlerModule The code links to ErrorProperties This contains at the very least the Message for the error Additionally, it can contain the way to handle the error (e.g. Throw a Dialogue with the message)
Используется в GetProperties(), InsertDialogueErrorProperties(), InsertErrorProperties(), InsertExtendedPrefixDialogueErrorProperties(), InsertExtendedPrefixSplitDialogueErrorProperties(), InsertHeaderDialogueErrorProperties(), InsertPrefixDialogueErrorProperties(), InsertSplitDialogueErrorProperties() и OnErrorThrown().
class ErrorHandlerModule m_Header = "" |
This is where to input logic and extend functionality of ErrorHandlerModule.
Optional:
Header (e.g. The header of a Dialogue box)
Используется в DialogueErrorProperties(), HandleError(), BIOSErrorModule::InitOptionalVariables(), ClientKickedModule::InitOptionalVariables(), ConnectErrorClientModule::InitOptionalVariables(), ConnectErrorServerModule::InitOptionalVariables(), InsertDialogueErrorProperties(), InsertExtendedPrefixDialogueErrorProperties(), InsertExtendedPrefixSplitDialogueErrorProperties(), InsertPrefixDialogueErrorProperties() и InsertSplitDialogueErrorProperties().
|
protected |
Holds the last additional info passed in.
Используется в GetLastClientMessage(), GetLastServerMessage() и OnErrorThrown().
|
protected |
Holds the last thrown error in this module, defaults to 0.
Используется в GetLastClientMessage(), GetLastServerMessage(), OnErrorThrown(), ConnectErrorClientModule::OnEvent(), OnEvent() и ConnectErrorServerModule::OnEvent().
|
protected |
Optional:
Prefix (e.g. Fixed text at the start of the messages in the module)
Используется в ClientKickedModule::InitOptionalVariables(), InsertDialogueErrorProperties(), InsertExtendedPrefixDialogueErrorProperties(), InsertExtendedPrefixSplitDialogueErrorProperties(), InsertHeaderDialogueErrorProperties() и InsertSplitDialogueErrorProperties().
|
protected |
Optional:
The UI the handler might generally use
Используется в InsertDialogueErrorProperties(), InsertExtendedPrefixDialogueErrorProperties(), InsertExtendedPrefixSplitDialogueErrorProperties(), InsertHeaderDialogueErrorProperties(), InsertPrefixDialogueErrorProperties(), InsertSplitDialogueErrorProperties() и ~ErrorHandlerModuleScript().