This repository has been archived on 2023-09-13. You can view files and clone it, but cannot push or open issues or pull requests.
station_obscurum_unity/Assets/FishNet/Runtime/Object/ChangedTransformProperties.cs

36 lines
814 B
C#

using FishNet.Documenting;
namespace FishNet.Object
{
/// <summary>
/// Properties which have changed on a transform.
/// </summary>
[System.Flags]
[APIExclude]
internal enum ChangedTransformProperties : byte
{
Unset = 0,
LocalPosition = 1,
LocalRotation = 2,
LocalScale = 4,
}
[APIExclude]
internal static partial class ChangedTransformPropertiesEnum
{
/// <summary>
/// Returns if whole contains part.
/// </summary>
/// <param name="whole"></param>
/// <param name="part"></param>
/// <returns></returns>
public static bool Contains(ChangedTransformProperties whole, ChangedTransformProperties part)
{
return (whole & part) == part;
}
}
}