| Line | |
|---|
| 1 | #include "Dialog.h" |
|---|
| 2 | |
|---|
| 3 | RegisterClass(Dialog); |
|---|
| 4 | |
|---|
| 5 | namespace orxonox{ |
|---|
| 6 | //Constructor: |
|---|
| 7 | Dialog::Dialog(Context* context) : BaseObject(context) |
|---|
| 8 | { |
|---|
| 9 | RegisterObjext(Dialog); |
|---|
| 10 | } |
|---|
| 11 | |
|---|
| 12 | void Dialog::XMLPort(Element& xmlelement, XMLPort::Mode mode) |
|---|
| 13 | { |
|---|
| 14 | SUPER(Dialog, XMLPort, xmlelement, mode); |
|---|
| 15 | |
|---|
| 16 | XMLPortParam(Dialog, "name", setName, getName, xmlelement, mode); |
|---|
| 17 | XMLPortParam(Dialog, "currentQuestionId", setCurrentQuestion, getCurrentQuestion, xmlelement, mode); |
|---|
| 18 | XMLPortObject(Dialog, Question, "Questions", addQuestion, getQuestion, xmlelement,mode); |
|---|
| 19 | XMLPortObject(Dialog, Awnser, "Awnsers", addAwnser, getAwnser, xmlelement, mode); |
|---|
| 20 | } |
|---|
| 21 | |
|---|
| 22 | |
|---|
| 23 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.