EntityClass.h 717 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #import <appkit/appkit.h>
  2. #import "mathlib.h"
  3. typedef enum {esize_model, esize_fixed} esize_t;
  4. #define MAX_FLAGS 8
  5. @interface EntityClass : Object
  6. {
  7. char *name;
  8. esize_t esize;
  9. vec3_t mins, maxs;
  10. vec3_t color;
  11. char *comments;
  12. char flagnames[MAX_FLAGS][32];
  13. }
  14. - initFromText: (char *)text;
  15. - (char *)classname;
  16. - (esize_t)esize;
  17. - (float *)mins; // only for esize_fixed
  18. - (float *)maxs; // only for esize_fixed
  19. - (float *)drawColor;
  20. - (char *)comments;
  21. - (char *)flagName: (unsigned)flagnum;
  22. @end
  23. extern id entity_classes_i;
  24. @interface EntityClassList : List
  25. {
  26. id nullclass;
  27. char *source_path;
  28. }
  29. - initForSourceDirectory: (char *)path;
  30. - (id)classForName: (char *)name;
  31. - (void)scanDirectory;
  32. @end