private void OnGridAdd(EntityUid uid, MapGridComponent component, ComponentAdd args) { // GridID is not set yet so we don't include it. var msg = new GridAddEvent(uid); EntityManager.EventBus.RaiseLocalEvent(uid, msg); }
private void OnGridRemove(EntityUid uid, MapGridComponent component, ComponentShutdown args) { EntityManager.EventBus.RaiseLocalEvent(uid, new GridRemovalEvent(uid, component.GridIndex)); MapManager.OnComponentRemoved(component); }
private void OnGridStartup(EntityUid uid, MapGridComponent component, ComponentStartup args) { var msg = new GridStartupEvent(uid, component.GridIndex); EntityManager.EventBus.RaiseLocalEvent(uid, msg); }
private void OnGridInit(EntityUid uid, MapGridComponent component, ComponentInit args) { var msg = new GridInitializeEvent(uid, component.GridIndex); EntityManager.EventBus.RaiseLocalEvent(uid, msg); }
private void RemoveHandler(EntityUid uid, MapGridComponent component, ComponentRemove args) { _mapManager.OnComponentRemoved(component); }