@Override
    public void deserialize(Buffer buf) {
        mapId = buf.readInt();
        int limit = buf.readUShort();
        npcsIdsWithQuest = new int[limit];
        for (int i = 0; i < limit; i++) {
            npcsIdsWithQuest[i] = buf.readInt();
        }
        limit = buf.readUShort();
        questFlags = new GameRolePlayNpcQuestFlag[limit];
        for (int i = 0; i < limit; i++) {
            questFlags[i] = new GameRolePlayNpcQuestFlag();
            questFlags[i].deserialize(buf);
        }
        limit = buf.readUShort();
        npcsIdsWithoutQuest = new int[limit];
        for (int i = 0; i < limit; i++) {
            npcsIdsWithoutQuest[i] = buf.readInt();
        }
    }