Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / PhysicsLayer.cs
@小李xl 小李xl on 26 Jun 2023 1 KB 移速道具
/// <summary>
/// 物理碰撞层
/// </summary>
public class PhysicsLayer
{
    /// <summary>
    /// 无任何层级
    /// </summary>
    public const uint None = 0;
    /// <summary>
    /// 墙壁
    /// </summary>
    public const uint Wall = 0b1;
    /// <summary>
    /// 子弹
    /// </summary>
    public const uint Bullet = 0b10;
    /// <summary>
    /// 道具
    /// </summary>
    public const uint Prop = 0b100;
    /// <summary>
    /// 玩家
    /// </summary>
    public const uint Player = 0b1000;
    /// <summary>
    /// 敌人
    /// </summary>
    public const uint Enemy = 0b10000;
    /// <summary>
    /// 归属区域判断层级
    /// </summary>
    public const uint Affiliation = 0b100000;
    /// <summary>
    /// 在手上
    /// </summary>
    public const uint OnHand = 0b1000000;
    /// <summary>
    /// 弹壳
    /// </summary>
    public const uint Shell = 0b10000000;
    /// <summary>
    /// 投抛中
    /// </summary>
    public const uint Throwing = 0b100000000;
}