AngeliA
Search Results for

    Show / Hide Table of Contents

    Class SpawnEntityTask

    Task that spawn given entity.

    Examples
    using AngeliA;
    
    namespace AngeliaGame;
    
    public class Example {
    
    	[OnGameUpdate]
    	internal static void OnGameUpdate () {
    
    		if (TaskSystem.AddToLast(SpawnEntityTask.TYPE_ID) is SpawnEntityTask task) {
    			task.EntityID = /*Target entity ID*/;
    			task.X = /*Target X in global space*/;
    			task.Y = /*Target Y in global space*/;
    		}
    
    	}
    
    }

    Fields

    EntityID

    Target entity ID

    Declaration
    public int EntityID

    TYPE_ID

    Declaration
    public static readonly int TYPE_ID

    X

    Target position X in global space

    Declaration
    public int X

    Y

    Target position Y in global space

    Declaration
    public int Y

    Methods

    FrameUpdate()

    This function is used to handle the internal logic.

    Declaration
    public override TaskResult FrameUpdate()
    Returns
    Type Description
    TaskResult

    "Continue" if the task should keep on after this frame. "End" if the task should end.

    Overrides
    Task.FrameUpdate()
    Back to top ๐Ÿ„๐Ÿฆโ€โฌ›๐Ÿงฆ๐Ÿˆ๐ŸŽƒ๐Ÿ’“๐ŸŒนโ˜•๐Ÿดโ€โ˜ ๏ธ๐Ÿค