- scriptified ASoundSequence.

- exported virtual Actor.MarkPrecacheSounds function.
This commit is contained in:
Christoph Oelckers 2017-01-14 14:35:11 +01:00
commit 96777273c4
8 changed files with 180 additions and 197 deletions

View file

@ -425,11 +425,27 @@ void DSeqNode::AddChoice (int seqnum, seqtype_t type)
}
}
DEFINE_ACTION_FUNCTION(DSeqNode, AddChoice)
{
PARAM_SELF_PROLOGUE(DSeqNode);
PARAM_NAME(seq);
PARAM_INT(mode);
self->AddChoice(seq, seqtype_t(mode));
return 0;
}
FName DSeqNode::GetSequenceName () const
{
return Sequences[m_Sequence]->SeqName;
}
DEFINE_ACTION_FUNCTION(DSeqNode, GetSequenceName)
{
PARAM_SELF_PROLOGUE(DSeqNode);
ACTION_RETURN_INT(self->GetSequenceName().GetIndex());
}
IMPLEMENT_CLASS(DSeqActorNode, false, true)
IMPLEMENT_POINTERS_START(DSeqActorNode)