コード例 #1
0
        private void OnMapRemoved(EntityUid uid, MapComponent component, ComponentShutdown args)
        {
            var msg = new MapChangedEvent(component.WorldMap, false);

            EntityManager.EventBus.RaiseLocalEvent(uid, msg);
        }
コード例 #2
0
        private void OnMapAdded(EntityUid uid, MapComponent component, ComponentInit args)
        {
            var msg = new MapChangedEvent(component.WorldMap, true);

            EntityManager.EventBus.RaiseLocalEvent(uid, msg);
        }