/// <summary> /// Create initial mimic item table for ice traps. /// </summary> /// <returns>Mimic table.</returns> public MimicItemTable CreateMimicItemTable() { var addr = this["ITEM_OVERRIDE_COUNT"]; var count = ReadWriteUtils.ReadU32((int)addr); return(new MimicItemTable((int)count)); }
/// <summary> /// Create initial extended <see cref="MessageTable"/> for extra messages. /// </summary> /// <returns>Extended MessageTable</returns> public MessageTable CreateInitialExtMessageTable() { var addr = this["EXT_MSG_TABLE_COUNT"]; var count = ReadWriteUtils.ReadU32((int)addr); return(new MessageTable(count)); }
/// <summary> /// Write an <see cref="AsmConfig"/> structure to ROM. /// </summary> /// <param name="symbol">Symbol</param> /// <param name="config">Config</param> void WriteAsmConfig(string symbol, AsmConfig config) { var addr = this[symbol]; var version = ReadWriteUtils.ReadU32((int)(addr + 4)); var bytes = config.ToBytes(version); ReadWriteUtils.WriteToROM((int)(addr + 4), bytes); }