quite a bit of stuff

This commit is contained in:
Milxnor
2023-03-05 14:01:15 -05:00
parent 3e2da1eedf
commit 472fbdb809
45 changed files with 1076 additions and 69 deletions

View File

@@ -3,6 +3,7 @@
#include "EngineTypes.h"
#include "Transform.h"
#include "Object.h"
#include "Rotator.h"
struct FNetworkNotify
{
@@ -45,5 +46,15 @@ public:
return (ActorType*)SpawnActorOriginal(this, Class, &UserTransformPtr, SpawnParameters);
}
template <typename ActorType>
ActorType* SpawnActor(UClass* Class, FVector Location, FQuat Rotation = FQuat(), FVector Scale3D = FVector(1, 1, 1), const FActorSpawnParameters& SpawnParameters = FActorSpawnParameters())
{
FTransform UserTransformPtr{};
UserTransformPtr.Translation = Location;
UserTransformPtr.Rotation = Rotation;
UserTransformPtr.Scale3D = Scale3D;
return SpawnActor<ActorType>(Class, UserTransformPtr, SpawnParameters);
}
void Listen();
};