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

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

            EntityManager.EventBus.RaiseLocalEvent(uid, msg);
        }
コード例 #5
0
ファイル: MapSystem.cs プロジェクト: Ygg01/RobustToolbox
 private void RemoveHandler(EntityUid uid, MapGridComponent component, ComponentRemove args)
 {
     _mapManager.OnComponentRemoved(component);
 }