Exemplo n.º 1
0
        public FName GetInstanceName()
        {
            FName result;

            Native_UGameplayTask.GetInstanceName(Address, out result);
            return(result);
        }
Exemplo n.º 2
0
        public FGameplayResourceSet GetClaimedResources()
        {
            FGameplayResourceSet result;

            Native_UGameplayTask.GetClaimedResources(Address, out result);
            return(result);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Return debug string describing task
 /// </summary>
 public string GetDebugString()
 {
     using (FStringUnsafe resultUnsafe = new FStringUnsafe())
     {
         Native_UGameplayTask.GetDebugString(Address, ref resultUnsafe.Array);
         return(resultUnsafe.Value);
     }
 }
Exemplo n.º 4
0
        public IGameplayTaskOwnerInterface GetTaskOwner()
        {
            UObject obj = GCHelper.Find(Native_UGameplayTask.GetTaskOwner(Address));

            if (obj != null)
            {
                return(obj.GetInterface <IGameplayTaskOwnerInterface>());
            }
            return(null);
        }
Exemplo n.º 5
0
        public string GetDebugDescription()
        {
            // TODO: Use #if WITH_EDITOR
            if (!FBuild.WithEditor)
            {
                return(null);
            }

            using (FStringUnsafe resultUnsafe = new FStringUnsafe())
            {
                Native_UGameplayTask.GetDebugDescription(Address, ref resultUnsafe.Array);
                return(resultUnsafe.Value);
            }
        }
Exemplo n.º 6
0
 public UGameplayTask GetChildTask()
 {
     return(GCHelper.Find <UGameplayTask>(Native_UGameplayTask.GetChildTask(Address)));
 }
Exemplo n.º 7
0
 /// <summary>
 /// Called when the task is asked to confirm from an outside node. What this means depends on the individual task. By default, this does nothing other than ending if bEndTask is true.
 /// </summary>
 public void ExternalConfirm(bool endTask)
 {
     Native_UGameplayTask.ExternalConfirm(Address, endTask);
 }
Exemplo n.º 8
0
 public bool IsPaused()
 {
     return(Native_UGameplayTask.IsPaused(Address));
 }
Exemplo n.º 9
0
 public bool IsFinished()
 {
     return(Native_UGameplayTask.IsFinished(Address));
 }
Exemplo n.º 10
0
 public ETaskResourceOverlapPolicy GetResourceOverlapPolicy()
 {
     return((ETaskResourceOverlapPolicy)Native_UGameplayTask.GetResourceOverlapPolicy(Address));
 }
Exemplo n.º 11
0
 /// <summary>
 /// Called explicitly to end the task (usually by the task itself). Calls OnDestroy.
 /// @NOTE: you need to call EndTask before sending out any "on completed" delegates.
 /// If you don't the task will still be in an "active" state while the event receivers may
 /// assume it's already "finished" */
 /// </summary>
 public void EndTask()
 {
     Native_UGameplayTask.EndTask(Address);
 }
Exemplo n.º 12
0
 public bool RequiresPriorityOrResourceManagement()
 {
     return(Native_UGameplayTask.RequiresPriorityOrResourceManagement(Address));
 }
Exemplo n.º 13
0
 public void AddRequiredResource(TSubclassOf <UGameplayTaskResource> requiredResource)
 {
     Native_UGameplayTask.AddRequiredResource(Address, ref requiredResource.subclassOf);
 }
Exemplo n.º 14
0
 public bool HasOwnerFinished()
 {
     return(Native_UGameplayTask.HasOwnerFinished(Address));
 }
Exemplo n.º 15
0
 public byte GetPriority()
 {
     return(Native_UGameplayTask.GetPriority(Address));
 }
Exemplo n.º 16
0
 public bool IsSimulating()
 {
     return(Native_UGameplayTask.IsSimulating(Address));
 }
Exemplo n.º 17
0
 public bool IsTickingTask()
 {
     return(Native_UGameplayTask.IsTickingTask(Address));
 }
Exemplo n.º 18
0
 public void ExternalCancel()
 {
     Native_UGameplayTask.ExternalCancel(Address);
 }
Exemplo n.º 19
0
 public UGameplayTasksComponent GetGameplayTasksComponent()
 {
     return(GCHelper.Find <UGameplayTasksComponent>(Native_UGameplayTask.GetGameplayTasksComponent(Address)));
 }
Exemplo n.º 20
0
 public bool IsWaitingOnAvatar()
 {
     return(Native_UGameplayTask.IsWaitingOnAvatar(Address));
 }
Exemplo n.º 21
0
 public bool IsOwnedByTasksComponent()
 {
     return(Native_UGameplayTask.IsOwnedByTasksComponent(Address));
 }
Exemplo n.º 22
0
 public void InitSimulatedTask(UGameplayTasksComponent gameplayTasksComponent)
 {
     Native_UGameplayTask.InitSimulatedTask(Address,
                                            gameplayTasksComponent == null ? IntPtr.Zero : gameplayTasksComponent.Address);
 }
Exemplo n.º 23
0
 public void AddClaimedResource(TSubclassOf <UGameplayTaskResource> claimedResource)
 {
     Native_UGameplayTask.AddClaimedResource(Address, ref claimedResource.subclassOf);
 }
Exemplo n.º 24
0
 public bool IsActive()
 {
     return(Native_UGameplayTask.IsActive(Address));
 }
Exemplo n.º 25
0
 public bool IsWaitingOnRemotePlayerdata()
 {
     return(Native_UGameplayTask.IsWaitingOnRemotePlayerdata(Address));
 }
Exemplo n.º 26
0
 /// <summary>
 /// Proper way to get the avatar actor associated with the task owner (usually a pawn, tower, etc)
 /// </summary>
 public AActor GetAvatarActor()
 {
     return(GCHelper.Find <AActor>(Native_UGameplayTask.GetAvatarActor(Address)));
 }
Exemplo n.º 27
0
 public EGameplayTaskState GetState()
 {
     return((EGameplayTaskState)Native_UGameplayTask.GetState(Address));
 }
Exemplo n.º 28
0
        /////////////////////////////////////////////////////////
        // Everything above this line belongs to UUSharpGameplayTask. Putting them here as they allow us to access these
        // protected members from C# when inheriting from something other than UUSharpGameplayTask
        /////////////////////////////////////////////////////////

        /// <summary>
        /// Called to trigger the actual task once the delegates have been set up
        /// </summary>
        public void ReadyForActivation()
        {
            Native_UGameplayTask.ReadyForActivation(Address);
        }