LeviLamina
Loading...
Searching...
No Matches
HardcodedAnimationSystem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/ecs/Optional.h"
7#include "mc/deps/ecs/ViewT.h"
8#include "mc/deps/ecs/strict/Include.h"
9
10// auto generated forward declare list
11// clang-format off
21struct MobFlagComponent;
24struct OnFireComponent;
28// clang-format on
29
30namespace HardcodedAnimationSystem {
31// functions
32// NOLINTBEGIN
33MCAPI void
34addOffsetToMovementThisTick(::DynamicRenderOffsetComponent const& offset, ::ActorWalkAnimationComponent& walk);
35
36MCAPI void computeMovementThisTick(::StateVectorComponent const& stateVector, ::ActorWalkAnimationComponent& walk);
37
38MCAPI ::TickingSystemWithInfo createSystem();
39
40MCAPI void doHardcodedAnimation(
41 ::StrictEntityContext const& mobAnim,
42 ::MobAnimationComponent& bodyRot,
43 ::MobBodyRotationComponent const& mobHurtTime,
44 ::MobHurtTimeComponent const& mobWalkAnimation,
45 ::ActorWalkAnimationComponent& syncedActorData,
46 ::ActorDataFlagComponent const& blaze,
47 ::Optional<::BlazeFlagComponent const> lavaSlime,
48 ::Optional<::LavaSlimeFlagComponent const> onFire,
49 ::Optional<::OnFireComponent const> passenger,
50 ::Optional<::PassengerComponent const> isJumping,
51 ::Optional<::MobIsJumpingFlagComponent const>
52);
53
54MCAPI void tick(
55 ::ViewT<
56 ::StrictEntityContext,
57 ::Include<::InterpolateMovementNeededComponent>,
58 ::StateVectorComponent const,
59 ::ActorWalkAnimationComponent> speedView,
60 ::ViewT<
61 ::StrictEntityContext,
62 ::Include<::InterpolateMovementNeededComponent>,
63 ::DynamicRenderOffsetComponent const,
64 ::ActorWalkAnimationComponent> offsetView,
65 ::ViewT<
66 ::StrictEntityContext,
67 ::Include<::InterpolateMovementNeededComponent, ::MobFlagComponent>,
68 ::MobAnimationComponent,
69 ::MobBodyRotationComponent const,
70 ::MobHurtTimeComponent const,
71 ::ActorWalkAnimationComponent,
72 ::ActorDataFlagComponent const,
73 ::Optional<::BlazeFlagComponent const>,
74 ::Optional<::LavaSlimeFlagComponent const>,
75 ::Optional<::OnFireComponent const>,
76 ::Optional<::PassengerComponent const>,
77 ::Optional<::MobIsJumpingFlagComponent const>> view
78);
79// NOLINTEND
80
81} // namespace HardcodedAnimationSystem
Definition StrictEntityContext.h:14
Definition ActorDataFlagComponent.h:10
Definition ActorWalkAnimationComponent.h:5
Definition BlazeFlagComponent.h:5
Definition DynamicRenderOffsetComponent.h:8
Definition InterpolateMovementNeededComponent.h:5
Definition LavaSlimeFlagComponent.h:5
Definition MobAnimationComponent.h:8
Definition MobBodyRotationComponent.h:5
Definition MobFlagComponent.h:5
Definition MobHurtTimeComponent.h:8
Definition MobIsJumpingFlagComponent.h:5
Definition OnFireComponent.h:11
Definition PassengerComponent.h:8
Definition StateVectorComponent.h:8
Definition TickingSystemWithInfo.h:13