Advertisement
Guest User

Untitled

a guest
Sep 13th, 2014
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. public final struct Object
  2. {
  3. @safe public final pure
  4. {
  5. mixin(__ObjCtor("Tangible"));
  6. mixin(__ObjCtor("Entity"));
  7. mixin(__ObjCtor("Item"));
  8.  
  9. mixin(__ObjChk("is_entity", "OBJ_Entity"));
  10. mixin(__ObjChk("is_tangible", "OBJ_Tangible"));
  11. mixin(__ObjChk("is_item", "OBJ_Item"));
  12. }
  13. private enum : uint8
  14. {
  15. OBJ_Tangible = 0,
  16. OBJ_Item,
  17. OBJ_Entity
  18. }
  19. uint8 identity=0;
  20. uint8 flags=0;
  21. union
  22. {
  23. Item Item_;
  24. Entity Entity_;
  25. Tangible Tangible_;
  26. };
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement