pub
EO pub file data structures.
See Also
TalkMessageRecord
Record of a message that an NPC can say
Source code in src/eolib/protocol/_generated/pub/server/talk_message_record.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
message: str
property
__init__(*, message)
Create a new instance of TalkMessageRecord.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message |
str
|
(Length must be 252 or less.) |
required |
Source code in src/eolib/protocol/_generated/pub/server/talk_message_record.py
18 19 20 21 22 23 24 25 26 | |
serialize(writer, data)
staticmethod
Serializes an instance of TalkMessageRecord to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
TalkMessageRecord
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/talk_message_record.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |
deserialize(reader)
staticmethod
Deserializes an instance of TalkMessageRecord from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
TalkMessageRecord |
TalkMessageRecord
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/talk_message_record.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
TalkRecord
Record of Talk data in an Endless Talk File
Source code in src/eolib/protocol/_generated/pub/server/talk_record.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
npc_id: int
property
ID of the NPC that will talk
rate: int
property
Chance that the NPC will talk (0-100)
messages: tuple[TalkMessageRecord, ...]
property
__init__(*, npc_id, rate, messages)
Create a new instance of TalkRecord.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
npc_id |
int
|
ID of the NPC that will talk (Value range is 0-64008.) |
required |
rate |
int
|
Chance that the NPC will talk (0-100) (Value range is 0-252.) |
required |
messages |
Iterable[TalkMessageRecord]
|
(Length must be 252 or less.) |
required |
Source code in src/eolib/protocol/_generated/pub/server/talk_record.py
23 24 25 26 27 28 29 30 31 32 33 34 35 | |
serialize(writer, data)
staticmethod
Serializes an instance of TalkRecord to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
TalkRecord
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/talk_record.py
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | |
deserialize(reader)
staticmethod
Deserializes an instance of TalkRecord from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
TalkRecord |
'TalkRecord'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/talk_record.py
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | |
TalkFile
Endless Talk File
Source code in src/eolib/protocol/_generated/pub/server/talk_file.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
npcs: tuple[TalkRecord, ...]
property
__init__(*, npcs)
Create a new instance of TalkFile.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
npcs |
Iterable[TalkRecord]
|
|
required |
Source code in src/eolib/protocol/_generated/pub/server/talk_file.py
20 21 22 23 24 25 26 27 | |
serialize(writer, data)
staticmethod
Serializes an instance of TalkFile to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
TalkFile
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/talk_file.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | |
deserialize(reader)
staticmethod
Deserializes an instance of TalkFile from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
TalkFile |
'TalkFile'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/talk_file.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
SkillMasterSkillRecord
Record of a skill that a Skill Master NPC can teach
Source code in src/eolib/protocol/_generated/pub/server/skill_master_skill_record.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
skill_id: int
property
level_requirement: int
property
Level required to learn this skill
class_requirement: int
property
Class required to learn this skill
price: int
property
skill_requirements: tuple[int, ...]
property
IDs of skills that must be learned before a player can learn this skill
str_requirement: int
property
Strength required to learn this skill
int_requirement: int
property
Intelligence required to learn this skill
wis_requirement: int
property
Wisdom required to learn this skill
agi_requirement: int
property
Agility required to learn this skill
con_requirement: int
property
Constitution required to learn this skill
cha_requirement: int
property
Charisma required to learn this skill
__init__(*, skill_id, level_requirement, class_requirement, price, skill_requirements, str_requirement, int_requirement, wis_requirement, agi_requirement, con_requirement, cha_requirement)
Create a new instance of SkillMasterSkillRecord.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
skill_id |
int
|
(Value range is 0-64008.) |
required |
level_requirement |
int
|
Level required to learn this skill (Value range is 0-252.) |
required |
class_requirement |
int
|
Class required to learn this skill (Value range is 0-252.) |
required |
price |
int
|
(Value range is 0-4097152080.) |
required |
skill_requirements |
Iterable[int]
|
IDs of skills that must be learned before a player can learn this skill (Length must be |
required |
str_requirement |
int
|
Strength required to learn this skill (Value range is 0-64008.) |
required |
int_requirement |
int
|
Intelligence required to learn this skill (Value range is 0-64008.) |
required |
wis_requirement |
int
|
Wisdom required to learn this skill (Value range is 0-64008.) |
required |
agi_requirement |
int
|
Agility required to learn this skill (Value range is 0-64008.) |
required |
con_requirement |
int
|
Constitution required to learn this skill (Value range is 0-64008.) |
required |
cha_requirement |
int
|
Charisma required to learn this skill (Value range is 0-64008.) |
required |
Source code in src/eolib/protocol/_generated/pub/server/skill_master_skill_record.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | |
serialize(writer, data)
staticmethod
Serializes an instance of SkillMasterSkillRecord to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
SkillMasterSkillRecord
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/skill_master_skill_record.py
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 | |
deserialize(reader)
staticmethod
Deserializes an instance of SkillMasterSkillRecord from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
SkillMasterSkillRecord |
'SkillMasterSkillRecord'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/skill_master_skill_record.py
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 | |
SkillMasterRecord
Record of Skill Master data in an Endless Skill Master File
Source code in src/eolib/protocol/_generated/pub/server/skill_master_record.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
behavior_id: int
property
Behavior ID of the Skill Master NPC
name: str
property
min_level: int
property
Minimum level required to use this Skill Master
max_level: int
property
Maximum level allowed to use this Skill Master
class_requirement: int
property
Class required to use this Skill Master
skills: tuple[SkillMasterSkillRecord, ...]
property
__init__(*, behavior_id, name, min_level, max_level, class_requirement, skills)
Create a new instance of SkillMasterRecord.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
behavior_id |
int
|
Behavior ID of the Skill Master NPC (Value range is 0-64008.) |
required |
name |
str
|
(Length must be 252 or less.) |
required |
min_level |
int
|
Minimum level required to use this Skill Master (Value range is 0-252.) |
required |
max_level |
int
|
Maximum level allowed to use this Skill Master (Value range is 0-252.) |
required |
class_requirement |
int
|
Class required to use this Skill Master (Value range is 0-252.) |
required |
skills |
Iterable[SkillMasterSkillRecord]
|
(Length must be 64008 or less.) |
required |
Source code in src/eolib/protocol/_generated/pub/server/skill_master_record.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | |
serialize(writer, data)
staticmethod
Serializes an instance of SkillMasterRecord to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
SkillMasterRecord
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/skill_master_record.py
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | |
deserialize(reader)
staticmethod
Deserializes an instance of SkillMasterRecord from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
SkillMasterRecord |
'SkillMasterRecord'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/skill_master_record.py
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 | |
SkillMasterFile
Endless Skill Master File
Source code in src/eolib/protocol/_generated/pub/server/skill_master_file.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
skill_masters: tuple[SkillMasterRecord, ...]
property
__init__(*, skill_masters)
Create a new instance of SkillMasterFile.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
skill_masters |
Iterable[SkillMasterRecord]
|
|
required |
Source code in src/eolib/protocol/_generated/pub/server/skill_master_file.py
20 21 22 23 24 25 26 27 | |
serialize(writer, data)
staticmethod
Serializes an instance of SkillMasterFile to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
SkillMasterFile
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/skill_master_file.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | |
deserialize(reader)
staticmethod
Deserializes an instance of SkillMasterFile from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
SkillMasterFile |
'SkillMasterFile'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/skill_master_file.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
ShopTradeRecord
Record of an item that can be bought or sold in a shop
Source code in src/eolib/protocol/_generated/pub/server/shop_trade_record.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
item_id: int
property
buy_price: int
property
How much it costs to buy the item from the shop
sell_price: int
property
How much the shop will pay for the item
max_amount: int
property
Max amount of the item that can be bought or sold at one time
__init__(*, item_id, buy_price, sell_price, max_amount)
Create a new instance of ShopTradeRecord.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
item_id |
int
|
(Value range is 0-64008.) |
required |
buy_price |
int
|
How much it costs to buy the item from the shop (Value range is 0-16194276.) |
required |
sell_price |
int
|
How much the shop will pay for the item (Value range is 0-16194276.) |
required |
max_amount |
int
|
Max amount of the item that can be bought or sold at one time (Value range is 0-252.) |
required |
Source code in src/eolib/protocol/_generated/pub/server/shop_trade_record.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 | |
serialize(writer, data)
staticmethod
Serializes an instance of ShopTradeRecord to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
ShopTradeRecord
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/shop_trade_record.py
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | |
deserialize(reader)
staticmethod
Deserializes an instance of ShopTradeRecord from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
ShopTradeRecord |
ShopTradeRecord
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/shop_trade_record.py
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | |
ShopCraftRecord
Record of an item that can be crafted in a shop
Source code in src/eolib/protocol/_generated/pub/server/shop_craft_record.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
item_id: int
property
ingredients: tuple[ShopCraftIngredientRecord, ...]
property
__init__(*, item_id, ingredients)
Create a new instance of ShopCraftRecord.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
item_id |
int
|
(Value range is 0-64008.) |
required |
ingredients |
Iterable[ShopCraftIngredientRecord]
|
(Length must be |
required |
Source code in src/eolib/protocol/_generated/pub/server/shop_craft_record.py
21 22 23 24 25 26 27 28 29 30 | |
serialize(writer, data)
staticmethod
Serializes an instance of ShopCraftRecord to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
ShopCraftRecord
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/shop_craft_record.py
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | |
deserialize(reader)
staticmethod
Deserializes an instance of ShopCraftRecord from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
ShopCraftRecord |
'ShopCraftRecord'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/shop_craft_record.py
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | |
ShopRecord
Record of Shop data in an Endless Shop File
Source code in src/eolib/protocol/_generated/pub/server/shop_record.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
behavior_id: int
property
name: str
property
min_level: int
property
Minimum level required to use this shop
max_level: int
property
Maximum level allowed to use this shop
class_requirement: int
property
Class required to use this shop
trades: tuple[ShopTradeRecord, ...]
property
crafts: tuple[ShopCraftRecord, ...]
property
__init__(*, behavior_id, name, min_level, max_level, class_requirement, trades, crafts)
Create a new instance of ShopRecord.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
behavior_id |
int
|
(Value range is 0-64008.) |
required |
name |
str
|
(Length must be 252 or less.) |
required |
min_level |
int
|
Minimum level required to use this shop (Value range is 0-252.) |
required |
max_level |
int
|
Maximum level allowed to use this shop (Value range is 0-252.) |
required |
class_requirement |
int
|
Class required to use this shop (Value range is 0-252.) |
required |
trades |
Iterable[ShopTradeRecord]
|
(Length must be 64008 or less.) |
required |
crafts |
Iterable[ShopCraftRecord]
|
(Length must be 252 or less.) |
required |
Source code in src/eolib/protocol/_generated/pub/server/shop_record.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | |
serialize(writer, data)
staticmethod
Serializes an instance of ShopRecord to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
ShopRecord
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/shop_record.py
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 | |
deserialize(reader)
staticmethod
Deserializes an instance of ShopRecord from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
ShopRecord |
'ShopRecord'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/shop_record.py
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 | |
ShopFile
Endless Shop File
Source code in src/eolib/protocol/_generated/pub/server/shop_file.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
shops: tuple[ShopRecord, ...]
property
__init__(*, shops)
Create a new instance of ShopFile.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
shops |
Iterable[ShopRecord]
|
|
required |
Source code in src/eolib/protocol/_generated/pub/server/shop_file.py
20 21 22 23 24 25 26 27 | |
serialize(writer, data)
staticmethod
Serializes an instance of ShopFile to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
ShopFile
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/shop_file.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | |
deserialize(reader)
staticmethod
Deserializes an instance of ShopFile from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
ShopFile |
'ShopFile'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/shop_file.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
ShopCraftIngredientRecord
Record of an ingredient for crafting an item in a shop
Source code in src/eolib/protocol/_generated/pub/server/shop_craft_ingredient_record.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
item_id: int
property
Item ID of the craft ingredient, or 0 if the ingredient is not present
amount: int
property
__init__(*, item_id, amount)
Create a new instance of ShopCraftIngredientRecord.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
item_id |
int
|
Item ID of the craft ingredient, or 0 if the ingredient is not present (Value range is 0-64008.) |
required |
amount |
int
|
(Value range is 0-252.) |
required |
Source code in src/eolib/protocol/_generated/pub/server/shop_craft_ingredient_record.py
18 19 20 21 22 23 24 25 26 27 | |
serialize(writer, data)
staticmethod
Serializes an instance of ShopCraftIngredientRecord to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
ShopCraftIngredientRecord
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/shop_craft_ingredient_record.py
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | |
deserialize(reader)
staticmethod
Deserializes an instance of ShopCraftIngredientRecord from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
ShopCraftIngredientRecord |
ShopCraftIngredientRecord
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/shop_craft_ingredient_record.py
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | |
InnQuestionRecord
Record of a question and answer that the player must answer to register citizenship with an inn
Source code in src/eolib/protocol/_generated/pub/server/inn_question_record.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
question: str
property
answer: str
property
__init__(*, question, answer)
Create a new instance of InnQuestionRecord.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
question |
str
|
(Length must be 252 or less.) |
required |
answer |
str
|
(Length must be 252 or less.) |
required |
Source code in src/eolib/protocol/_generated/pub/server/inn_question_record.py
20 21 22 23 24 25 26 27 28 29 30 31 | |
serialize(writer, data)
staticmethod
Serializes an instance of InnQuestionRecord to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
InnQuestionRecord
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/inn_question_record.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | |
deserialize(reader)
staticmethod
Deserializes an instance of InnQuestionRecord from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
InnQuestionRecord |
InnQuestionRecord
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/inn_question_record.py
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | |
InnRecord
Record of Inn data in an Endless Inn File
Source code in src/eolib/protocol/_generated/pub/server/inn_record.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
behavior_id: int
property
Behavior ID of the NPC that runs the inn. 0 for default inn
name: str
property
spawn_map: int
property
ID of the map the player is sent to after respawning
spawn_x: int
property
X coordinate of the map the player is sent to after respawning
spawn_y: int
property
Y coordinate of the map the player is sent to after respawning
sleep_map: int
property
ID of the map the player is sent to after sleeping at the inn
sleep_x: int
property
X coordinate of the map the player is sent to after sleeping at the inn
sleep_y: int
property
Y coordinate of the map the player is sent to after sleeping at the inn
alternate_spawn_enabled: bool
property
Flag for an alternate spawn point. If true, the server will use this alternate spawn map, x, and, y based on some other condition.
In the official server, this is used to respawn new characters on the noob island until they reach a certain level.
alternate_spawn_map: int
property
alternate_spawn_x: int
property
alternate_spawn_y: int
property
questions: tuple[InnQuestionRecord, ...]
property
__init__(*, behavior_id, name, spawn_map, spawn_x, spawn_y, sleep_map, sleep_x, sleep_y, alternate_spawn_enabled, alternate_spawn_map, alternate_spawn_x, alternate_spawn_y, questions)
Create a new instance of InnRecord.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
behavior_id |
int
|
Behavior ID of the NPC that runs the inn. 0 for default inn (Value range is 0-64008.) |
required |
name |
str
|
(Length must be 252 or less.) |
required |
spawn_map |
int
|
ID of the map the player is sent to after respawning (Value range is 0-64008.) |
required |
spawn_x |
int
|
X coordinate of the map the player is sent to after respawning (Value range is 0-252.) |
required |
spawn_y |
int
|
Y coordinate of the map the player is sent to after respawning (Value range is 0-252.) |
required |
sleep_map |
int
|
ID of the map the player is sent to after sleeping at the inn (Value range is 0-64008.) |
required |
sleep_x |
int
|
X coordinate of the map the player is sent to after sleeping at the inn (Value range is 0-252.) |
required |
sleep_y |
int
|
Y coordinate of the map the player is sent to after sleeping at the inn (Value range is 0-252.) |
required |
alternate_spawn_enabled |
bool
|
Flag for an alternate spawn point. If true, the server will use this alternate spawn map, x, and, y based on some other condition. In the official server, this is used to respawn new characters on the noob island until they reach a certain level. |
required |
alternate_spawn_map |
int
|
(Value range is 0-64008.) |
required |
alternate_spawn_x |
int
|
(Value range is 0-252.) |
required |
alternate_spawn_y |
int
|
(Value range is 0-252.) |
required |
questions |
Iterable[InnQuestionRecord]
|
(Length must be |
required |
Source code in src/eolib/protocol/_generated/pub/server/inn_record.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | |
serialize(writer, data)
staticmethod
Serializes an instance of InnRecord to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
InnRecord
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/inn_record.py
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 | |
deserialize(reader)
staticmethod
Deserializes an instance of InnRecord from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
InnRecord |
'InnRecord'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/inn_record.py
218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 | |
InnFile
Endless Inn File
Source code in src/eolib/protocol/_generated/pub/server/inn_file.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
inns: tuple[InnRecord, ...]
property
__init__(*, inns)
Create a new instance of InnFile.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
inns |
Iterable[InnRecord]
|
|
required |
Source code in src/eolib/protocol/_generated/pub/server/inn_file.py
20 21 22 23 24 25 26 27 | |
serialize(writer, data)
staticmethod
Serializes an instance of InnFile to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
InnFile
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/inn_file.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | |
deserialize(reader)
staticmethod
Deserializes an instance of InnFile from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
InnFile |
'InnFile'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/inn_file.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
DropRecord
Record of an item an NPC can drop when killed
Source code in src/eolib/protocol/_generated/pub/server/drop_record.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
item_id: int
property
min_amount: int
property
max_amount: int
property
rate: int
property
Chance (x in 64,000) of the item being dropped
__init__(*, item_id, min_amount, max_amount, rate)
Create a new instance of DropRecord.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
item_id |
int
|
(Value range is 0-64008.) |
required |
min_amount |
int
|
(Value range is 0-16194276.) |
required |
max_amount |
int
|
(Value range is 0-16194276.) |
required |
rate |
int
|
Chance (x in 64,000) of the item being dropped (Value range is 0-64008.) |
required |
Source code in src/eolib/protocol/_generated/pub/server/drop_record.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 | |
serialize(writer, data)
staticmethod
Serializes an instance of DropRecord to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
DropRecord
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/drop_record.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | |
deserialize(reader)
staticmethod
Deserializes an instance of DropRecord from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
DropRecord |
DropRecord
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/drop_record.py
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | |
DropNpcRecord
Record of potential drops from an NPC
Source code in src/eolib/protocol/_generated/pub/server/drop_npc_record.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
npc_id: int
property
drops: tuple[DropRecord, ...]
property
__init__(*, npc_id, drops)
Create a new instance of DropNpcRecord.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
npc_id |
int
|
(Value range is 0-64008.) |
required |
drops |
Iterable[DropRecord]
|
(Length must be 64008 or less.) |
required |
Source code in src/eolib/protocol/_generated/pub/server/drop_npc_record.py
22 23 24 25 26 27 28 29 30 31 32 | |
serialize(writer, data)
staticmethod
Serializes an instance of DropNpcRecord to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
DropNpcRecord
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/drop_npc_record.py
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | |
deserialize(reader)
staticmethod
Deserializes an instance of DropNpcRecord from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
DropNpcRecord |
'DropNpcRecord'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/drop_npc_record.py
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | |
DropFile
Endless Drop File
Source code in src/eolib/protocol/_generated/pub/server/drop_file.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
npcs: tuple[DropNpcRecord, ...]
property
__init__(*, npcs)
Create a new instance of DropFile.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
npcs |
Iterable[DropNpcRecord]
|
|
required |
Source code in src/eolib/protocol/_generated/pub/server/drop_file.py
20 21 22 23 24 25 26 27 | |
serialize(writer, data)
staticmethod
Serializes an instance of DropFile to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
DropFile
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/server/drop_file.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | |
deserialize(reader)
staticmethod
Deserializes an instance of DropFile from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
DropFile |
'DropFile'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/server/drop_file.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
SerializationError
Bases: Exception
Represents an error in serializing a protocol data structure.
Source code in src/eolib/protocol/serialization_error.py
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
__init__(message)
Constructs a SerializationError with the specified error message.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message |
str
|
The error message. |
required |
Source code in src/eolib/protocol/serialization_error.py
6 7 8 9 10 11 12 13 | |
EoWriter
Source code in src/eolib/data/eo_writer.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 | |
data = bytearray()
instance-attribute
string_sanitization_mode: bool
property
writable
Gets the string sanitization mode for the writer.
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
True if string sanitization is enabled. |
__init__()
Source code in src/eolib/data/eo_writer.py
7 8 9 | |
add_byte(value)
Adds a raw byte to the writer data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value |
int
|
The byte to add. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the value is above |
Source code in src/eolib/data/eo_writer.py
11 12 13 14 15 16 17 18 19 20 21 22 | |
add_bytes(bytes)
Adds raw bytes to the writer data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
bytes |
bytes
|
The bytes to add. |
required |
Source code in src/eolib/data/eo_writer.py
24 25 26 27 28 29 30 31 | |
add_char(number)
Adds an encoded 1-byte integer to the writer data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
number |
int
|
The number to encode and add. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the value is not below |
Source code in src/eolib/data/eo_writer.py
33 34 35 36 37 38 39 40 41 42 43 44 45 | |
add_short(number)
Adds an encoded 2-byte integer to the writer data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
number |
int
|
The number to encode and add. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the value is not below |
Source code in src/eolib/data/eo_writer.py
47 48 49 50 51 52 53 54 55 56 57 58 59 | |
add_three(number)
Adds an encoded 3-byte integer to the writer data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
number |
int
|
The number to encode and add. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the value is not below |
Source code in src/eolib/data/eo_writer.py
61 62 63 64 65 66 67 68 69 70 71 72 73 | |
add_int(number)
Adds an encoded 4-byte integer to the writer data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
number |
int
|
The number to encode and add. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the value is not below |
Source code in src/eolib/data/eo_writer.py
75 76 77 78 79 80 81 82 83 84 85 86 87 | |
add_string(string)
Adds a string to the writer data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
string |
str
|
The string to be added. |
required |
Source code in src/eolib/data/eo_writer.py
89 90 91 92 93 94 95 96 97 98 | |
add_fixed_string(string, length, padded=False)
Adds a fixed-length string to the writer data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
string |
str
|
The string to be added. |
required |
length |
int
|
The expected length of the string. |
required |
padded |
bool
|
True if the string should be padded to the length with
trailing |
False
|
Source code in src/eolib/data/eo_writer.py
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | |
add_encoded_string(string)
Adds an encoded string to the writer data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
string |
str
|
The string to be encoded and added. |
required |
Source code in src/eolib/data/eo_writer.py
117 118 119 120 121 122 123 124 125 126 127 | |
add_fixed_encoded_string(string, length, padded=False)
Adds a fixed-length encoded string to the writer data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
string |
str
|
The string to be encoded and added. |
required |
length |
int
|
The expected length of the string. |
required |
padded |
bool
|
True if the string should be padded to the length with
trailing |
False
|
Source code in src/eolib/data/eo_writer.py
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | |
to_bytearray()
Gets the writer data as a byte array.
Returns:
| Name | Type | Description |
|---|---|---|
bytearray |
bytearray
|
A copy of the writer data as a byte array. |
Source code in src/eolib/data/eo_writer.py
161 162 163 164 165 166 167 168 | |
__len__()
Gets the length of the writer data.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The length of the writer data. |
Source code in src/eolib/data/eo_writer.py
170 171 172 173 174 175 176 177 | |
EoReader
Bases: object
A class for reading EO data from a sequence of bytes.
EoReader features a chunked reading mode, which is important for accurate emulation of
the official game client.
See documentation for chunked reading: https://github.com/Cirras/eo-protocol/blob/master/docs/chunks.md
Source code in src/eolib/data/eo_reader.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 | |
chunked_reading_mode: bool
property
writable
bool: Gets or sets the chunked reading mode for the reader.
In chunked reading mode:
- The reader will treat 0xFF bytes as the end of the current chunk.
- next_chunk() can be called to move to the next chunk.
remaining: int
property
If chunked reading mode is enabled, gets the number of bytes remaining in the current
chunk. Otherwise, gets the total number of bytes remaining in the input data.
position: int
property
int: Gets the current position in the input data.
__init__(data)
Creates a new EoReader instance for the specified data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data |
bytes
|
The byte array containing the input data. |
required |
Source code in src/eolib/data/eo_reader.py
23 24 25 26 27 28 29 30 31 32 33 34 | |
slice(index=None, length=None)
Creates a new EoReader whose input data is a shared subsequence of this reader's
data.
The input data of the new reader will start at position index in this reader and contain
up to length bytes. The two reader's position and chunked reading mode will be
independent.
The new reader's position will be zero, and its chunked reading mode will be false.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
index |
int
|
The position in this reader at which the data of the new reader will start; must be non-negative. Defaults to the current reader position. |
None
|
length |
int
|
The length of the shared subsequence of data to supply to the
new reader; must be non-negative. Defaults to the length of the remaining data
starting from |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
EoReader |
EoReader
|
The new reader. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
Source code in src/eolib/data/eo_reader.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | |
get_byte()
Reads a raw byte from the input data.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
A raw byte. |
Source code in src/eolib/data/eo_reader.py
76 77 78 79 80 81 82 83 | |
get_bytes(length)
Reads an array of raw bytes from the input data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
length |
int
|
The number of bytes to read. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bytearray |
bytearray
|
An array of raw bytes. |
Source code in src/eolib/data/eo_reader.py
85 86 87 88 89 90 91 92 93 94 95 | |
get_char()
Reads an encoded 1-byte integer from the input data.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
A decoded 1-byte integer. |
Source code in src/eolib/data/eo_reader.py
97 98 99 100 101 102 103 104 | |
get_short()
Reads an encoded 2-byte integer from the input data.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
A decoded 2-byte integer. |
Source code in src/eolib/data/eo_reader.py
106 107 108 109 110 111 112 113 | |
get_three()
Reads an encoded 3-byte integer from the input data.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
A decoded 3-byte integer. |
Source code in src/eolib/data/eo_reader.py
115 116 117 118 119 120 121 122 | |
get_int()
Reads an encoded 4-byte integer from the input data.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
A decoded 4-byte integer. |
Source code in src/eolib/data/eo_reader.py
124 125 126 127 128 129 130 131 | |
get_string()
Reads a string from the input data.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
A string. |
Source code in src/eolib/data/eo_reader.py
133 134 135 136 137 138 139 140 141 | |
get_fixed_string(length, padded=False)
Reads a string with a fixed length from the input data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
length |
int
|
The length of the string. |
required |
padded |
bool
|
True if the string is padded with trailing |
False
|
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
A decoded string. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the length is negative. |
Source code in src/eolib/data/eo_reader.py
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | |
get_encoded_string()
Reads an encoded string from the input data.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
A decoded string. |
Source code in src/eolib/data/eo_reader.py
164 165 166 167 168 169 170 171 172 173 | |
get_fixed_encoded_string(length, padded=False)
Reads an encoded string with a fixed length from the input data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
length |
int
|
The length of the string. |
required |
padded |
bool
|
True if the string is padded with trailing |
False
|
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
A decoded string. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the length is negative. |
Source code in src/eolib/data/eo_reader.py
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 | |
next_chunk()
Moves the reader position to the start of the next chunk in the input data.
Raises:
| Type | Description |
|---|---|
RuntimeError
|
If not in chunked reading mode. |
Source code in src/eolib/data/eo_reader.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 | |
ProtocolEnumMeta
Bases: EnumMeta
Source code in src/eolib/protocol/protocol_enum_meta.py
4 5 6 7 8 9 10 11 12 13 14 15 16 | |
__call__(value, names=None, *, module=None, qualname=None, type=None, start=1)
Source code in src/eolib/protocol/protocol_enum_meta.py
5 6 7 8 9 10 11 12 13 14 15 16 | |
SkillType
Bases: IntEnum
Source code in src/eolib/protocol/_generated/pub/skill_type.py
9 10 11 12 | |
Heal = 0
class-attribute
instance-attribute
Attack = 1
class-attribute
instance-attribute
Bard = 2
class-attribute
instance-attribute
SkillTargetType
Bases: IntEnum
Source code in src/eolib/protocol/_generated/pub/skill_target_type.py
9 10 11 12 13 | |
Normal = 0
class-attribute
instance-attribute
Self = 1
class-attribute
instance-attribute
Reserved2 = 2
class-attribute
instance-attribute
Group = 3
class-attribute
instance-attribute
SkillTargetRestrict
Bases: IntEnum
Source code in src/eolib/protocol/_generated/pub/skill_target_restrict.py
9 10 11 12 | |
Npc = 0
class-attribute
instance-attribute
Friendly = 1
class-attribute
instance-attribute
Opponent = 2
class-attribute
instance-attribute
SkillNature
Bases: IntEnum
Source code in src/eolib/protocol/_generated/pub/skill_nature.py
9 10 11 | |
Spell = 0
class-attribute
instance-attribute
Skill = 1
class-attribute
instance-attribute
NpcType
Bases: IntEnum
Source code in src/eolib/protocol/_generated/pub/npc_type.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | |
Friendly = 0
class-attribute
instance-attribute
Passive = 1
class-attribute
instance-attribute
Aggressive = 2
class-attribute
instance-attribute
Reserved3 = 3
class-attribute
instance-attribute
Reserved4 = 4
class-attribute
instance-attribute
Reserved5 = 5
class-attribute
instance-attribute
Shop = 6
class-attribute
instance-attribute
Inn = 7
class-attribute
instance-attribute
Reserved8 = 8
class-attribute
instance-attribute
Bank = 9
class-attribute
instance-attribute
Barber = 10
class-attribute
instance-attribute
Guild = 11
class-attribute
instance-attribute
Priest = 12
class-attribute
instance-attribute
Lawyer = 13
class-attribute
instance-attribute
Trainer = 14
class-attribute
instance-attribute
Quest = 15
class-attribute
instance-attribute
ItemType
Bases: IntEnum
Source code in src/eolib/protocol/_generated/pub/item_type.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | |
General = 0
class-attribute
instance-attribute
Reserved1 = 1
class-attribute
instance-attribute
Currency = 2
class-attribute
instance-attribute
Heal = 3
class-attribute
instance-attribute
Teleport = 4
class-attribute
instance-attribute
Reserved5 = 5
class-attribute
instance-attribute
ExpReward = 6
class-attribute
instance-attribute
Reserved7 = 7
class-attribute
instance-attribute
Reserved8 = 8
class-attribute
instance-attribute
Key = 9
class-attribute
instance-attribute
Weapon = 10
class-attribute
instance-attribute
Shield = 11
class-attribute
instance-attribute
Armor = 12
class-attribute
instance-attribute
Hat = 13
class-attribute
instance-attribute
Boots = 14
class-attribute
instance-attribute
Gloves = 15
class-attribute
instance-attribute
Accessory = 16
class-attribute
instance-attribute
Belt = 17
class-attribute
instance-attribute
Necklace = 18
class-attribute
instance-attribute
Ring = 19
class-attribute
instance-attribute
Armlet = 20
class-attribute
instance-attribute
Bracer = 21
class-attribute
instance-attribute
Alcohol = 22
class-attribute
instance-attribute
EffectPotion = 23
class-attribute
instance-attribute
HairDye = 24
class-attribute
instance-attribute
CureCurse = 25
class-attribute
instance-attribute
Reserved26 = 26
class-attribute
instance-attribute
Reserved27 = 27
class-attribute
instance-attribute
Reserved28 = 28
class-attribute
instance-attribute
Reserved29 = 29
class-attribute
instance-attribute
ItemSubtype
Bases: IntEnum
Source code in src/eolib/protocol/_generated/pub/item_subtype.py
9 10 11 12 13 14 | |
None_ = 0
class-attribute
instance-attribute
Ranged = 1
class-attribute
instance-attribute
Arrows = 2
class-attribute
instance-attribute
Wings = 3
class-attribute
instance-attribute
Reserved4 = 4
class-attribute
instance-attribute
ItemSpecial
Bases: IntEnum
Source code in src/eolib/protocol/_generated/pub/item_special.py
9 10 11 12 13 14 15 | |
Normal = 0
class-attribute
instance-attribute
Rare = 1
class-attribute
instance-attribute
Legendary = 2
class-attribute
instance-attribute
Unique = 3
class-attribute
instance-attribute
Lore = 4
class-attribute
instance-attribute
Cursed = 5
class-attribute
instance-attribute
ItemSize
Bases: IntEnum
Size of an item in the inventory
Source code in src/eolib/protocol/_generated/pub/item_size.py
9 10 11 12 13 14 15 16 17 18 19 20 | |
Size1x1 = 0
class-attribute
instance-attribute
Size1x2 = 1
class-attribute
instance-attribute
Size1x3 = 2
class-attribute
instance-attribute
Size1x4 = 3
class-attribute
instance-attribute
Size2x1 = 4
class-attribute
instance-attribute
Size2x2 = 5
class-attribute
instance-attribute
Size2x3 = 6
class-attribute
instance-attribute
Size2x4 = 7
class-attribute
instance-attribute
Element
Bases: IntEnum
Source code in src/eolib/protocol/_generated/pub/element.py
9 10 11 12 13 14 15 16 | |
None_ = 0
class-attribute
instance-attribute
Light = 1
class-attribute
instance-attribute
Dark = 2
class-attribute
instance-attribute
Earth = 3
class-attribute
instance-attribute
Wind = 4
class-attribute
instance-attribute
Water = 5
class-attribute
instance-attribute
Fire = 6
class-attribute
instance-attribute
EsfRecord
Record of Skill data in an Endless Skill File
Source code in src/eolib/protocol/_generated/pub/esf_record.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
name: str
property
chant: str
property
icon_id: int
property
graphic_id: int
property
tp_cost: int
property
sp_cost: int
property
cast_time: int
property
nature: SkillNature
property
type: SkillType
property
element: Element
property
element_power: int
property
target_restrict: SkillTargetRestrict
property
target_type: SkillTargetType
property
target_time: int
property
max_skill_level: int
property
min_damage: int
property
max_damage: int
property
accuracy: int
property
evade: int
property
armor: int
property
return_damage: int
property
hp_heal: int
property
tp_heal: int
property
sp_heal: int
property
str: int
property
intl: int
property
wis: int
property
agi: int
property
con: int
property
cha: int
property
__init__(*, name, chant, icon_id, graphic_id, tp_cost, sp_cost, cast_time, nature, type, element, element_power, target_restrict, target_type, target_time, max_skill_level, min_damage, max_damage, accuracy, evade, armor, return_damage, hp_heal, tp_heal, sp_heal, str, intl, wis, agi, con, cha)
Create a new instance of EsfRecord.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name |
str
|
(Length must be 252 or less.) |
required |
chant |
str
|
(Length must be 252 or less.) |
required |
icon_id |
int
|
(Value range is 0-64008.) |
required |
graphic_id |
int
|
(Value range is 0-64008.) |
required |
tp_cost |
int
|
(Value range is 0-64008.) |
required |
sp_cost |
int
|
(Value range is 0-64008.) |
required |
cast_time |
int
|
(Value range is 0-252.) |
required |
nature |
SkillNature
|
|
required |
type |
SkillType
|
|
required |
element |
Element
|
|
required |
element_power |
int
|
(Value range is 0-64008.) |
required |
target_restrict |
SkillTargetRestrict
|
|
required |
target_type |
SkillTargetType
|
|
required |
target_time |
int
|
(Value range is 0-252.) |
required |
max_skill_level |
int
|
(Value range is 0-64008.) |
required |
min_damage |
int
|
(Value range is 0-64008.) |
required |
max_damage |
int
|
(Value range is 0-64008.) |
required |
accuracy |
int
|
(Value range is 0-64008.) |
required |
evade |
int
|
(Value range is 0-64008.) |
required |
armor |
int
|
(Value range is 0-64008.) |
required |
return_damage |
int
|
(Value range is 0-252.) |
required |
hp_heal |
int
|
(Value range is 0-64008.) |
required |
tp_heal |
int
|
(Value range is 0-64008.) |
required |
sp_heal |
int
|
(Value range is 0-252.) |
required |
str |
int
|
(Value range is 0-64008.) |
required |
intl |
int
|
(Value range is 0-64008.) |
required |
wis |
int
|
(Value range is 0-64008.) |
required |
agi |
int
|
(Value range is 0-64008.) |
required |
con |
int
|
(Value range is 0-64008.) |
required |
cha |
int
|
(Value range is 0-64008.) |
required |
Source code in src/eolib/protocol/_generated/pub/esf_record.py
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 | |
serialize(writer, data)
staticmethod
Serializes an instance of EsfRecord to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
EsfRecord
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/esf_record.py
252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 | |
deserialize(reader)
staticmethod
Deserializes an instance of EsfRecord from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
EsfRecord |
EsfRecord
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/esf_record.py
368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 | |
Esf
Endless Skill File
Source code in src/eolib/protocol/_generated/pub/esf.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
rid: tuple[int, ...]
property
total_skills_count: int
property
version: int
property
skills: tuple[EsfRecord, ...]
property
__init__(*, rid, total_skills_count, version, skills)
Create a new instance of Esf.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rid |
Iterable[int]
|
(Length must be |
required |
total_skills_count |
int
|
(Value range is 0-64008.) |
required |
version |
int
|
(Value range is 0-252.) |
required |
skills |
Iterable[EsfRecord]
|
|
required |
Source code in src/eolib/protocol/_generated/pub/esf.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 | |
serialize(writer, data)
staticmethod
Serializes an instance of Esf to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
Esf
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/esf.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | |
deserialize(reader)
staticmethod
Deserializes an instance of Esf from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Esf |
'Esf'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/esf.py
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | |
EnfRecord
Record of NPC data in an Endless NPC File
Source code in src/eolib/protocol/_generated/pub/enf_record.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
name: str
property
graphic_id: int
property
race: int
property
boss: bool
property
child: bool
property
type: NpcType
property
behavior_id: int
property
hp: int
property
tp: int
property
min_damage: int
property
max_damage: int
property
accuracy: int
property
evade: int
property
armor: int
property
return_damage: int
property
element: Element
property
element_damage: int
property
element_weakness: Element
property
element_weakness_damage: int
property
level: int
property
experience: int
property
__init__(*, name, graphic_id, race, boss, child, type, behavior_id, hp, tp, min_damage, max_damage, accuracy, evade, armor, return_damage, element, element_damage, element_weakness, element_weakness_damage, level, experience)
Create a new instance of EnfRecord.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name |
str
|
(Length must be 252 or less.) |
required |
graphic_id |
int
|
(Value range is 0-64008.) |
required |
race |
int
|
(Value range is 0-252.) |
required |
boss |
bool
|
|
required |
child |
bool
|
|
required |
type |
NpcType
|
|
required |
behavior_id |
int
|
(Value range is 0-64008.) |
required |
hp |
int
|
(Value range is 0-16194276.) |
required |
tp |
int
|
(Value range is 0-64008.) |
required |
min_damage |
int
|
(Value range is 0-64008.) |
required |
max_damage |
int
|
(Value range is 0-64008.) |
required |
accuracy |
int
|
(Value range is 0-64008.) |
required |
evade |
int
|
(Value range is 0-64008.) |
required |
armor |
int
|
(Value range is 0-64008.) |
required |
return_damage |
int
|
(Value range is 0-252.) |
required |
element |
Element
|
|
required |
element_damage |
int
|
(Value range is 0-64008.) |
required |
element_weakness |
Element
|
|
required |
element_weakness_damage |
int
|
(Value range is 0-64008.) |
required |
level |
int
|
(Value range is 0-252.) |
required |
experience |
int
|
(Value range is 0-16194276.) |
required |
Source code in src/eolib/protocol/_generated/pub/enf_record.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | |
serialize(writer, data)
staticmethod
Serializes an instance of EnfRecord to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
EnfRecord
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/enf_record.py
184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 | |
deserialize(reader)
staticmethod
Deserializes an instance of EnfRecord from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
EnfRecord |
EnfRecord
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/enf_record.py
266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 | |
Enf
Endless NPC File
Source code in src/eolib/protocol/_generated/pub/enf.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
rid: tuple[int, ...]
property
total_npcs_count: int
property
version: int
property
npcs: tuple[EnfRecord, ...]
property
__init__(*, rid, total_npcs_count, version, npcs)
Create a new instance of Enf.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rid |
Iterable[int]
|
(Length must be |
required |
total_npcs_count |
int
|
(Value range is 0-64008.) |
required |
version |
int
|
(Value range is 0-252.) |
required |
npcs |
Iterable[EnfRecord]
|
|
required |
Source code in src/eolib/protocol/_generated/pub/enf.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 | |
serialize(writer, data)
staticmethod
Serializes an instance of Enf to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
Enf
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/enf.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | |
deserialize(reader)
staticmethod
Deserializes an instance of Enf from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Enf |
'Enf'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/enf.py
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | |
EifRecord
Record of Item data in an Endless Item File
Source code in src/eolib/protocol/_generated/pub/eif_record.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
name: str
property
graphic_id: int
property
type: ItemType
property
subtype: ItemSubtype
property
special: ItemSpecial
property
hp: int
property
tp: int
property
min_damage: int
property
max_damage: int
property
accuracy: int
property
evade: int
property
armor: int
property
return_damage: int
property
str: int
property
intl: int
property
wis: int
property
agi: int
property
con: int
property
cha: int
property
light_resistance: int
property
dark_resistance: int
property
earth_resistance: int
property
air_resistance: int
property
water_resistance: int
property
fire_resistance: int
property
spec1: int
property
Holds one the following values, depending on item type: scroll_map, doll_graphic, exp_reward, hair_color, effect, key, alcohol_potency
spec2: int
property
Holds one the following values, depending on item type: scroll_x, gender
spec3: int
property
Holds one the following values, depending on item type: scroll_y
level_requirement: int
property
class_requirement: int
property
str_requirement: int
property
int_requirement: int
property
wis_requirement: int
property
agi_requirement: int
property
con_requirement: int
property
cha_requirement: int
property
element: Element
property
element_damage: int
property
weight: int
property
size: ItemSize
property
__init__(*, name, graphic_id, type, subtype, special, hp, tp, min_damage, max_damage, accuracy, evade, armor, return_damage, str, intl, wis, agi, con, cha, light_resistance, dark_resistance, earth_resistance, air_resistance, water_resistance, fire_resistance, spec1, spec2, spec3, level_requirement, class_requirement, str_requirement, int_requirement, wis_requirement, agi_requirement, con_requirement, cha_requirement, element, element_damage, weight, size)
Create a new instance of EifRecord.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name |
str
|
(Length must be 252 or less.) |
required |
graphic_id |
int
|
(Value range is 0-64008.) |
required |
type |
ItemType
|
|
required |
subtype |
ItemSubtype
|
|
required |
special |
ItemSpecial
|
|
required |
hp |
int
|
(Value range is 0-64008.) |
required |
tp |
int
|
(Value range is 0-64008.) |
required |
min_damage |
int
|
(Value range is 0-64008.) |
required |
max_damage |
int
|
(Value range is 0-64008.) |
required |
accuracy |
int
|
(Value range is 0-64008.) |
required |
evade |
int
|
(Value range is 0-64008.) |
required |
armor |
int
|
(Value range is 0-64008.) |
required |
return_damage |
int
|
(Value range is 0-252.) |
required |
str |
int
|
(Value range is 0-252.) |
required |
intl |
int
|
(Value range is 0-252.) |
required |
wis |
int
|
(Value range is 0-252.) |
required |
agi |
int
|
(Value range is 0-252.) |
required |
con |
int
|
(Value range is 0-252.) |
required |
cha |
int
|
(Value range is 0-252.) |
required |
light_resistance |
int
|
(Value range is 0-252.) |
required |
dark_resistance |
int
|
(Value range is 0-252.) |
required |
earth_resistance |
int
|
(Value range is 0-252.) |
required |
air_resistance |
int
|
(Value range is 0-252.) |
required |
water_resistance |
int
|
(Value range is 0-252.) |
required |
fire_resistance |
int
|
(Value range is 0-252.) |
required |
spec1 |
int
|
Holds one the following values, depending on item type: scroll_map, doll_graphic, exp_reward, hair_color, effect, key, alcohol_potency (Value range is 0-16194276.) |
required |
spec2 |
int
|
Holds one the following values, depending on item type: scroll_x, gender (Value range is 0-252.) |
required |
spec3 |
int
|
Holds one the following values, depending on item type: scroll_y (Value range is 0-252.) |
required |
level_requirement |
int
|
(Value range is 0-64008.) |
required |
class_requirement |
int
|
(Value range is 0-64008.) |
required |
str_requirement |
int
|
(Value range is 0-64008.) |
required |
int_requirement |
int
|
(Value range is 0-64008.) |
required |
wis_requirement |
int
|
(Value range is 0-64008.) |
required |
agi_requirement |
int
|
(Value range is 0-64008.) |
required |
con_requirement |
int
|
(Value range is 0-64008.) |
required |
cha_requirement |
int
|
(Value range is 0-64008.) |
required |
element |
Element
|
|
required |
element_damage |
int
|
(Value range is 0-252.) |
required |
weight |
int
|
(Value range is 0-252.) |
required |
size |
ItemSize
|
|
required |
Source code in src/eolib/protocol/_generated/pub/eif_record.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | |
serialize(writer, data)
staticmethod
Serializes an instance of EifRecord to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
EifRecord
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/eif_record.py
332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 | |
deserialize(reader)
staticmethod
Deserializes an instance of EifRecord from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
EifRecord |
EifRecord
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/eif_record.py
472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 | |
Eif
Endless Item File
Source code in src/eolib/protocol/_generated/pub/eif.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
rid: tuple[int, ...]
property
total_items_count: int
property
version: int
property
items: tuple[EifRecord, ...]
property
__init__(*, rid, total_items_count, version, items)
Create a new instance of Eif.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rid |
Iterable[int]
|
(Length must be |
required |
total_items_count |
int
|
(Value range is 0-64008.) |
required |
version |
int
|
(Value range is 0-252.) |
required |
items |
Iterable[EifRecord]
|
|
required |
Source code in src/eolib/protocol/_generated/pub/eif.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 | |
serialize(writer, data)
staticmethod
Serializes an instance of Eif to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
Eif
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/eif.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | |
deserialize(reader)
staticmethod
Deserializes an instance of Eif from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Eif |
'Eif'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/eif.py
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | |
EcfRecord
Record of Class data in an Endless Class File
Source code in src/eolib/protocol/_generated/pub/ecf_record.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
name: str
property
parent_type: int
property
stat_group: int
property
str: int
property
intl: int
property
wis: int
property
agi: int
property
con: int
property
cha: int
property
__init__(*, name, parent_type, stat_group, str, intl, wis, agi, con, cha)
Create a new instance of EcfRecord.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name |
str
|
(Length must be 252 or less.) |
required |
parent_type |
int
|
(Value range is 0-252.) |
required |
stat_group |
int
|
(Value range is 0-252.) |
required |
str |
int
|
(Value range is 0-64008.) |
required |
intl |
int
|
(Value range is 0-64008.) |
required |
wis |
int
|
(Value range is 0-64008.) |
required |
agi |
int
|
(Value range is 0-64008.) |
required |
con |
int
|
(Value range is 0-64008.) |
required |
cha |
int
|
(Value range is 0-64008.) |
required |
Source code in src/eolib/protocol/_generated/pub/ecf_record.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | |
serialize(writer, data)
staticmethod
Serializes an instance of EcfRecord to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
EcfRecord
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/ecf_record.py
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | |
deserialize(reader)
staticmethod
Deserializes an instance of EcfRecord from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
EcfRecord |
EcfRecord
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/ecf_record.py
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | |
Ecf
Endless Class File
Source code in src/eolib/protocol/_generated/pub/ecf.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | |
byte_size: int
property
Returns the size of the data that this was deserialized from.
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The size of the data that this was deserialized from. |
rid: tuple[int, ...]
property
total_classes_count: int
property
version: int
property
classes: tuple[EcfRecord, ...]
property
__init__(*, rid, total_classes_count, version, classes)
Create a new instance of Ecf.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rid |
Iterable[int]
|
(Length must be |
required |
total_classes_count |
int
|
(Value range is 0-64008.) |
required |
version |
int
|
(Value range is 0-252.) |
required |
classes |
Iterable[EcfRecord]
|
|
required |
Source code in src/eolib/protocol/_generated/pub/ecf.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 | |
serialize(writer, data)
staticmethod
Serializes an instance of Ecf to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
Ecf
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/pub/ecf.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | |
deserialize(reader)
staticmethod
Deserializes an instance of Ecf from the provided EoReader.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader |
EoReader
|
The writer that the data will be serialized to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Ecf |
'Ecf'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/pub/ecf.py
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | |