-
-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Plugins: Add UScriptStruct and get/set_bool_property
- Loading branch information
Showing
6 changed files
with
97 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include <sdk/UClass.hpp> | ||
|
||
#include "UScriptStructFunctions.hpp" | ||
|
||
namespace uevr { | ||
namespace uscriptstruct { | ||
UEVR_StructOpsHandle get_struct_ops(UEVR_UScriptStructHandle script_struct) { | ||
return (UEVR_StructOpsHandle)((sdk::UScriptStruct*)script_struct)->get_struct_ops(); | ||
} | ||
|
||
int get_struct_size(UEVR_UScriptStructHandle script_struct) { | ||
return ((sdk::UScriptStruct*)script_struct)->get_struct_size(); | ||
} | ||
|
||
UEVR_UScriptStructFunctions functions { | ||
.get_struct_ops = get_struct_ops, | ||
.get_struct_size = get_struct_size | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#pragma once | ||
|
||
#include "uevr/API.h" | ||
|
||
namespace uevr { | ||
namespace uscriptstruct { | ||
UEVR_StructOpsHandle get_struct_ops(UEVR_UScriptStructHandle script_struct); | ||
int get_struct_size(UEVR_UScriptStructHandle script_struct); | ||
|
||
extern UEVR_UScriptStructFunctions functions; | ||
} | ||
} |