bot4dofus / Datafus

📚🥚 The Dofus database and socket events in JSON files. Includes the source code and more...
https://discord.gg/kNHsFcbUGp
MIT License
49 stars 13 forks source link

[A2] Distinction between boolean and flags #40

Open LucBerge opened 1 year ago

LucBerge commented 1 year ago

In the file https://github.com/bot4dofus/Datafus/blob/master/data/A/DofusInvoker/scripts/com/ankamagames/dofus/network/messages/connection/IdentificationMessage.as#L119

Those booleans are flags.

We should be able to distinguish them from regular booleans like in https://github.com/bot4dofus/Datafus/blob/master/data/A/DofusInvoker/scripts/com/ankamagames/dofus/network/messages/game/basic/BasicWhoIsRequestMessage.as#L120

Content of events.json:

 "IdentificationMessage": {
        "file": "data/A/DofusInvoker/scripts/com/ankamagames/dofus/network/messages/connection/IdentificationMessage.as",
        "id": "7755",
        "superclass": "NetworkMessage",
        "interfaces": [
            "INetworkMessage"
        ],
        "attributes": {
            "version": "Version",
            "lang": "String",
            "credentials": "Vector<VarInt,Byte>",
            "serverId": "Short",
            "autoconnect": "Boolean",
            "useCertificate": "Boolean",
            "useLoginToken": "Boolean",
            "sessionOptionalSalt": "VarLong",
            "failedAttempts": "Vector<Short,VarShort>"
        }
    },
bmassemin commented 3 months ago

Based on my observations: