public static QuestLine ReadFromDB(object[] row) { // 0: quest_line_id int(10) unsigned // 1: quest_id int(10) unsigned // 2: step int(10) unsigned // 3: line int(10) unsigned // 4: icon smallint(5) unsigned // 5: static_text smallint(5) unsigned // 6: text varchar(255) QuestLine ql = new QuestLine(); ql._id = (uint)row[0]; ql._quest = (uint)row[1]; ql._step = (byte)row[2]; ql._line = (byte)row[3]; ql._icon = (ushort)row[4]; ql._staticText = (ushort)row[5]; if (row[6].GetType() != typeof(System.DBNull)) { ql._text = (string)row[6]; } return(ql); }
public void AddLine(QuestLine line) { _lines[line.LineNumber] = line; if (line.LineNumber > _lastLine) { _lastLine = line.LineNumber; } }
public static QuestLine ReadFromDB(object[] row) { // 0: quest_line_id int(10) unsigned // 1: quest_id int(10) unsigned // 2: step int(10) unsigned // 3: line int(10) unsigned // 4: icon smallint(5) unsigned // 5: static_text smallint(5) unsigned // 6: text varchar(255) QuestLine ql = new QuestLine(); ql._id = (uint)row[0]; ql._quest = (uint)row[1]; ql._step = (byte)row[2]; ql._line = (byte)row[3]; ql._icon = (ushort)row[4]; ql._staticText = (ushort)row[5]; if( row[6].GetType() != typeof(System.DBNull) ) ql._text = (string)row[6]; return ql; }
public void AddLine(QuestLine line) { _lines[line.LineNumber] = line; if (line.LineNumber > _lastLine) _lastLine = line.LineNumber; }