예제 #1
0
        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);
        }
예제 #2
0
 public void AddLine(QuestLine line)
 {
     _lines[line.LineNumber] = line;
     if (line.LineNumber > _lastLine)
     {
         _lastLine = line.LineNumber;
     }
 }
예제 #3
0
        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;
        }
예제 #4
0
 public void AddLine(QuestLine line)
 {
     _lines[line.LineNumber] = line;
     if (line.LineNumber > _lastLine)
         _lastLine = line.LineNumber;
 }