DeskSim v2 0.1
Train simulator prototype created for Lokførerskolen
Wagon.h
1// Copyright 2022 Thomas Arinesalingam, John Ole Bjerke, Endre Heksum & Henrik Markengbakken Karlsen . All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "GameFramework/Actor.h"
7#include <DeskSimV2/SaveGame/IsSaveableInterface.h>
8#include "Wagon.generated.h"
9
10
11UCLASS()
12class DESKSIMV2_API AWagon : public AActor, public IIsSaveableInterface
13{
14 GENERATED_BODY()
15
16public:
17 // Sets default values for this actor's properties
18 AWagon();
19
20protected:
21 // Called when the game starts or when spawned
22 virtual void BeginPlay() override;
23
24public:
25 // Called every frame
26 virtual void Tick(float DeltaTime) override;
27
28 UPROPERTY(EditAnywhere)
29 UStaticMeshComponent* VisibleMesh;
30
31
32 void SetPosition(FVector Position);
33 void SetRotation(FVector Rotation);
34
35
36};
Definition: Wagon.h:13
Definition: IsSaveableInterface.h:20