public void Register(LocationComponent location) { this.Log($"Map registering {location}"); location.SetContainingMap(this); location.EntitySpawned += OnEntitySpawned; Locations.Add(location); LocationRegistered?.Invoke(this, new LocationEventArgs(location)); }
public LocationEventArgs(LocationComponent location) { Location = location; }