Subversion Repositories spk

Rev

Rev 197 | Rev 206 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 197 Rev 203
Line 96... Line 96...
96
 
96
 
97
	const Utils::String &GetShipID () const { return m_sID; }
97
	const Utils::String &GetShipID () const { return m_sID; }
98
	const Utils::String &GetShipData () const { return m_sData; }
98
	const Utils::String &GetShipData () const { return m_sData; }
99
	Utils::String GetX3ShipData();
99
	Utils::String GetX3ShipData();
100
	Utils::String GetTCShipData();
100
	Utils::String GetTCShipData();
101
	Utils::String GetShipFilename () 
101
	Utils::WString shipFilename() const
102
	{ 
102
	{ 
103
		Utils::String s = this->name() + "-" + this->author(); 
103
		Utils::WString s = this->name() + L"-" + this->author();
104
		s = s.remove(' ');
104
		s = s.remove(L' ');
105
		s = s.remove('\\');
105
		s = s.remove(L'\\');
106
		s = s.remove('/');
106
		s = s.remove(L'/');
107
		return s;
107
		return s;
108
	}
108
	}
109
 
109
 
110
	SText *FindShipText(int lang);
110
	SText *FindShipText(int lang);
111
	Utils::String GetTextName(int lang);
111
	Utils::WString getTextName(int lang);
112
	Utils::String GetTextDescription(int lang);
112
	Utils::String GetTextDescription(int lang);
113
 
113
 
114
	void SetLanguageText		( bool b )   { m_bLanguageText = b; _changed(); }
114
	void SetLanguageText		( bool b )   { m_bLanguageText = b; _changed(); }
115
	void SetExistingShip		( bool b )   { m_bExistingShip = b; _changed(); }
115
	void SetExistingShip		( bool b )   { m_bExistingShip = b; _changed(); }
116
	void SetOriginalDescription	( int i )	 { m_iOrgDesc = i; _changed();; }
116
	void SetOriginalDescription	( int i )	 { m_iOrgDesc = i; _changed();; }
Line 161... Line 161...
161
	virtual bool ParseValueLine(const Utils::String &line);
161
	virtual bool ParseValueLine(const Utils::String &line);
162
 
162
 
163
	virtual int GetType () { return TYPE_XSP; }
163
	virtual int GetType () { return TYPE_XSP; }
164
	virtual BaseFileType type() const override { return BaseFileType::TYPE_XSP; }
164
	virtual BaseFileType type() const override { return BaseFileType::TYPE_XSP; }
165
 
165
 
166
	Utils::String GetShipName(int lang);
166
	Utils::WString shipName(int lang);
167
	bool ConvertOld(const Utils::String &file);
167
	bool ConvertOld(const Utils::String &file);
168
 
168
 
169
	const Utils::CStringList &getAnimations() const { return _lAnimations; }
169
	const Utils::CStringList &getAnimations() const { return _lAnimations; }
170
	const Utils::CStringList &getCutData() const { return _lCutData; }
170
	const Utils::CStringList &getCutData() const { return _lCutData; }
171
	const Utils::CStringList &getBodies() const { return _lBodies; }
171
	const Utils::CStringList &getBodies() const { return _lBodies; }