Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
2.0 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef ATTRIBUTEFLAGS_H
  7. #define ATTRIBUTEFLAGS_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. enum
  12. {
  13. // NOTE: The first 5 flags bits are reserved for attribute type
  14. FATTRIB_TYPEMASK = 0x1F,
  15. FATTRIB_READONLY = (1<<5), // Don't allow editing value in editors
  16. FATTRIB_DONTSAVE = (1<<6), // Don't persist to .dmx file
  17. FATTRIB_DIRTY = (1<<7), // Indicates the attribute has been changed since the resolve phase
  18. FATTRIB_HAS_CALLBACK = (1<<8), // Indicates that this will notify its owner and/or other elements when it changes
  19. FATTRIB_EXTERNAL = (1<<9), // Indicates this attribute's data is externally owned (in a CDmElement somewhere)
  20. FATTRIB_TOPOLOGICAL = (1<<10), // Indicates this attribute effects the scene's topology (ie it's an attribute name or element)
  21. FATTRIB_MUSTCOPY = (1<<11), // parent element must make a new copy during CopyInto, even for shallow copy
  22. FATTRIB_NEVERCOPY = (1<<12), // parent element shouldn't make a new copy during CopyInto, even for deep copy
  23. FATTRIB_STANDARD = (1<<13), // This flag is set if it's a "standard" attribute, namely "name"
  24. FATTRIB_USERDEFINED = (1<<14), // This flag is used to sort attributes in the element properties view. User defined flags come last.
  25. FATTRIB_NODUPLICATES = (1<<15),// For element array types, disallows duplicate values from being inserted into the array.
  26. FATTRIB_HAS_ARRAY_CALLBACK = (1<<16), // Indicates that this will notify its owner and/or other elements array elements changes. Note that when elements shift (say, inserting at head, or fast remove), callbacks are not executed for these elements.
  27. FATTRIB_HAS_PRE_CALLBACK = (1<<17), // Indicates that this will notify its owner and/or other elements right before it changes
  28. FATTRIB_OPERATOR_DIRTY = (1<<18),// Used and cleared only by operator phase of datamodel
  29. };
  30. #endif // ATTRIBUTEFLAGS_H