/// <summary> /// コンストラクタ /// </summary> /// <param name="pm">対象のプロセスメモリ</param> /// <param name="system_table_config">プロセスメモリ上の馬名(既定)テーブルの情報</param> /// <param name="user_table_config">プロセスメモリ上の馬名(ユーザ定義)テーブルの情報</param> public HorseNameTable( KOEI.WP7.M2008.Helper.ProcessMemory pm, HorseNameTableConfiguration system_table_config, HorseNameTableConfiguration user_table_config) { this.pm_ = pm; this.name_data_dic_ = new Dictionary< int, KOEI.WP7.M2008.Horse.Name.NameData >(); this.system_table_config_ = system_table_config; this.user_table_config_ = user_table_config; // システム既定の馬名テーブルを作成する this.CreateSystemNameTable(); // ユーザー定義の馬名テーブルを作成する this.CreateUserNameTable(); }
/// <summary> /// トランザクションを開始します /// </summary> private void Transaction() { this.pm_ = new KOEI.WP7.M2008.Helper.ProcessMemory( this.process_name_ ); this.name_table_ = new KOEI.WP7.M2008.MemoryTable.HorseNameTable( this.pm_, this.config_.HorseNameSystemTable, this.config_.HorseNameUserTable ); this.h_abl_table_ = new KOEI.WP7.M2008.MemoryTable.ProcessMemoryTable( this.pm_, this.config_.HorseAbilityTable ); this.h_family_line_table_ = new KOEI.WP7.M2008.MemoryTable.ProcessMemoryTable( this.pm_, this.config_.HorseFamilyLineTable ); this.h_blood_table_ = new KOEI.WP7.M2008.MemoryTable.ProcessMemoryTable( this.pm_, this.config_.HorseBloodTable ); this.h_race_table_ = new KOEI.WP7.M2008.MemoryTable.ProcessMemoryTable( this.pm_, this.config_.HorseRaceTable ); this.h_sire_table_ = new KOEI.WP7.M2008.MemoryTable.ProcessMemoryTable( this.pm_, this.config_.HorseSireTable ); this.h_dam_table_ = new KOEI.WP7.M2008.MemoryTable.ProcessMemoryTable( this.pm_, this.config_.HorseDamTable ); this.h_child_table_ = new KOEI.WP7.M2008.MemoryTable.ProcessMemoryTable( this.pm_, this.config_.HorseChildTable ); }
/// <summary> /// オブジェクトを破棄します /// </summary> public void Dispose() { if( this.pm_ != null ) { this.pm_.Dispose(); this.pm_ = null; } }