Lua向C#逻辑迁移 一期 #13

将整个插件代码上传
This commit is contained in:
2025-10-26 21:48:39 +08:00
parent 56994b3927
commit 648386cd73
785 changed files with 53683 additions and 2 deletions

View File

@ -0,0 +1,6 @@
#include "CSPrimaryDataAsset.h"
FPrimaryAssetId UCSPrimaryDataAsset::GetPrimaryAssetId() const
{
return FPrimaryAssetId(AssetName, GetFName());
}

View File

@ -0,0 +1,24 @@
#pragma once
#include "CoreMinimal.h"
#include "Engine/DataAsset.h"
#include "CSPrimaryDataAsset.generated.h"
UCLASS()
class UNREALSHARPCORE_API UCSPrimaryDataAsset : public UPrimaryDataAsset
{
GENERATED_BODY()
public:
// UPrimaryDataAsset interface implementation
virtual FPrimaryAssetId GetPrimaryAssetId() const override;
// End of implementation
protected:
// The name of the asset which AssetManager will use to identify this asset
UPROPERTY(BlueprintReadWrite)
FName AssetName;
};