mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-16 07:12:27 +02:00
39 lines
1.2 KiB
C#
39 lines
1.2 KiB
C#
using System;
|
|
using Robust.Shared.Enums;
|
|
using Robust.Shared.Maths;
|
|
using Robust.Shared.Timing;
|
|
|
|
namespace Robust.Client.Placement
|
|
{
|
|
public interface IPlacementManager
|
|
{
|
|
void Initialize();
|
|
bool IsActive { get; }
|
|
bool Eraser { get; }
|
|
PlacementMode? CurrentMode { get; set; }
|
|
PlacementInformation? CurrentPermission { get; set; }
|
|
|
|
/// <summary>
|
|
/// The direction to spawn the entity in (presently exposed for EntitySpawnWindow UI)
|
|
/// </summary>
|
|
Direction Direction { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets called when Direction changed (presently for EntitySpawnWindow UI)
|
|
/// </summary>
|
|
event EventHandler DirectionChanged;
|
|
|
|
/// <summary>
|
|
/// Gets called when the PlacementManager changed its build/erase mode or when the hijacks changed
|
|
/// </summary>
|
|
event EventHandler PlacementChanged;
|
|
|
|
void BeginPlacing(PlacementInformation info, PlacementHijack? hijack = null);
|
|
void Clear();
|
|
void ToggleEraser();
|
|
void ToggleEraserHijacked(PlacementHijack hijack);
|
|
|
|
void FrameUpdate(FrameEventArgs e);
|
|
}
|
|
}
|