| Line 87... |
Line 87... |
| 87 |
const Utils::String &GetShipData () const { return m_sData; }
|
87 |
const Utils::String &GetShipData () const { return m_sData; }
|
| 88 |
Utils::String GetX3ShipData();
|
88 |
Utils::String GetX3ShipData();
|
| 89 |
Utils::String GetTCShipData();
|
89 |
Utils::String GetTCShipData();
|
| 90 |
Utils::String GetShipFilename ()
|
90 |
Utils::String GetShipFilename ()
|
| 91 |
{
|
91 |
{
|
| 92 |
Utils::String s = m_sName.ToString() + "-" + m_sAuthor.ToString();
|
92 |
Utils::String s = this->name() + "-" + this->author();
|
| 93 |
s = s.remove(' ');
|
93 |
s = s.remove(' ');
|
| 94 |
s = s.remove('\\');
|
94 |
s = s.remove('\\');
|
| 95 |
s = s.remove('/');
|
95 |
s = s.remove('/');
|
| 96 |
return s;
|
96 |
return s;
|
| 97 |
}
|
97 |
}
|
| 98 |
|
98 |
|
| 99 |
SText *FindShipText(int lang);
|
99 |
SText *FindShipText(int lang);
|
| 100 |
Utils::String GetTextName(int lang);
|
100 |
Utils::String GetTextName(int lang);
|
| 101 |
Utils::String GetTextDescription(int lang);
|
101 |
Utils::String GetTextDescription(int lang);
|
| 102 |
|
102 |
|
| 103 |
void SetLanguageText ( bool b ) { m_bLanguageText = b; m_bChanged = true; }
|
103 |
void SetLanguageText ( bool b ) { m_bLanguageText = b; _changed(); }
|
| 104 |
void SetExistingShip ( bool b ) { m_bExistingShip = b; m_bChanged = true; }
|
104 |
void SetExistingShip ( bool b ) { m_bExistingShip = b; _changed(); }
|
| 105 |
void SetOriginalDescription ( int i ) { m_iOrgDesc = i; m_bChanged = true; }
|
105 |
void SetOriginalDescription ( int i ) { m_iOrgDesc = i; _changed();; }
|
| 106 |
void SetShipID (const Utils::String &sId ) { m_sID = sId; m_bChanged = true; }
|
106 |
void SetShipID (const Utils::String &sId ) { m_sID = sId; _changed();; }
|
| 107 |
void SetShipData (const Utils::String &sData ) { m_sData = sData; m_bChanged = true; }
|
107 |
void SetShipData (const Utils::String &sData ) { m_sData = sData; _changed(); }
|
| 108 |
|
108 |
|
| 109 |
void SetSceneFile ( C_File *f ) { m_pSceneFile = f; }
|
109 |
void SetSceneFile ( C_File *f ) { m_pSceneFile = f; }
|
| 110 |
void SetCockpitFile ( C_File *f ) { m_pCockpitFile = f; }
|
110 |
void SetCockpitFile ( C_File *f ) { m_pCockpitFile = f; }
|
| 111 |
|
111 |
|
| 112 |
void AddAnimation(CyStringList *list);
|
112 |
void AddAnimation(CyStringList *list);
|
| 113 |
void AddAnimation(const Utils::String &data) { m_lAnimations.PushBack(CyString(data), true); m_bChanged = true; }
|
113 |
void AddAnimation(const Utils::String &data) { m_lAnimations.PushBack(CyString(data), true); _changed(); }
|
| 114 |
void AddBodies(const Utils::String &data);
|
114 |
void AddBodies(const Utils::String &data);
|
| 115 |
void AddBody(const Utils::String §ion, const Utils::String &data);
|
115 |
void AddBody(const Utils::String §ion, const Utils::String &data);
|
| 116 |
void AddCutData(const Utils::String &data) { m_lCutData.PushBack(CyString(data), true); m_bChanged = true; }
|
116 |
void AddCutData(const Utils::String &data) { m_lCutData.PushBack(CyString(data), true); _changed(); }
|
| 117 |
void AddText(int id, const Utils::String &name, const Utils::String &desc );
|
117 |
void AddText(int id, const Utils::String &name, const Utils::String &desc );
|
| 118 |
void AddCockpit(const Utils::String &cockpit, int game, int mask = -1, int index = -1 );
|
118 |
void AddCockpit(const Utils::String &cockpit, int game, int mask = -1, int index = -1 );
|
| 119 |
void NewCockpit(const Utils::String &id, const Utils::String &scene, int mask );
|
119 |
void NewCockpit(const Utils::String &id, const Utils::String &scene, int mask );
|
| 120 |
void EditCockpit(const Utils::String &id, const Utils::String &cockpit);
|
120 |
void EditCockpit(const Utils::String &id, const Utils::String &cockpit);
|
| 121 |
void EditCockpit(const Utils::String &id, const Utils::String &scene, int mask);
|
121 |
void EditCockpit(const Utils::String &id, const Utils::String &scene, int mask);
|
| Line 124... |
Line 124... |
| 124 |
void AddDummy(const Utils::String §ion, const Utils::String &data );
|
124 |
void AddDummy(const Utils::String §ion, const Utils::String &data );
|
| 125 |
void AddComponent(const Utils::String §ion, const Utils::String §ion2, const Utils::String &data );
|
125 |
void AddComponent(const Utils::String §ion, const Utils::String §ion2, const Utils::String &data );
|
| 126 |
void AddWeaponMask(int game, int mask );
|
126 |
void AddWeaponMask(int game, int mask );
|
| 127 |
void AddMissileMask(int game, int mask );
|
127 |
void AddMissileMask(int game, int mask );
|
| 128 |
void RemoveText(int id);
|
128 |
void RemoveText(int id);
|
| 129 |
void ClearText() { m_lText.MemoryClear(); m_bChanged = true; }
|
129 |
void ClearText() { m_lText.MemoryClear(); _changed(); }
|
| 130 |
|
130 |
|
| 131 |
void AddShipyard ( int s ) { m_iShipyard |= s; m_bChanged = true; }
|
131 |
void AddShipyard ( int s ) { m_iShipyard |= s; _changed(); }
|
| 132 |
void RemoveShipyard ( int s ) { m_iShipyard &= ~(s); m_bChanged = true; }
|
132 |
void RemoveShipyard ( int s ) { m_iShipyard &= ~(s); _changed(); }
|
| 133 |
void SetShipyard(int s, bool b) { if ( b ) AddShipyard(s); else RemoveShipyard(s); }
|
133 |
void SetShipyard(int s, bool b) { if ( b ) AddShipyard(s); else RemoveShipyard(s); }
|
| 134 |
void ToggleShipyard(int s) { if ( this->IsShipyard(s) ) RemoveShipyard(s); else AddShipyard(s); }
|
134 |
void ToggleShipyard(int s) { if ( this->IsShipyard(s) ) RemoveShipyard(s); else AddShipyard(s); }
|
| 135 |
|
135 |
|
| 136 |
bool RemoveCutData(const Utils::String &cut);
|
136 |
bool RemoveCutData(const Utils::String &cut);
|
| 137 |
bool RemoveCockpit(const Utils::String &cockpitid);
|
137 |
bool RemoveCockpit(const Utils::String &cockpitid);
|