Delta-v/Content.Shared/_Goobstation/Fishing/Events/FishingEvents.cs

32 lines
1.1 KiB
C#

// SPDX-FileCopyrightText: 2025 Aidenkrz <aiden@djkraz.com>
// SPDX-FileCopyrightText: 2025 GoobBot <uristmchands@proton.me>
// SPDX-FileCopyrightText: 2025 Roudenn <romabond091@gmail.com>
//
// SPDX-License-Identifier: AGPL-3.0-or-later
using Content.Shared.Actions;
using Robust.Shared.Serialization;
namespace Content.Shared._Goobstation.Fishing.Events;
public sealed partial class ThrowFishingLureActionEvent : WorldTargetActionEvent;
public sealed partial class PullFishingLureActionEvent : InstantActionEvent;
[Serializable, NetSerializable]
public sealed class ActiveFishingSpotComponentState : ComponentState
{
public readonly float FishDifficulty;
public bool IsActive;
public TimeSpan? FishingStartTime;
public NetEntity? AttachedFishingLure;
public ActiveFishingSpotComponentState(float fishDifficulty, bool isActive, TimeSpan? fishingStartTime, NetEntity? attachedFishingLure)
{
FishDifficulty = fishDifficulty;
IsActive = isActive;
FishingStartTime = fishingStartTime;
AttachedFishingLure = attachedFishingLure;
}
}