pub
Data structures generated from the eo-protocol XML specification.
Warning
- This subpackage should not be directly imported.
- Instead, import eolib.protocol.pub (or the top-level
eolib
).
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
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 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 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 |
|
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
writable
Note
- Length must be 252 or less.
chant: str
property
writable
Note
- Length must be 252 or less.
icon_id: int
property
writable
Note
- Value range is 0-64008.
graphic_id: int
property
writable
Note
- Value range is 0-64008.
tp_cost: int
property
writable
Note
- Value range is 0-64008.
sp_cost: int
property
writable
Note
- Value range is 0-64008.
cast_time: int
property
writable
Note
- Value range is 0-252.
nature: SkillNature
property
writable
type: SkillType
property
writable
element: Element
property
writable
element_power: int
property
writable
Note
- Value range is 0-64008.
target_restrict: SkillTargetRestrict
property
writable
target_type: SkillTargetType
property
writable
target_time: int
property
writable
Note
- Value range is 0-252.
max_skill_level: int
property
writable
Note
- Value range is 0-64008.
min_damage: int
property
writable
Note
- Value range is 0-64008.
max_damage: int
property
writable
Note
- Value range is 0-64008.
accuracy: int
property
writable
Note
- Value range is 0-64008.
evade: int
property
writable
Note
- Value range is 0-64008.
armor: int
property
writable
Note
- Value range is 0-64008.
return_damage: int
property
writable
Note
- Value range is 0-252.
hp_heal: int
property
writable
Note
- Value range is 0-64008.
tp_heal: int
property
writable
Note
- Value range is 0-64008.
sp_heal: int
property
writable
Note
- Value range is 0-252.
str: int
property
writable
Note
- Value range is 0-64008.
intl: int
property
writable
Note
- Value range is 0-64008.
wis: int
property
writable
Note
- Value range is 0-64008.
agi: int
property
writable
Note
- Value range is 0-64008.
con: int
property
writable
Note
- Value range is 0-64008.
cha: int
property
writable
Note
- Value range is 0-64008.
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
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 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 |
|
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
617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 |
|
Esf
Endless Skill File
Source code in src/eolib/protocol/_generated/pub/esf.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 |
|
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: list[int]
property
writable
Note
- Length must be
2
. - Element value range is 0-64008.
total_skills_count: int
property
writable
Note
- Value range is 0-64008.
version: int
property
writable
Note
- Value range is 0-252.
skills: list[EsfRecord]
property
writable
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
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 |
|
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
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 |
|
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
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 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 |
|
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
writable
Note
- Length must be 252 or less.
graphic_id: int
property
writable
Note
- Value range is 0-64008.
race: int
property
writable
Note
- Value range is 0-252.
boss: bool
property
writable
child: bool
property
writable
type: NpcType
property
writable
behavior_id: int
property
writable
Note
- Value range is 0-64008.
hp: int
property
writable
Note
- Value range is 0-16194276.
tp: int
property
writable
Note
- Value range is 0-64008.
min_damage: int
property
writable
Note
- Value range is 0-64008.
max_damage: int
property
writable
Note
- Value range is 0-64008.
accuracy: int
property
writable
Note
- Value range is 0-64008.
evade: int
property
writable
Note
- Value range is 0-64008.
armor: int
property
writable
Note
- Value range is 0-64008.
return_damage: int
property
writable
Note
- Value range is 0-252.
element: Element
property
writable
element_damage: int
property
writable
Note
- Value range is 0-64008.
element_weakness: Element
property
writable
element_weakness_damage: int
property
writable
Note
- Value range is 0-64008.
level: int
property
writable
Note
- Value range is 0-252.
experience: int
property
writable
Note
- Value range is 0-16194276.
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
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 |
|
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
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 |
|
Enf
Endless NPC File
Source code in src/eolib/protocol/_generated/pub/enf.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 |
|
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: list[int]
property
writable
Note
- Length must be
2
. - Element value range is 0-64008.
total_npcs_count: int
property
writable
Note
- Value range is 0-64008.
version: int
property
writable
Note
- Value range is 0-252.
npcs: list[EnfRecord]
property
writable
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
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 |
|
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
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 |
|
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 17 18 |
|
__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 17 18 |
|
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
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 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 |
|
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
writable
Note
- Length must be 252 or less.
graphic_id: int
property
writable
Note
- Value range is 0-64008.
type: ItemType
property
writable
subtype: ItemSubtype
property
writable
special: ItemSpecial
property
writable
hp: int
property
writable
Note
- Value range is 0-64008.
tp: int
property
writable
Note
- Value range is 0-64008.
min_damage: int
property
writable
Note
- Value range is 0-64008.
max_damage: int
property
writable
Note
- Value range is 0-64008.
accuracy: int
property
writable
Note
- Value range is 0-64008.
evade: int
property
writable
Note
- Value range is 0-64008.
armor: int
property
writable
Note
- Value range is 0-64008.
return_damage: int
property
writable
Note
- Value range is 0-252.
str: int
property
writable
Note
- Value range is 0-252.
intl: int
property
writable
Note
- Value range is 0-252.
wis: int
property
writable
Note
- Value range is 0-252.
agi: int
property
writable
Note
- Value range is 0-252.
con: int
property
writable
Note
- Value range is 0-252.
cha: int
property
writable
Note
- Value range is 0-252.
light_resistance: int
property
writable
Note
- Value range is 0-252.
dark_resistance: int
property
writable
Note
- Value range is 0-252.
earth_resistance: int
property
writable
Note
- Value range is 0-252.
air_resistance: int
property
writable
Note
- Value range is 0-252.
water_resistance: int
property
writable
Note
- Value range is 0-252.
fire_resistance: int
property
writable
Note
- Value range is 0-252.
spec1: int
property
writable
Holds one the following values, depending on item type: scroll_map, doll_graphic, exp_reward, hair_color, effect, key, alcohol_potency
Note
- Value range is 0-16194276.
spec2: int
property
writable
Holds one the following values, depending on item type: scroll_x, gender
Note
- Value range is 0-252.
spec3: int
property
writable
Holds one the following values, depending on item type: scroll_y
Note
- Value range is 0-252.
level_requirement: int
property
writable
Note
- Value range is 0-64008.
class_requirement: int
property
writable
Note
- Value range is 0-64008.
str_requirement: int
property
writable
Note
- Value range is 0-64008.
int_requirement: int
property
writable
Note
- Value range is 0-64008.
wis_requirement: int
property
writable
Note
- Value range is 0-64008.
agi_requirement: int
property
writable
Note
- Value range is 0-64008.
con_requirement: int
property
writable
Note
- Value range is 0-64008.
cha_requirement: int
property
writable
Note
- Value range is 0-64008.
element: Element
property
writable
element_damage: int
property
writable
Note
- Value range is 0-252.
weight: int
property
writable
Note
- Value range is 0-252.
size: ItemSize
property
writable
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
691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 |
|
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
827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 |
|
Eif
Endless Item File
Source code in src/eolib/protocol/_generated/pub/eif.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 |
|
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: list[int]
property
writable
Note
- Length must be
2
. - Element value range is 0-64008.
total_items_count: int
property
writable
Note
- Value range is 0-64008.
version: int
property
writable
Note
- Value range is 0-252.
items: list[EifRecord]
property
writable
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
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 |
|
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
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 |
|
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 |
|
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 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 |
|
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
writable
Note
- Length must be 252 or less.
parent_type: int
property
writable
Note
- Value range is 0-252.
stat_group: int
property
writable
Note
- Value range is 0-252.
str: int
property
writable
Note
- Value range is 0-64008.
intl: int
property
writable
Note
- Value range is 0-64008.
wis: int
property
writable
Note
- Value range is 0-64008.
agi: int
property
writable
Note
- Value range is 0-64008.
con: int
property
writable
Note
- Value range is 0-64008.
cha: int
property
writable
Note
- Value range is 0-64008.
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
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 |
|
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
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 |
|
Ecf
Endless Class File
Source code in src/eolib/protocol/_generated/pub/ecf.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 |
|
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: list[int]
property
writable
Note
- Length must be
2
. - Element value range is 0-64008.
total_classes_count: int
property
writable
Note
- Value range is 0-64008.
version: int
property
writable
Note
- Value range is 0-252.
classes: list[EcfRecord]
property
writable
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
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 |
|
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
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 |
|