mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-27 10:38:02 +03:00
* Уэээээээ * Почти настрадались * Скоро конец.... * СКОРО * Мышки плакали, кололись, но продолжали упорно жрать кактус * Все ближе! * Это такой конец? * Книжка говна * фиксики * ОНО ЖИВОЕ * Телепорт * разное * Added byond * ивенты теперь работают * Разфикс телепорта * Свет мой зеркальце скажи, да всю правду доложи - Я ль робастней всех на свете? * Разное * Еще многа всего * Многа разнава * Скоро конец.... * ЭТО КОНЕЦ * Фикс линтера (ну, или я на это надеюсь) * Еще один фикс линтера * Победа! * фиксики * пу пу пу * Фикс подмастерья * Мисклик * Высокочастотный меч * Неймспейсы * Пул способностей мага
54 lines
1.7 KiB
C#
54 lines
1.7 KiB
C#
// SPDX-FileCopyrightText: 2024 keronshb <54602815+keronshb@users.noreply.github.com>
|
|
// SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
|
|
// SPDX-FileCopyrightText: 2025 Aviu00 <93730715+Aviu00@users.noreply.github.com>
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
using Content.Shared.Storage.EntitySystems;
|
|
using Content.Shared.Whitelist;
|
|
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Storage.Components;
|
|
|
|
// Use where you want an entity to store other entities on collide
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState, Access(typeof(StoreOnCollideSystem))]
|
|
public sealed partial class StoreOnCollideComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Entities that are allowed in the storage on collide
|
|
/// </summary>
|
|
[DataField]
|
|
public EntityWhitelist? Whitelist;
|
|
|
|
/// <summary>
|
|
/// Should this storage lock on collide, provided they have a lock component?
|
|
/// </summary>
|
|
[DataField]
|
|
public bool LockOnCollide;
|
|
|
|
/// <summary>
|
|
/// Should the behavior be disabled when the storage is first opened?
|
|
/// </summary>
|
|
[DataField]
|
|
public bool DisableWhenFirstOpened;
|
|
|
|
/// <summary>
|
|
/// If the behavior is disabled or not
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public bool Disabled;
|
|
|
|
/// <summary>
|
|
/// Goobstation
|
|
/// Don't store this entity, it is used for shooter if this is projectile
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public EntityUid? IgnoredEntity;
|
|
|
|
/// <summary>
|
|
/// Goobstation
|
|
/// Should the behavior be disabled when entity (physics) sleeps?
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public bool DisableOnSleep;
|
|
} |