319 lines
14 KiB
C++
Executable File
319 lines
14 KiB
C++
Executable File
#pragma once
|
|
|
|
//PUBGM(0.13.5)32位SDK
|
|
//作者:清华
|
|
//Telegram:@qinghuanb666
|
|
//生成时间:Fri Apr 18 20:44:40 2025
|
|
|
|
namespace SDK
|
|
{
|
|
//---------------------------------------------------------------------------
|
|
//Classes
|
|
//---------------------------------------------------------------------------
|
|
|
|
// Class MediaAssets.MediaSource
|
|
// 0x0004 (0x0020 - 0x001C)
|
|
class UMediaSource : public UObject
|
|
{
|
|
public:
|
|
unsigned char UnknownData00[0x4]; // 0x001C(0x0004) MISSED OFFSET
|
|
|
|
static UClass* StaticClass()
|
|
{
|
|
static UClass *pStaticClass = 0;
|
|
if (!pStaticClass)
|
|
pStaticClass = UObject::FindClass("Class MediaAssets.MediaSource");
|
|
return pStaticClass;
|
|
}
|
|
|
|
|
|
bool Validate();
|
|
struct FString GetUrl();
|
|
};
|
|
|
|
|
|
// Class MediaAssets.BaseMediaSource
|
|
// 0x0008 (0x0028 - 0x0020)
|
|
class UBaseMediaSource : public UMediaSource
|
|
{
|
|
public:
|
|
struct FName PlayerName; // 0x0020(0x0008) (ZeroConstructor, Transient, IsPlainOldData)
|
|
|
|
static UClass* StaticClass()
|
|
{
|
|
static UClass *pStaticClass = 0;
|
|
if (!pStaticClass)
|
|
pStaticClass = UObject::FindClass("Class MediaAssets.BaseMediaSource");
|
|
return pStaticClass;
|
|
}
|
|
|
|
};
|
|
|
|
|
|
// Class MediaAssets.FileMediaSource
|
|
// 0x0010 (0x0038 - 0x0028)
|
|
class UFileMediaSource : public UBaseMediaSource
|
|
{
|
|
public:
|
|
struct FString FilePath; // 0x0028(0x000C) (Edit, BlueprintVisible, ZeroConstructor)
|
|
bool PrecacheFile; // 0x0034(0x0001) (Edit, BlueprintVisible, ZeroConstructor, IsPlainOldData)
|
|
unsigned char UnknownData00[0x3]; // 0x0035(0x0003) MISSED OFFSET
|
|
|
|
static UClass* StaticClass()
|
|
{
|
|
static UClass *pStaticClass = 0;
|
|
if (!pStaticClass)
|
|
pStaticClass = UObject::FindClass("Class MediaAssets.FileMediaSource");
|
|
return pStaticClass;
|
|
}
|
|
|
|
|
|
void SetFilePath(const struct FString& Path);
|
|
};
|
|
|
|
|
|
// Class MediaAssets.MediaBlueprintFunctionLibrary
|
|
// 0x0000 (0x0020 - 0x0020)
|
|
class UMediaBlueprintFunctionLibrary : public UBlueprintFunctionLibrary
|
|
{
|
|
public:
|
|
|
|
static UClass* StaticClass()
|
|
{
|
|
static UClass *pStaticClass = 0;
|
|
if (!pStaticClass)
|
|
pStaticClass = UObject::FindClass("Class MediaAssets.MediaBlueprintFunctionLibrary");
|
|
return pStaticClass;
|
|
}
|
|
|
|
|
|
static void EnumerateWebcamCaptureDevices(int Filter, TArray<struct FMediaCaptureDevice>* OutDevices);
|
|
static void EnumerateVideoCaptureDevices(int Filter, TArray<struct FMediaCaptureDevice>* OutDevices);
|
|
static void EnumerateAudioCaptureDevices(int Filter, TArray<struct FMediaCaptureDevice>* OutDevices);
|
|
};
|
|
|
|
|
|
// Class MediaAssets.MediaPlayer
|
|
// 0x0134 (0x0150 - 0x001C)
|
|
class UMediaPlayer : public UObject
|
|
{
|
|
public:
|
|
unsigned char UnknownData00[0xC]; // 0x001C(0x000C) MISSED OFFSET
|
|
struct FScriptMulticastDelegate OnMediaClosed; // 0x0028(0x000C) (ZeroConstructor, InstancedReference, BlueprintAssignable)
|
|
struct FScriptMulticastDelegate OnMediaOpened; // 0x0034(0x000C) (ZeroConstructor, InstancedReference, BlueprintAssignable)
|
|
struct FScriptMulticastDelegate OnMediaOpenFailed; // 0x0040(0x000C) (ZeroConstructor, InstancedReference, BlueprintAssignable)
|
|
struct FScriptMulticastDelegate OnPlaybackResumed; // 0x004C(0x000C) (ZeroConstructor, InstancedReference, BlueprintAssignable)
|
|
struct FScriptMulticastDelegate OnPlaybackSuspended; // 0x0058(0x000C) (ZeroConstructor, InstancedReference, BlueprintAssignable)
|
|
struct FScriptMulticastDelegate OnSeekCompleted; // 0x0064(0x000C) (ZeroConstructor, InstancedReference, BlueprintAssignable)
|
|
struct FScriptMulticastDelegate OnTracksChanged; // 0x0070(0x000C) (ZeroConstructor, InstancedReference, BlueprintAssignable)
|
|
unsigned char UnknownData01[0x4]; // 0x007C(0x0004) MISSED OFFSET
|
|
struct FTimespan CacheAhead; // 0x0080(0x0008) (BlueprintVisible)
|
|
struct FTimespan CacheBehind; // 0x0088(0x0008) (BlueprintVisible)
|
|
struct FTimespan CacheBehindGame; // 0x0090(0x0008) (BlueprintVisible)
|
|
bool NativeAudioOut; // 0x0098(0x0001) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
|
|
bool PlayOnOpen; // 0x0099(0x0001) (Edit, BlueprintVisible, ZeroConstructor, IsPlainOldData)
|
|
unsigned char Shuffle : 1; // 0x009A(0x0001) (Edit, BlueprintVisible)
|
|
unsigned char Loop : 1; // 0x009A(0x0001) (Edit, BlueprintVisible, BlueprintReadOnly)
|
|
unsigned char UnknownData02[0x1]; // 0x009B(0x0001) MISSED OFFSET
|
|
class UMediaPlaylist* Playlist; // 0x009C(0x0004) (BlueprintVisible, BlueprintReadOnly, ZeroConstructor, Transient, IsPlainOldData)
|
|
int PlaylistIndex; // 0x00A0(0x0004) (BlueprintVisible, BlueprintReadOnly, ZeroConstructor, IsPlainOldData)
|
|
float HorizontalFieldOfView; // 0x00A4(0x0004) (Edit, ZeroConstructor, IsPlainOldData)
|
|
float VerticalFieldOfView; // 0x00A8(0x0004) (Edit, ZeroConstructor, IsPlainOldData)
|
|
struct FRotator ViewRotation; // 0x00AC(0x000C) (Edit, IsPlainOldData)
|
|
unsigned char UnknownData03[0x80]; // 0x00B8(0x0080) MISSED OFFSET
|
|
struct FGuid PlayerGuid; // 0x0138(0x0010) (IsPlainOldData)
|
|
unsigned char UnknownData04[0x8]; // 0x0148(0x0008) MISSED OFFSET
|
|
|
|
static UClass* StaticClass()
|
|
{
|
|
static UClass *pStaticClass = 0;
|
|
if (!pStaticClass)
|
|
pStaticClass = UObject::FindClass("Class MediaAssets.MediaPlayer");
|
|
return pStaticClass;
|
|
}
|
|
|
|
|
|
bool SupportsSeeking();
|
|
bool SupportsScrubbing();
|
|
bool SupportsRate(float Rate, bool Unthinned);
|
|
bool SetViewRotation(const struct FRotator& Rotation, bool Absolute);
|
|
bool SetViewField(float Horizontal, float Vertical, bool Absolute);
|
|
bool SetVideoTrackFrameRate(int TrackIndex, int FormatIndex, float FrameRate);
|
|
bool SetTrackFormat(EMediaPlayerTrack TrackType, int TrackIndex, int FormatIndex);
|
|
bool SetRate(float Rate);
|
|
bool SetLooping(bool Looping);
|
|
void SetDesiredPlayerName(const struct FName& PlayerName);
|
|
bool SelectTrack(EMediaPlayerTrack TrackType, int TrackIndex);
|
|
bool Seek(const struct FTimespan& Time);
|
|
bool Rewind();
|
|
bool Reopen();
|
|
bool Previous();
|
|
bool Play();
|
|
bool Pause();
|
|
bool OpenURL(const struct FString& URL);
|
|
bool OpenSource(class UMediaSource* MediaSource);
|
|
bool OpenPlaylistIndex(class UMediaPlaylist* InPlaylist, int Index);
|
|
bool OpenPlaylist(class UMediaPlaylist* InPlaylist);
|
|
bool OpenFile(const struct FString& FilePath);
|
|
bool Next();
|
|
bool IsReady();
|
|
bool IsPreparing();
|
|
bool IsPlaying();
|
|
bool IsPaused();
|
|
bool IsLooping();
|
|
bool IsConnecting();
|
|
bool IsBuffering();
|
|
bool HasError();
|
|
struct FRotator GetViewRotation();
|
|
struct FString GetVideoTrackType(int TrackIndex, int FormatIndex);
|
|
struct FFloatRange GetVideoTrackFrameRates(int TrackIndex, int FormatIndex);
|
|
float GetVideoTrackFrameRate(int TrackIndex, int FormatIndex);
|
|
struct FIntPoint GetVideoTrackDimensions(int TrackIndex, int FormatIndex);
|
|
float GetVideoTrackAspectRatio(int TrackIndex, int FormatIndex);
|
|
float GetVerticalFieldOfView();
|
|
struct FString GetUrl();
|
|
struct FString GetTrackLanguage(EMediaPlayerTrack TrackType, int TrackIndex);
|
|
int GetTrackFormat(EMediaPlayerTrack TrackType, int TrackIndex);
|
|
struct FText GetTrackDisplayName(EMediaPlayerTrack TrackType, int TrackIndex);
|
|
struct FTimespan GetTime();
|
|
void GetSupportedRates(bool Unthinned, TArray<struct FFloatRange>* OutRates);
|
|
int GetSelectedTrack(EMediaPlayerTrack TrackType);
|
|
float GetRate();
|
|
int GetPlaylistIndex();
|
|
class UMediaPlaylist* GetPlaylist();
|
|
struct FName GetPlayerName();
|
|
int GetNumTracks(EMediaPlayerTrack TrackType);
|
|
int GetNumTrackFormats(EMediaPlayerTrack TrackType, int TrackIndex);
|
|
struct FText GetMediaName();
|
|
float GetHorizontalFieldOfView();
|
|
struct FTimespan GetDuration();
|
|
struct FName GetDesiredPlayerName();
|
|
struct FString GetAudioTrackType(int TrackIndex, int FormatIndex);
|
|
int GetAudioTrackSampleRate(int TrackIndex, int FormatIndex);
|
|
int GetAudioTrackChannels(int TrackIndex, int FormatIndex);
|
|
void Close();
|
|
bool CanPlayUrl(const struct FString& URL);
|
|
bool CanPlaySource(class UMediaSource* MediaSource);
|
|
bool CanPause();
|
|
};
|
|
|
|
|
|
// Class MediaAssets.MediaPlaylist
|
|
// 0x0014 (0x0030 - 0x001C)
|
|
class UMediaPlaylist : public UObject
|
|
{
|
|
public:
|
|
unsigned char UnknownData00[0x4]; // 0x001C(0x0004) MISSED OFFSET
|
|
TArray<class UMediaSource*> items; // 0x0020(0x000C) (Edit, ZeroConstructor)
|
|
unsigned char UnknownData01[0x4]; // 0x002C(0x0004) MISSED OFFSET
|
|
|
|
static UClass* StaticClass()
|
|
{
|
|
static UClass *pStaticClass = 0;
|
|
if (!pStaticClass)
|
|
pStaticClass = UObject::FindClass("Class MediaAssets.MediaPlaylist");
|
|
return pStaticClass;
|
|
}
|
|
|
|
|
|
bool Replace(int Index, class UMediaSource* Replacement);
|
|
bool RemoveAt(int Index);
|
|
bool Remove(class UMediaSource* MediaSource);
|
|
int Num();
|
|
void Insert(class UMediaSource* MediaSource, int Index);
|
|
class UMediaSource* GetRandom(int* OutIndex);
|
|
class UMediaSource* GetPrevious(int* InOutIndex);
|
|
class UMediaSource* GetNext(int* InOutIndex);
|
|
class UMediaSource* Get(int Index);
|
|
bool AddUrl(const struct FString& URL);
|
|
bool AddFile(const struct FString& FilePath);
|
|
bool Add(class UMediaSource* MediaSource);
|
|
};
|
|
|
|
|
|
// Class MediaAssets.MediaSoundComponent
|
|
// 0x0020 (0x0550 - 0x0530)
|
|
class UMediaSoundComponent : public USynthComponent
|
|
{
|
|
public:
|
|
EMediaSoundChannels Channels; // 0x0530(0x0001) (Edit, ZeroConstructor, IsPlainOldData)
|
|
unsigned char UnknownData00[0x3]; // 0x0530(0x0003) FIX WRONG TYPE SIZE OF PREVIOUS PROPERTY
|
|
class UMediaPlayer* MediaPlayer; // 0x0534(0x0004) (Edit, BlueprintVisible, ZeroConstructor, IsPlainOldData)
|
|
unsigned char UnknownData01[0x18]; // 0x0538(0x0018) MISSED OFFSET
|
|
|
|
static UClass* StaticClass()
|
|
{
|
|
static UClass *pStaticClass = 0;
|
|
if (!pStaticClass)
|
|
pStaticClass = UObject::FindClass("Class MediaAssets.MediaSoundComponent");
|
|
return pStaticClass;
|
|
}
|
|
|
|
};
|
|
|
|
|
|
// Class MediaAssets.MediaTexture
|
|
// 0x0048 (0x00D8 - 0x0090)
|
|
class UMediaTexture : public UTexture
|
|
{
|
|
public:
|
|
struct FLinearColor ClearColor; // 0x0090(0x0010) (Edit, BlueprintVisible, IsPlainOldData)
|
|
class UMediaPlayer* MediaPlayer; // 0x00A0(0x0004) (Edit, BlueprintVisible, ZeroConstructor, IsPlainOldData)
|
|
unsigned char UnknownData00[0x34]; // 0x00A4(0x0034) MISSED OFFSET
|
|
|
|
static UClass* StaticClass()
|
|
{
|
|
static UClass *pStaticClass = 0;
|
|
if (!pStaticClass)
|
|
pStaticClass = UObject::FindClass("Class MediaAssets.MediaTexture");
|
|
return pStaticClass;
|
|
}
|
|
|
|
|
|
int GetWidth();
|
|
int GetHeight();
|
|
float GetAspectRatio();
|
|
};
|
|
|
|
|
|
// Class MediaAssets.PlatformMediaSource
|
|
// 0x0008 (0x0028 - 0x0020)
|
|
class UPlatformMediaSource : public UMediaSource
|
|
{
|
|
public:
|
|
class UMediaSource* MediaSource; // 0x0020(0x0004) (ZeroConstructor, IsPlainOldData)
|
|
unsigned char UnknownData00[0x4]; // 0x0024(0x0004) MISSED OFFSET
|
|
|
|
static UClass* StaticClass()
|
|
{
|
|
static UClass *pStaticClass = 0;
|
|
if (!pStaticClass)
|
|
pStaticClass = UObject::FindClass("Class MediaAssets.PlatformMediaSource");
|
|
return pStaticClass;
|
|
}
|
|
|
|
};
|
|
|
|
|
|
// Class MediaAssets.StreamMediaSource
|
|
// 0x0010 (0x0038 - 0x0028)
|
|
class UStreamMediaSource : public UBaseMediaSource
|
|
{
|
|
public:
|
|
struct FString StreamUrl; // 0x0028(0x000C) (Edit, BlueprintVisible, ZeroConstructor)
|
|
unsigned char UnknownData00[0x4]; // 0x0034(0x0004) MISSED OFFSET
|
|
|
|
static UClass* StaticClass()
|
|
{
|
|
static UClass *pStaticClass = 0;
|
|
if (!pStaticClass)
|
|
pStaticClass = UObject::FindClass("Class MediaAssets.StreamMediaSource");
|
|
return pStaticClass;
|
|
}
|
|
|
|
};
|
|
|
|
|
|
}
|
|
|