feat(vfx): port retail effect scheduling and delivery
This commit is contained in:
parent
363e046112
commit
96ddfdf175
28 changed files with 2473 additions and 691 deletions
|
|
@ -82,9 +82,13 @@ public sealed class RetailPhysicsScriptLoader
|
|||
uint count = reader.ReadUInt32();
|
||||
for (uint i = 0; i < count; i++)
|
||||
{
|
||||
double startTime = reader.ReadDouble();
|
||||
if (!double.IsFinite(startTime))
|
||||
throw new InvalidDataException(
|
||||
$"PhysicsScript 0x{script.Id:X8} hook {i} has non-finite StartTime {startTime}.");
|
||||
script.ScriptData.Add(new PhysicsScriptData
|
||||
{
|
||||
StartTime = reader.ReadDouble(),
|
||||
StartTime = startTime,
|
||||
Hook = RetailAnimationHookReader.Read(reader),
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue