Ejemplo n.º 1
0
 public void AddLevelData(LevelData ld)
 {
     _levelData[ld.Level] = ld;
 }
Ejemplo n.º 2
0
        public static LevelData ReadFromDB(object[] row)
        {
            // 0: level   int(10) unsigned
            // 1: exp_req bigint(20) unsigned
            // 2: max_hp  int(10) unsigned
            // 3: max_mp  int(10) unsigned
            // 4: max_sp  int(10) unsigned
            // 5: power   int(10) unsigned
            // 6: vitality    int(10) unsigned
            // 7: sympathy    int(10) unsigned
            // 8: intelligence    int(10) unsigned
            // 9: stamina int(10) unsigned
            // 10: dexterity   int(10) unsigned
            // 11: ability_points  int(10) unsigned
            // 12: skill_points    int(10) unsigned
            // 13: move_speed  int(10) unsigned
            // 14: ability_pmin    int(10) unsigned
            // 15: ability_pmax    int(10) unsigned
            // 16: physical_def    int(10) unsigned
            // 17: magical_def int(10) unsigned
            // 18: attack_speed    int(10) unsigned
            // 19: ability_mmin    int(10) unsigned
            // 20: ability_mmax    int(10) unsigned

            LevelData ld = new LevelData();
            ld._level = (uint)row[0];
            ld._exp = (ulong)row[1];
            ld._maxHP = (uint)row[2];
            ld._maxMP = (uint)row[3];
            ld._maxSP = (uint)row[4];
            ld._power = (uint)row[5];
            ld._vitality = (uint)row[6];
            ld._sympathy = (uint)row[7];
            ld._intelligence = (uint)row[8];
            ld._stamina = (uint)row[9];
            ld._dexterity = (uint)row[10];
            ld._abilityPoints = (uint)row[11];
            ld._skillPoints = (uint)row[12];
            ld._moveSpeed = (uint)row[13];
            ld._abilityPMin = (uint)row[14];
            ld._abilityPMax = (uint)row[15];
            ld._pyhsicalDef = (uint)row[16];
            ld._magicalDef = (uint)row[17];
            ld._attackSpeed = (uint)row[18];
            ld._abilityMMin = (uint)row[19];
            ld._abilityMMax = (uint)row[20];
            return ld;
        }