20 lines
542 B
C#
20 lines
542 B
C#
using GameCore.ECS;
|
|
using GameCore.Events.Interfaces;
|
|
using GameCore.Math;
|
|
|
|
namespace GameCore.Events;
|
|
|
|
public readonly struct SpawnEntityEvent(
|
|
string archetypeId,
|
|
Vector3 position,
|
|
Vector3 rotation,
|
|
Entity owner,
|
|
Vector3? initialVelocity = null)
|
|
: IEvent
|
|
{
|
|
public readonly string ArchetypeId = archetypeId;
|
|
public readonly Vector3 Position = position;
|
|
public readonly Vector3 Rotation = rotation;
|
|
public readonly Entity Owner = owner;
|
|
public readonly Vector3? InitialVelocity = initialVelocity;
|
|
} |