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 resource_deleted.ex
Raw

lib/ecspanse/event/resource_deleted.ex

defmodule Ecspanse.Event.ResourceDeleted do
@moduledoc """
TODO
Special framework event triggered automatically
when a new resource is deleted.
Contains the deleted resource state struct.
"""
use Ecspanse.Event, fields: [:resource]
@type t :: %__MODULE__{
resource: struct()
}
end