Added Script Extras system with classes for three objects (Waypoint, PointOfInterest, SpacePirate)

This commit is contained in:
parax0
2015-11-27 11:49:20 -07:00
parent 07e689071a
commit c549cdcf42
17 changed files with 481 additions and 40 deletions

View File

@@ -25,6 +25,11 @@ CMasterTemplate* CScriptTemplate::MasterTemplate()
return mpMaster;
}
EGame CScriptTemplate::Game()
{
return mpMaster->GetGame();
}
TString CScriptTemplate::TemplateName(s32 propCount) const
{
// Return original name if there is only one property set

View File

@@ -93,6 +93,7 @@ public:
~CScriptTemplate();
CMasterTemplate* MasterTemplate();
EGame Game();
TString TemplateName(s32 propCount = -1) const;
TString PropertySetNameByCount(s32 propCount) const;
TString PropertySetNameByIndex(u32 index) const;