Exemplo n.º 1
0
 void Load(const char * data)
 {
     std::istringstream loadStream(LoadBossState(data));
     uint32 buff;
     loadStream >> buff;
     gothikDoorState = GOState(buff);
 }
Exemplo n.º 2
0
        void Load(const char * data)
        {
            std::istringstream loadStream(LoadBossState(data));
            uint32 temp, buff, buff2;

            for (uint32 i = 0; i < MAX_BOSS_NUMBER; ++i)
                loadStream >> temp;

            loadStream >> buff;
            gothikDoorState = GOState(buff);
            loadStream >> buff2;
            playerDied = buff2;
        }
    void Load(const char * data)
    {
        loading = true;
        std::istringstream loadStream(LoadBossState(data));
        uint32 deaths, tryes;
        loadStream >> deaths;
        loadStream >> tryes;

        deathsCount = deaths;
        attempts = tryes;

        loading = false;
    }