Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public enum Types : sbyte
- {
- StandardMesh = 0x01,
- Sector = 0x05,
- Dummy = 0x06,
- Target = 0x07,
- Bone = 0x0A
- }
- uint variable = 0x07;
- Types type = (Types)variable;
- if(type.HasFlag(Types.StandardMesh))
- {
- Console.WriteLine("im standard mesh");
- }
- if(type.HasFlag(Types.Target))
- {
- Console.WriteLIne("im target");
- }
- /*
- output:
- im standard mesh
- im target
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement