private final Logger log = LoggerFactory.getLogger(getClass());
@Override
public void apply(int peekTick, CSVCMsg_CreateStringTable message, Match match) {
HandlerHelper.traceMessage(log, peekTick, message);
StringTable table = new StringTable(
message.getName(),
message.getMaxEntries(),
message.getUserDataFixedSize(),
message.getUserDataSize(),
message.getUserDataSizeBits(),
message.getFlags()
);
match.getStringTables().add(table);
List<StringTableEntry> changes = StringTableDecoder.decode(table, message.getStringData().toByteArray(), message.getNumEntries());
StringTableApplier a = StringTableApplier.forName(table.getName());
for (StringTableEntry t : changes) {
a.apply(match, table.getName(), t.getIndex(), t.getKey(), t.getValue());
}
}