| Package | Description |
|---|---|
| fr.arakne.utils.maps.serializer |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultMapDataSerializer
Default implementation of the map data serializer, handling the plain (i.e. not crypted) map data format
https://github.com/Emudofus/Dofus/blob/1.29/ank/battlefield/utils/Compressor.as#L54
|
class |
EncryptedMapDataSerializer
Implementation of the map serializer for encrypted map data
Encrypted maps are maps with file name ending with X.swf (ex: 10340_0706131721X.swf)
and require a key sent by the server with the GDM packet
MapDataSerializer serializer = new EncryptedMapDataSerializer(Key.parse(gdm.key()));
CellData[] cells = serializer.deserialize(encryptedMapData);
https://github.com/Emudofus/Dofus/blob/1.29/dofus/managers/MapsServersManager.as#L137 |
| Modifier and Type | Method and Description |
|---|---|
MapDataSerializer |
DefaultMapDataSerializer.withKey(Key key)
Get a MapDataSerializer for encrypted map with the given key
Use the current serializer as inner serializer (and also use the current cache)
|
MapDataSerializer |
DefaultMapDataSerializer.withKey(@MinLen(value=2) String key)
Get a MapDataSerializer for encrypted map with the given key
This is equivalent to `serializer.withKey(Key.parse(key));`
CellData[] cells = serializer.withKey(gdm.key()).deserialize(mapData);
|
| Constructor and Description |
|---|
EncryptedMapDataSerializer(Key key,
MapDataSerializer plainDataSerializer) |
Copyright © 2022. All rights reserved.