Skip to content

Commit

Permalink
Make plugin buildable
Browse files Browse the repository at this point in the history
  • Loading branch information
alisenola committed Sep 11, 2022
1 parent 2b08ecc commit 99cb6f5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#include "FRustDetailCustomization.h"

// MyCustomization.cpp
#include "PropertyEditing.h"
#include "DetailLayoutBuilder.h"
#include "DetailWidgetRow.h"
#include "Widgets/Input/SVectorInputBox.h"
#include "RustActor.h"
#include "RustProperty.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#pragma once

#include "IDetailCustomization.h"
#include "SRustDropdownList.h"

class FRustDetailCustomization: public IDetailCustomization
{
Expand Down
18 changes: 9 additions & 9 deletions RustPlugin/Source/RustPlugin/Public/RustProperty.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,25 @@ struct FRustProperty
//UPROPERTY(EditAnywhere)
//TEnumAsByte<ERustPropertyTag> Tag;

UPROPERTY(EditAnywhere)
UPROPERTY(EditAnywhere, Category=Rust)
int32 Tag;

UPROPERTY(EditAnywhere)
UPROPERTY(EditAnywhere, Category=Rust)
float Float;

UPROPERTY(EditAnywhere)
UPROPERTY(EditAnywhere, Category=Rust)
bool Bool;

UPROPERTY(EditAnywhere)
UPROPERTY(EditAnywhere, Category=Rust)
FVector Vector;

UPROPERTY(EditAnywhere)
UPROPERTY(EditAnywhere, Category=Rust)
FRotator Rotation;

UPROPERTY(EditAnywhere)
UPROPERTY(EditAnywhere, Category=Rust)
TSubclassOf<AActor> Class;

UPROPERTY(EditAnywhere)
UPROPERTY(EditAnywhere, Category=Rust)
TObjectPtr<USoundBase> Sound;
static void Initialize(TSharedPtr<IPropertyHandle> Handle, ReflectionType Type);
};
Expand All @@ -67,10 +67,10 @@ struct FDynamicRustComponent
{
GENERATED_BODY()

UPROPERTY(EditAnywhere)
UPROPERTY(EditAnywhere, Category=Rust)
TMap<FString, FRustProperty> Fields;

UPROPERTY(EditAnywhere)
UPROPERTY(EditAnywhere, Category=Rust)
FString Name;

void Reload(TSharedPtr<IPropertyHandle> Handle, FGuid Guid);
Expand Down
10 changes: 5 additions & 5 deletions RustPlugin/Source/RustPlugin/Public/URustReflectionLibrary.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ class URustReflectionLibrary: public UBlueprintFunctionLibrary
GENERATED_BODY()
public:

UFUNCTION(BlueprintCallable)
UFUNCTION(BlueprintCallable, Category=Rust)
static void K2_GetReflectionVector3(UUuid* Id, FEntity EntityId, int32 Index, FVector &Out);
UFUNCTION(BlueprintCallable)
UFUNCTION(BlueprintCallable, Category=Rust)
static void K2_GetReflectionBool(UUuid* Id, FEntity EntityId, int32 Index, bool &Out);
UFUNCTION(BlueprintCallable)
UFUNCTION(BlueprintCallable, Category=Rust)
static void K2_GetReflectionQuat(UUuid* Id, FEntity EntityId, int32 Index, FQuat &Out);
UFUNCTION(BlueprintCallable)
UFUNCTION(BlueprintCallable, Category=Rust)
static void K2_GetReflectionFloat(UUuid* Id, FEntity EntityId, int32 Index, float &Out);
UFUNCTION(BlueprintCallable)
UFUNCTION(BlueprintCallable, Category=Rust)
static bool K2_HasComponent(UUuid* Id, FEntity EntityId);
};

0 comments on commit 99cb6f5

Please sign in to comment.