Example #1
0
        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);
        }
Example #2
0
 private void OnGridRemove(EntityUid uid, MapGridComponent component, ComponentShutdown args)
 {
     EntityManager.EventBus.RaiseLocalEvent(uid, new GridRemovalEvent(uid, component.GridIndex));
     MapManager.OnComponentRemoved(component);
 }
Example #3
0
        private void OnGridStartup(EntityUid uid, MapGridComponent component, ComponentStartup args)
        {
            var msg = new GridStartupEvent(uid, component.GridIndex);

            EntityManager.EventBus.RaiseLocalEvent(uid, msg);
        }
Example #4
0
        private void OnGridInit(EntityUid uid, MapGridComponent component, ComponentInit args)
        {
            var msg = new GridInitializeEvent(uid, component.GridIndex);

            EntityManager.EventBus.RaiseLocalEvent(uid, msg);
        }
Example #5
0
 private void RemoveHandler(EntityUid uid, MapGridComponent component, ComponentRemove args)
 {
     _mapManager.OnComponentRemoved(component);
 }