Packages

Ecspanse is an Entity Component System (ECS) library for Elixir, offering a suite of features including: flexible queries with multiple filters, dynamic bidirectional relationships, versatile tagging capabilities, system event subscriptions, or asynchronous system execution.

Current section

Files

Jump to
ecspanse lib ecspanse event component_deleted.ex
Raw

lib/ecspanse/event/component_deleted.ex

defmodule Ecspanse.Event.ComponentDeleted do
@moduledoc """
Special framework event triggered automatically
when a new component is deleted.
Contains the deleted component state struct.
See [a working example](./tutorial.md#finding-resources) in the tutorial
"""
use Ecspanse.Event, fields: [:component]
@type t :: %__MODULE__{
component: struct()
}
end