Skip to content
Snippets Groups Projects
Select Git revision
  • e7884cb24a165915ea84fd44d6e0cbbb587349b5
  • main default protected
  • NIS-Workshop
  • dev_yhe_citymodel
  • dev_jbr_mkr_gui
  • dev_jli_grid_test
  • dev_jgn_gridmodel
  • dev_jgn_buscharging
  • dev_jli_gridmodel
  • dev_jfu_community
  • sce_mobility_district
  • dev_jbr_mkr_updating_pandas
  • dev_market_comp
  • dev_V2X_jfu
  • dev_network_yni
  • dev_nni_prosumer_rh
  • dev_haoyu
  • Landlord-to-Tenant_Study
  • dev_lcoe
  • dev_transfer_V2X
  • dev_jfu_V2X
  • v1.1
22 results

runme.py

Blame
  • PointOfInterestManager.h 1.78 KiB
    #pragma once
    
    #include "CoreMinimal.h"
    #include "Components/SplineComponent.h"
    
    #include "PointOfInterestManager.generated.h"
    
    DECLARE_LOG_CATEGORY_EXTERN(POIManagerLog, All, All);
    
    class APointOfInterest;
    class FCameraRide;
    
    UCLASS(Blueprintable)
    class APointOfInterestManager : public AActor
    {
    	GENERATED_BODY()
    
    public:
    	APointOfInterestManager();
    
    	virtual void TickActor(float DeltaTime, enum ELevelTick TickType, FActorTickFunction& ThisTickFunction) override;
    
    	UFUNCTION(CallInEditor, BlueprintCallable, Category="Point Of Interest Manager")
    	void AddPointOfInterest();
    
    	UFUNCTION(CallInEditor, BlueprintCallable, Category="Point Of Interest Manager")
    	void VisitNextPointOfInterest();
    
    	UFUNCTION(CallInEditor, BlueprintCallable, Category="Point Of Interest Manager")
    	void VisitPreviousPointOfInterest();
    
    	UFUNCTION(BlueprintCallable, Category="Point Of Interest Manager")
    	void VisitPointOfInterestByIndex(int index);
    	UFUNCTION(BlueprintCallable, Category="Point Of Interest Manager")
    	void VisitPointOfInterest(APointOfInterest* POI) const;
    
    	UFUNCTION(CallInEditor, BlueprintCallable, Category="Point Of Interest Manager")
    	void StartCameraRide();
    	UFUNCTION(CallInEditor, BlueprintCallable, Category="Point Of Interest Manager")
    	void StopCameraRide();
    
    	UFUNCTION(BlueprintCallable, Category="Point Of Interest Manager")
    	int GetPointOfInterestCount();
    
    protected:
    	UPROPERTY(EditAnywhere)
    	TArray<APointOfInterest*> POIs;
    
    	int CurrentPOIIndex = 0;
    
    private:
    	UFUNCTION(CallInEditor, BlueprintCallable, Category="Point Of Interest Manager")
    	void UpdateSpline();
    
    	void ProgressCameraRide();
    	void CameraRideEnded();
    
    	USplineComponent* SplineComponent;
    
    	UPROPERTY(EditAnywhere,  meta=(UIMin = 0.0, UIMax = 500))
    	float CameraSpeed = 100;
    	bool IsRidingCamera;
    	float CameraRideStart, CameraRideEnd;
    };