refactor(runtime): extract the live object frame
This commit is contained in:
parent
99a3e819c4
commit
4e4aac2c5a
27 changed files with 1217 additions and 371 deletions
|
|
@ -364,13 +364,29 @@ public sealed class LiveEntityAnimationPresenterTests
|
|||
LiveEntityRuntime live,
|
||||
EntityEffectPoseRegistry poses,
|
||||
Context context) => new(
|
||||
() => live,
|
||||
() => null,
|
||||
live,
|
||||
new EmptyStaticPartFrameSource(),
|
||||
poses,
|
||||
context,
|
||||
AnimationPresentationDiagnostics.Disabled,
|
||||
hidePartIndex: -1);
|
||||
|
||||
private sealed class EmptyStaticPartFrameSource : ILiveStaticPartFrameSource
|
||||
{
|
||||
public bool TryTakeLivePartFrames(
|
||||
LiveEntityRecord record,
|
||||
WorldEntity entity,
|
||||
LiveEntityAnimationState animation,
|
||||
ulong objectClockEpoch,
|
||||
ulong projectionMutationVersion,
|
||||
ulong presentationRevision,
|
||||
out IReadOnlyList<PartTransform> partFrames)
|
||||
{
|
||||
partFrames = Array.Empty<PartTransform>();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
private static IReadOnlyDictionary<uint, LiveEntityAnimationSchedule> Schedules(
|
||||
Fixture fixture,
|
||||
IReadOnlyList<PartTransform> frames) =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue