Advertisement
GAMELASTER

Untitled

Feb 20th, 2016
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.38 KB | None | 0 0
  1. public enum Types : sbyte
  2. {
  3.     StandardMesh = 0x01,
  4.     Sector = 0x05,
  5.     Dummy = 0x06,
  6.     Target = 0x07,
  7.     Bone = 0x0A
  8. }  
  9. uint variable = 0x07;
  10. Types type = (Types)variable;
  11. if(type.HasFlag(Types.StandardMesh))
  12. {
  13.     Console.WriteLine("im standard mesh");
  14. }
  15. if(type.HasFlag(Types.Target))
  16. {
  17.     Console.WriteLIne("im target");
  18. }
  19.  
  20. /*
  21. output:
  22. im standard mesh
  23. im target
  24. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement