Files
2020-09-18 21:12:56 +05:00

82 lines
2.5 KiB
C++

// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "RailwayCarriage.generated.h"
//~~~~~ Forward Declarations~~~~~
UCLASS()
class RAILWAYWORKER_API ARailwayCarriage : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this actor's properties
ARailwayCarriage();
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
//root component
UPROPERTY(BlueprintReadWrite)
USceneComponent* Root;
// meshes
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "Meshes")
UStaticMeshComponent* railwayBody;
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "Meshes")
UStaticMeshComponent* wheel_0;
UPROPERTY(EditAnyWhere, BlueprintReadWrite,Category = "Meshes")
UStaticMeshComponent* wheel_1;
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "Meshes")
UStaticMeshComponent* wheel_2;
UPROPERTY(EditAnyWhere, BlueprintReadWrite,Category = "Meshes")
UStaticMeshComponent* wheel_3;
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "Meshes")
UStaticMeshComponent* cart_0;
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "Meshes")
UStaticMeshComponent* cart_1;
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "Meshes")
UStaticMeshComponent* coupling_0;
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "Meshes")
UStaticMeshComponent* coupling_1;
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "Meshes")
UStaticMeshComponent* cartCorp_0;
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "Meshes")
UStaticMeshComponent* cartCorp_1;
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "Meshes")
UStaticMeshComponent* cartCorp_2;
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "Meshes")
UStaticMeshComponent* cartCorp_3;
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "Meshes")
UStaticMeshComponent* cartCorp_4;
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "Meshes")
UStaticMeshComponent* cartCorp_5;
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "Meshes")
UStaticMeshComponent* cartCorp_6;
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "Meshes")
UStaticMeshComponent* cartCorp_7;
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category ="Location")
FVector oldLocation;
// name railway carriage
UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = "Name")
FName nameCarriage;
public:
// Called every frame
//virtual void Tick(float DeltaTime) override;
};