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

lib/ecspanse/event/resource_updated.ex

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