feat: 초기 커밋
- Progress Quest 6.4 Flutter 포팅 프로젝트 - 게임 루프, 상태 관리, UI 구현 - 캐릭터 생성, 인벤토리, 장비, 주문 시스템 - 시장/판매/구매 메커니즘
This commit is contained in:
31
lib/src/core/model/pq_config.dart
Normal file
31
lib/src/core/model/pq_config.dart
Normal file
@@ -0,0 +1,31 @@
|
||||
import 'package:askiineverdie/data/pq_config_data.dart';
|
||||
|
||||
/// Typed accessors for Progress Quest static data extracted from Config.dfm.
|
||||
class PqConfig {
|
||||
const PqConfig();
|
||||
|
||||
List<String> get spells => _copy('Spells');
|
||||
List<String> get offenseAttrib => _copy('OffenseAttrib');
|
||||
List<String> get defenseAttrib => _copy('DefenseAttrib');
|
||||
List<String> get offenseBad => _copy('OffenseBad');
|
||||
List<String> get defenseBad => _copy('DefenseBad');
|
||||
List<String> get shields => _copy('Shields');
|
||||
List<String> get armors => _copy('Armors');
|
||||
List<String> get weapons => _copy('Weapons');
|
||||
List<String> get specials => _copy('Specials');
|
||||
List<String> get itemAttrib => _copy('ItemAttrib');
|
||||
List<String> get itemOfs => _copy('ItemOfs');
|
||||
List<String> get boringItems => _copy('BoringItems');
|
||||
List<String> get monsters => _copy('Monsters');
|
||||
List<String> get monMods => _copy('MonMods');
|
||||
List<String> get races => _copy('Races');
|
||||
List<String> get klasses => _copy('Klasses');
|
||||
List<String> get titles => _copy('Titles');
|
||||
List<String> get impressiveTitles => _copy('ImpressiveTitles');
|
||||
|
||||
List<String> _copy(String key) {
|
||||
final values = pqConfigData[key];
|
||||
if (values == null) return const [];
|
||||
return List<String>.from(values);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user