// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "LuaOverriderInterface.h" #include "LuaActorComponent.h" #include "GameFramework/MovementComponent.h" #include "BusyRoleMovement.generated.h" UENUM(BlueprintType) enum class ERoleMoveDirection: uint8 { Move_Right, // 向右移动 Move_Left, // 向左移动 Move_All_Cnt // 枚举最大值 }; /** * */ UCLASS() class BUSYRABBIT_API UBusyRoleMovement : public ULuaActorComponent //class BUSYRABBIT_API UBusyRoleMovement : public UObject, public ILuaOverriderInterface { GENERATED_BODY() public: UBusyRoleMovement(); public: virtual void BeginPlay()override; UFUNCTION(BlueprintImplementableEvent) void ReceiveComponentTick(float DeltaTime); UFUNCTION(BlueprintImplementableEvent) void ReceiveComponentBeginPlay(); virtual void TickComponent(float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction)override; };