1 /** 2 * @file 3 * @brief XML tag constants for savegame. 4 */ 5 6 /* 7 Copyright (C) 2002-2011 UFO: Alien Invasion. 8 9 This program is free software; you can redistribute it and/or 10 modify it under the terms of the GNU General Public License 11 as published by the Free Software Foundation; either version 2 12 of the License, or (at your option) any later version. 13 14 This program is distributed in the hope that it will be useful, 15 but WITHOUT ANY WARRANTY; without even the implied warranty of 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17 18 See the GNU General Public License for more details. 19 20 You should have received a copy of the GNU General Public License 21 along with this program; if not, write to the Free Software 22 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 23 */ 24 25 #pragma once 26 27 #define SAVE_RESEARCH_RESEARCH "research" 28 #define SAVE_RESEARCH_TECH "tech" 29 #define SAVE_RESEARCH_ID "id" 30 #define SAVE_RESEARCH_STATUSCOLLECTED "statusCollected" 31 #define SAVE_RESEARCH_TIME "time" 32 #define SAVE_RESEARCH_STATUSRESEARCH "statusResearch" 33 #define SAVE_RESEARCH_BASE "baseIDX" 34 #define SAVE_RESEARCH_SCIENTISTS "scientists" 35 #define SAVE_RESEARCH_STATUSRESEARCHABLE "statusResearchable" 36 #define SAVE_RESEARCH_PREDATE "preDate" 37 #define SAVE_RESEARCH_DATE "date" 38 #define SAVE_RESEARCH_MAILSENT "mailSent" 39 #define SAVE_RESEARCH_MAIL "mail" 40 #define SAVE_RESEARCH_MAIL_ID "id" 41 42 #define SAVE_RESEARCHSTATUS_NAMESPACE "saveResearchStatus" 43 static const constListEntry_t saveResearchConstants[] = { 44 {SAVE_RESEARCHSTATUS_NAMESPACE"::none", RS_NONE}, 45 {SAVE_RESEARCHSTATUS_NAMESPACE"::running", RS_RUNNING}, 46 {SAVE_RESEARCHSTATUS_NAMESPACE"::paused", RS_PAUSED}, 47 {SAVE_RESEARCHSTATUS_NAMESPACE"::finished", RS_FINISH}, 48 {nullptr, -1} 49 }; 50 51 /* 52 DTD: 53 54 <!ELEMENT research tech*> 55 <!ELEMENT tech mail* preDate date> 56 <!ATTLIST tech 57 id CDATA #REQUIRED 58 statusCollected CDATA #IMPLIED 59 time CDATA #IMPLIED 60 statusResearch CDATA #REQUIRED 61 baseIDX CDATA #IMPLIED 62 scientists CDATA #IMPLIED 63 statusResearchable CDATA #IMPLIED 64 mailSent CDATA #IMPLIED 65 > 66 67 <!ELEMENT preDate EMPTY> 68 <!ATTLIST preDate 69 day CDATA '0' 70 sec CDATA '0' 71 > 72 73 <!ELEMENT date EMPTY> 74 <!ATTLIST date 75 day CDATA '0' 76 sec CDATA '0' 77 > 78 79 <!ELEMENT mail EMPTY> 80 <!ATTLIST mail 81 id CDATA #REQUIRED 82 > 83 84 */ 85