mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-06 17:58:05 +02:00
26 lines
829 B
C#
26 lines
829 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Robust.Shared.Physics;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Robust.Shared.GameObjects.Components
|
|
{
|
|
[Serializable, NetSerializable]
|
|
public class CollidableComponentState : ComponentState
|
|
{
|
|
public readonly bool CollisionEnabled;
|
|
public readonly bool HardCollidable;
|
|
public readonly bool ScrapingFloor;
|
|
public readonly List<IPhysShape> PhysShapes;
|
|
|
|
public CollidableComponentState(bool collisionEnabled, bool hardCollidable, bool scrapingFloor, List<IPhysShape> physShapes)
|
|
: base(NetIDs.COLLIDABLE)
|
|
{
|
|
CollisionEnabled = collisionEnabled;
|
|
HardCollidable = hardCollidable;
|
|
ScrapingFloor = scrapingFloor;
|
|
PhysShapes = physShapes;
|
|
}
|
|
}
|
|
}
|