Skip to content

Game.Pathfind.DeleteActionData

Assembly: Assembly-CSharp.dll
Namespace: Game.Pathfind

Type: struct

Base: System.ValueType

Summary:
Simple POD (plain-old-data) structure that carries a Unity.Entities.Entity reference for a delete action in the pathfinding subsystem. Typically used to identify which entity is the target or owner of a delete operation within Game.Pathfind logic. The struct only contains a single Entity field and is suitable for lightweight passing between systems or jobs that require an Entity identifier.


Fields

  • public Unity.Entities.Entity m_Owner
    Holds the Entity that is considered the owner/target of the delete action. This is the sole payload of the struct and represents which entity the pathfinding deletion logic should operate on.

Properties

  • None.
    This struct exposes only a public field and does not define any C# properties.

Constructors

  • public DeleteActionData()
    Implicit default value-type constructor exists (initializes m_Owner to the default Entity value). You can also initialize the field with an object initializer.

Methods

  • None.
    No methods are defined on this struct.

Usage Example

using Unity.Entities;
using Game.Pathfind;

// create and initialize
DeleteActionData deleteData = new DeleteActionData { m_Owner = someEntity };

// pass to a function or enqueue for processing by pathfind/delete logic
ProcessDeleteAction(deleteData);

// Example simple helper
void ProcessDeleteAction(DeleteActionData data)
{
    // data.m_Owner contains the Entity to delete or operate on
}

Additional notes: - Because this struct contains a Unity.Entities.Entity it is blittable and suitable for use in jobified contexts where only the Entity identifier is needed. - It is not marked as an IComponentData in the source shown; if intended to be attached to entities as a component, it must implement IComponentData or be wrapped appropriately.