map
EO map file data structures.
See Also
MapWarp
Warp EMF entity
Source code in src/eolib/protocol/_generated/map/map_warp.py
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 | |
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. |
destination_map: int
property
destination_coords: Coords
property
level_required: int
property
door: int
property
__init__(*, destination_map, destination_coords, level_required, door)
Create a new instance of MapWarp.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
destination_map |
int
|
(Value range is 0-64008.) |
required |
destination_coords |
Coords
|
|
required |
level_required |
int
|
(Value range is 0-252.) |
required |
door |
int
|
(Value range is 0-64008.) |
required |
Source code in src/eolib/protocol/_generated/map/map_warp.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 | |
serialize(writer, data)
staticmethod
Serializes an instance of MapWarp to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
MapWarp
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/map/map_warp.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 | |
deserialize(reader)
staticmethod
Deserializes an instance of MapWarp 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 |
|---|---|---|
MapWarp |
MapWarp
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/map/map_warp.py
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | |
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 | |
MapWarpRowTile
A single tile in a row of warp entities
Source code in src/eolib/protocol/_generated/map/map_warp_row_tile.py
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 | |
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. |
x: int
property
warp: MapWarp
property
__init__(*, x, warp)
Create a new instance of MapWarpRowTile.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x |
int
|
(Value range is 0-252.) |
required |
warp |
MapWarp
|
|
required |
Source code in src/eolib/protocol/_generated/map/map_warp_row_tile.py
19 20 21 22 23 24 25 26 27 28 | |
serialize(writer, data)
staticmethod
Serializes an instance of MapWarpRowTile to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
MapWarpRowTile
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/map/map_warp_row_tile.py
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | |
deserialize(reader)
staticmethod
Deserializes an instance of MapWarpRowTile 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 |
|---|---|---|
MapWarpRowTile |
MapWarpRowTile
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/map/map_warp_row_tile.py
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | |
MapWarpRow
A row of warp entities
Source code in src/eolib/protocol/_generated/map/map_warp_row.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. |
y: int
property
tiles: tuple[MapWarpRowTile, ...]
property
__init__(*, y, tiles)
Create a new instance of MapWarpRow.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
y |
int
|
(Value range is 0-252.) |
required |
tiles |
Iterable[MapWarpRowTile]
|
(Length must be 252 or less.) |
required |
Source code in src/eolib/protocol/_generated/map/map_warp_row.py
22 23 24 25 26 27 28 29 30 31 32 | |
serialize(writer, data)
staticmethod
Serializes an instance of MapWarpRow to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
MapWarpRow
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/map/map_warp_row.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 MapWarpRow 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 |
|---|---|---|
MapWarpRow |
'MapWarpRow'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/map/map_warp_row.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 | |
Coords
Map coordinates
Source code in src/eolib/protocol/_generated/coords.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 | |
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. |
x: int
property
y: int
property
__init__(*, x, y)
Create a new instance of Coords.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x |
int
|
(Value range is 0-252.) |
required |
y |
int
|
(Value range is 0-252.) |
required |
Source code in src/eolib/protocol/_generated/coords.py
18 19 20 21 22 23 24 25 26 27 | |
serialize(writer, data)
staticmethod
Serializes an instance of Coords to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
Coords
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/coords.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | |
deserialize(reader)
staticmethod
Deserializes an instance of Coords 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 |
|---|---|---|
Coords |
Coords
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/coords.py
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |
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 | |
MapType
Bases: IntEnum
Source code in src/eolib/protocol/_generated/map/map_type.py
9 10 11 | |
Normal = 0
class-attribute
instance-attribute
Pk = 3
class-attribute
instance-attribute
MapTimedEffect
Bases: IntEnum
A timed effect that can occur on a map
Source code in src/eolib/protocol/_generated/map/map_timed_effect.py
9 10 11 12 13 14 15 16 17 18 19 | |
None_ = 0
class-attribute
instance-attribute
HpDrain = 1
class-attribute
instance-attribute
TpDrain = 2
class-attribute
instance-attribute
Quake1 = 3
class-attribute
instance-attribute
Quake2 = 4
class-attribute
instance-attribute
Quake3 = 5
class-attribute
instance-attribute
Quake4 = 6
class-attribute
instance-attribute
MapTileSpec
Bases: IntEnum
The type of a tile on a map
Source code in src/eolib/protocol/_generated/map/map_tile_spec.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 40 41 42 43 44 45 46 47 48 49 | |
Wall = 0
class-attribute
instance-attribute
ChairDown = 1
class-attribute
instance-attribute
ChairLeft = 2
class-attribute
instance-attribute
ChairRight = 3
class-attribute
instance-attribute
ChairUp = 4
class-attribute
instance-attribute
ChairDownRight = 5
class-attribute
instance-attribute
ChairUpLeft = 6
class-attribute
instance-attribute
ChairAll = 7
class-attribute
instance-attribute
Reserved8 = 8
class-attribute
instance-attribute
Chest = 9
class-attribute
instance-attribute
Reserved10 = 10
class-attribute
instance-attribute
Reserved11 = 11
class-attribute
instance-attribute
Reserved12 = 12
class-attribute
instance-attribute
Reserved13 = 13
class-attribute
instance-attribute
Reserved14 = 14
class-attribute
instance-attribute
Reserved15 = 15
class-attribute
instance-attribute
BankVault = 16
class-attribute
instance-attribute
NpcBoundary = 17
class-attribute
instance-attribute
Edge = 18
class-attribute
instance-attribute
FakeWall = 19
class-attribute
instance-attribute
Board1 = 20
class-attribute
instance-attribute
Board2 = 21
class-attribute
instance-attribute
Board3 = 22
class-attribute
instance-attribute
Board4 = 23
class-attribute
instance-attribute
Board5 = 24
class-attribute
instance-attribute
Board6 = 25
class-attribute
instance-attribute
Board7 = 26
class-attribute
instance-attribute
Board8 = 27
class-attribute
instance-attribute
Jukebox = 28
class-attribute
instance-attribute
Jump = 29
class-attribute
instance-attribute
Water = 30
class-attribute
instance-attribute
Reserved31 = 31
class-attribute
instance-attribute
Arena = 32
class-attribute
instance-attribute
AmbientSource = 33
class-attribute
instance-attribute
TimedSpikes = 34
class-attribute
instance-attribute
Spikes = 35
class-attribute
instance-attribute
HiddenSpikes = 36
class-attribute
instance-attribute
MapTileSpecRowTile
A single tile in a row of tilespecs
Source code in src/eolib/protocol/_generated/map/map_tile_spec_row_tile.py
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 | |
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. |
x: int
property
tile_spec: MapTileSpec
property
__init__(*, x, tile_spec)
Create a new instance of MapTileSpecRowTile.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x |
int
|
(Value range is 0-252.) |
required |
tile_spec |
MapTileSpec
|
|
required |
Source code in src/eolib/protocol/_generated/map/map_tile_spec_row_tile.py
19 20 21 22 23 24 25 26 27 28 | |
serialize(writer, data)
staticmethod
Serializes an instance of MapTileSpecRowTile to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
MapTileSpecRowTile
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/map/map_tile_spec_row_tile.py
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | |
deserialize(reader)
staticmethod
Deserializes an instance of MapTileSpecRowTile 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 |
|---|---|---|
MapTileSpecRowTile |
MapTileSpecRowTile
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/map/map_tile_spec_row_tile.py
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | |
MapTileSpecRow
A row of tilespecs
Source code in src/eolib/protocol/_generated/map/map_tile_spec_row.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. |
y: int
property
tiles: tuple[MapTileSpecRowTile, ...]
property
__init__(*, y, tiles)
Create a new instance of MapTileSpecRow.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
y |
int
|
(Value range is 0-252.) |
required |
tiles |
Iterable[MapTileSpecRowTile]
|
(Length must be 252 or less.) |
required |
Source code in src/eolib/protocol/_generated/map/map_tile_spec_row.py
22 23 24 25 26 27 28 29 30 31 32 | |
serialize(writer, data)
staticmethod
Serializes an instance of MapTileSpecRow to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
MapTileSpecRow
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/map/map_tile_spec_row.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 MapTileSpecRow 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 |
|---|---|---|
MapTileSpecRow |
'MapTileSpecRow'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/map/map_tile_spec_row.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 | |
MapSign
Sign EMF entity
Source code in src/eolib/protocol/_generated/map/map_sign.py
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 | |
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. |
coords: Coords
property
string_data: str
property
title_length: int
property
__init__(*, coords, string_data, title_length)
Create a new instance of MapSign.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
coords |
Coords
|
|
required |
string_data |
str
|
(Length must be 64007 or less.) |
required |
title_length |
int
|
(Value range is 0-252.) |
required |
Source code in src/eolib/protocol/_generated/map/map_sign.py
21 22 23 24 25 26 27 28 29 30 31 32 33 | |
serialize(writer, data)
staticmethod
Serializes an instance of MapSign to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
MapSign
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/map/map_sign.py
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 | |
deserialize(reader)
staticmethod
Deserializes an instance of MapSign 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 |
|---|---|---|
MapSign |
MapSign
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/map/map_sign.py
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | |
MapNpc
NPC spawn EMF entity
Source code in src/eolib/protocol/_generated/map/map_npc.py
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 | |
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. |
coords: Coords
property
id: int
property
spawn_type: int
property
spawn_time: int
property
amount: int
property
__init__(*, coords, id, spawn_type, spawn_time, amount)
Create a new instance of MapNpc.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
coords |
Coords
|
|
required |
id |
int
|
(Value range is 0-64008.) |
required |
spawn_type |
int
|
(Value range is 0-252.) |
required |
spawn_time |
int
|
(Value range is 0-64008.) |
required |
amount |
int
|
(Value range is 0-252.) |
required |
Source code in src/eolib/protocol/_generated/map/map_npc.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | |
serialize(writer, data)
staticmethod
Serializes an instance of MapNpc to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
MapNpc
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/map/map_npc.py
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 | |
deserialize(reader)
staticmethod
Deserializes an instance of MapNpc 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 |
|---|---|---|
MapNpc |
MapNpc
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/map/map_npc.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 | |
MapMusicControl
Bases: IntEnum
How background music should be played on a map
Source code in src/eolib/protocol/_generated/map/map_music_control.py
9 10 11 12 13 14 15 16 17 18 19 | |
InterruptIfDifferentPlayOnce = 0
class-attribute
instance-attribute
InterruptPlayOnce = 1
class-attribute
instance-attribute
FinishPlayOnce = 2
class-attribute
instance-attribute
InterruptIfDifferentPlayRepeat = 3
class-attribute
instance-attribute
InterruptPlayRepeat = 4
class-attribute
instance-attribute
FinishPlayRepeat = 5
class-attribute
instance-attribute
InterruptPlayNothing = 6
class-attribute
instance-attribute
MapLegacyDoorKey
Legacy EMF entity used to specify a key on a door
Source code in src/eolib/protocol/_generated/map/map_legacy_door_key.py
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 | |
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. |
coords: Coords
property
key: int
property
__init__(*, coords, key)
Create a new instance of MapLegacyDoorKey.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
coords |
Coords
|
|
required |
key |
int
|
(Value range is 0-64008.) |
required |
Source code in src/eolib/protocol/_generated/map/map_legacy_door_key.py
19 20 21 22 23 24 25 26 27 28 | |
serialize(writer, data)
staticmethod
Serializes an instance of MapLegacyDoorKey to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
MapLegacyDoorKey
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/map/map_legacy_door_key.py
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | |
deserialize(reader)
staticmethod
Deserializes an instance of MapLegacyDoorKey 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 |
|---|---|---|
MapLegacyDoorKey |
MapLegacyDoorKey
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/map/map_legacy_door_key.py
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | |
MapItem
Item spawn EMF entity
Source code in src/eolib/protocol/_generated/map/map_item.py
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 | |
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. |
coords: Coords
property
key: int
property
chest_slot: int
property
item_id: int
property
spawn_time: int
property
amount: int
property
__init__(*, coords, key, chest_slot, item_id, spawn_time, amount)
Create a new instance of MapItem.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
coords |
Coords
|
|
required |
key |
int
|
(Value range is 0-64008.) |
required |
chest_slot |
int
|
(Value range is 0-252.) |
required |
item_id |
int
|
(Value range is 0-64008.) |
required |
spawn_time |
int
|
(Value range is 0-64008.) |
required |
amount |
int
|
(Value range is 0-16194276.) |
required |
Source code in src/eolib/protocol/_generated/map/map_item.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | |
serialize(writer, data)
staticmethod
Serializes an instance of MapItem to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
MapItem
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/map/map_item.py
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 | |
deserialize(reader)
staticmethod
Deserializes an instance of MapItem 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 |
|---|---|---|
MapItem |
MapItem
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/map/map_item.py
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 | |
MapGraphicRowTile
A single tile in a row of map graphics
Source code in src/eolib/protocol/_generated/map/map_graphic_row_tile.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 | |
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. |
x: int
property
graphic: int
property
__init__(*, x, graphic)
Create a new instance of MapGraphicRowTile.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x |
int
|
(Value range is 0-252.) |
required |
graphic |
int
|
(Value range is 0-64008.) |
required |
Source code in src/eolib/protocol/_generated/map/map_graphic_row_tile.py
18 19 20 21 22 23 24 25 26 27 | |
serialize(writer, data)
staticmethod
Serializes an instance of MapGraphicRowTile to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
MapGraphicRowTile
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/map/map_graphic_row_tile.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | |
deserialize(reader)
staticmethod
Deserializes an instance of MapGraphicRowTile 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 |
|---|---|---|
MapGraphicRowTile |
MapGraphicRowTile
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/map/map_graphic_row_tile.py
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |
MapGraphicRow
A row in a layer of map graphics
Source code in src/eolib/protocol/_generated/map/map_graphic_row.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. |
y: int
property
tiles: tuple[MapGraphicRowTile, ...]
property
__init__(*, y, tiles)
Create a new instance of MapGraphicRow.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
y |
int
|
(Value range is 0-252.) |
required |
tiles |
Iterable[MapGraphicRowTile]
|
(Length must be 252 or less.) |
required |
Source code in src/eolib/protocol/_generated/map/map_graphic_row.py
22 23 24 25 26 27 28 29 30 31 32 | |
serialize(writer, data)
staticmethod
Serializes an instance of MapGraphicRow to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
MapGraphicRow
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/map/map_graphic_row.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 MapGraphicRow 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 |
|---|---|---|
MapGraphicRow |
'MapGraphicRow'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/map/map_graphic_row.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 | |
MapGraphicLayer
A layer of map graphics
Source code in src/eolib/protocol/_generated/map/map_graphic_layer.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 | |
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. |
graphic_rows: tuple[MapGraphicRow, ...]
property
__init__(*, graphic_rows)
Create a new instance of MapGraphicLayer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
graphic_rows |
Iterable[MapGraphicRow]
|
(Length must be 252 or less.) |
required |
Source code in src/eolib/protocol/_generated/map/map_graphic_layer.py
21 22 23 24 25 26 27 28 29 | |
serialize(writer, data)
staticmethod
Serializes an instance of MapGraphicLayer to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
MapGraphicLayer
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/map/map_graphic_layer.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | |
deserialize(reader)
staticmethod
Deserializes an instance of MapGraphicLayer 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 |
|---|---|---|
MapGraphicLayer |
'MapGraphicLayer'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/map/map_graphic_layer.py
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | |
Emf
Endless Map File
Source code in src/eolib/protocol/_generated/map/emf.py
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 | |
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
name: str
property
type: MapType
property
timed_effect: MapTimedEffect
property
music_id: int
property
music_control: MapMusicControl
property
ambient_sound_id: int
property
width: int
property
height: int
property
fill_tile: int
property
map_available: bool
property
can_scroll: bool
property
relog_x: int
property
relog_y: int
property
npcs: tuple[MapNpc, ...]
property
legacy_door_keys: tuple[MapLegacyDoorKey, ...]
property
items: tuple[MapItem, ...]
property
tile_spec_rows: tuple[MapTileSpecRow, ...]
property
warp_rows: tuple[MapWarpRow, ...]
property
graphic_layers: tuple[MapGraphicLayer, ...]
property
The 9 layers of map graphics. Order is [Ground, Object, Overlay, Down Wall, Right Wall, Roof, Top, Shadow, Overlay2]
signs: tuple[MapSign, ...]
property
__init__(*, rid, name, type, timed_effect, music_id, music_control, ambient_sound_id, width, height, fill_tile, map_available, can_scroll, relog_x, relog_y, npcs, legacy_door_keys, items, tile_spec_rows, warp_rows, graphic_layers, signs)
Create a new instance of Emf.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rid |
Iterable[int]
|
(Length must be |
required |
name |
str
|
(Length must be |
required |
type |
MapType
|
|
required |
timed_effect |
MapTimedEffect
|
|
required |
music_id |
int
|
(Value range is 0-252.) |
required |
music_control |
MapMusicControl
|
|
required |
ambient_sound_id |
int
|
(Value range is 0-64008.) |
required |
width |
int
|
(Value range is 0-252.) |
required |
height |
int
|
(Value range is 0-252.) |
required |
fill_tile |
int
|
(Value range is 0-64008.) |
required |
map_available |
bool
|
|
required |
can_scroll |
bool
|
|
required |
relog_x |
int
|
(Value range is 0-252.) |
required |
relog_y |
int
|
(Value range is 0-252.) |
required |
npcs |
Iterable[MapNpc]
|
(Length must be 252 or less.) |
required |
legacy_door_keys |
Iterable[MapLegacyDoorKey]
|
(Length must be 252 or less.) |
required |
items |
Iterable[MapItem]
|
(Length must be 252 or less.) |
required |
tile_spec_rows |
Iterable[MapTileSpecRow]
|
(Length must be 252 or less.) |
required |
warp_rows |
Iterable[MapWarpRow]
|
(Length must be 252 or less.) |
required |
graphic_layers |
Iterable[MapGraphicLayer]
|
The 9 layers of map graphics. Order is [Ground, Object, Overlay, Down Wall, Right Wall, Roof, Top, Shadow, Overlay2] (Length must be |
required |
signs |
Iterable[MapSign]
|
(Length must be 252 or less.) |
required |
Source code in src/eolib/protocol/_generated/map/emf.py
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 | |
serialize(writer, data)
staticmethod
Serializes an instance of Emf to the provided EoWriter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer |
EoWriter
|
The writer that the data will be serialized to. |
required |
data |
Emf
|
The data to serialize. |
required |
Source code in src/eolib/protocol/_generated/map/emf.py
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 | |
deserialize(reader)
staticmethod
Deserializes an instance of Emf 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 |
|---|---|---|
Emf |
'Emf'
|
The data to serialize. |
Source code in src/eolib/protocol/_generated/map/emf.py
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 | |