Attacks can be saved in the editor.

It's more flexible to do it by hand though.
This commit is contained in:
Jason Felds
2011-06-24 22:11:07 -04:00
parent f3ddbf5d2a
commit 5ce88d4b54
5 changed files with 27 additions and 2 deletions
+13
View File
@@ -91,6 +91,19 @@ bool AttackArray::ContainsTransformOrTurn() const
return false;
}
vector<RString> AttackArray::ToVectorString() const
{
vector<RString> ret;
FOREACH_CONST( Attack, *this, a )
{
ret.push_back(ssprintf("TIME=%f:LEN=%f:MODS=%s",
a->fStartSecond,
a->fSecsRemaining,
a->sModifiers.c_str()));
}
return ret;
}
/*
* (c) 2003-2004 Chris Danford
* All rights reserved.