Esempio n. 1
0
 private void OnAttemptOpen(EntityUid uid, CrematoriumComponent component, StorageOpenAttemptEvent args)
 {
     if (component.Cooking)
     {
         args.Cancel();
     }
 }
 private void OnFoldableOpenAttempt(EntityUid uid, FoldableComponent component, StorageOpenAttemptEvent args)
 {
     if (component.IsFolded)
     {
         args.Cancel();
     }
 }
Esempio n. 3
0
        private void OnStorageOpenAttempt(EntityUid uid, LockComponent component, StorageOpenAttemptEvent args)
        {
            if (component.Locked)
            {
                if (!args.Silent)
                {
                    _sharedPopupSystem.PopupEntity(Loc.GetString("entity-storage-component-locked-message"), uid, Filter.Pvs(uid));
                }

                args.Cancel();
            }
        }