Utility to serialize the minimum data necessary for design-time quests.
More...
|
static byte[] | Serialize (Quest quest) |
| Returns minimum save data for a design-time quest.
|
|
static void | DeserializeInto (Quest quest, byte[] bytes, bool allowThrowExceptions=false) |
| Copies data from a byte array into an existing design-time quest.
|
|
Utility to serialize the minimum data necessary for design-time quests.
Only saves:
- Quest giver ID
- Static tags
- Times accepted
- Time last accepted
- Cooldown time remaining
- Show in HUD
- Quest state
- Quest node states [skipped if inactive]
- Counter values [skipped if inactive]
- True condition count on all condition sets [skipped if inactive]
- Quest indicator states [skipped if inactive]
◆ DeserializeInto()
static void PixelCrushers.QuestMachine.QuestStateSerializer.DeserializeInto |
( |
Quest |
quest, |
|
|
byte[] |
bytes, |
|
|
bool |
allowThrowExceptions = false |
|
) |
| |
|
inlinestatic |
Copies data from a byte array into an existing design-time quest.
- Parameters
-
quest | The quest to receive the data. |
bytes | A byte array generated by the Serialize method. |
◆ Serialize()
static byte[] PixelCrushers.QuestMachine.QuestStateSerializer.Serialize |
( |
Quest |
quest | ) |
|
|
inlinestatic |
Returns minimum save data for a design-time quest.
- Parameters
-
quest | The quest to serialize. |
- Returns
- A byte array containing states and counter values.
◆ version
int PixelCrushers.QuestMachine.QuestStateSerializer.version = 3 |
|
static |
- Version 3: Added counter count, node count, each conditionlist count, plus IDs.
- Version 2: Added quest condition "alreadyTrue" values.
- Version 1: Use for compatibility with saves made in QM version 1.2.29 or earlier.
The documentation for this class was generated from the following file:
- C:/Dev/Quest Machine/Dev/Source/Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest/Quest Serialization/QuestStateSerializer.cs