X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=libs%2Fscenelib.h;h=a5be241398ba929b0ad7bfbc7d37dcff7e7b77fa;hb=8c19a03806d0a06596036625adaacced47c44431;hp=71d4963b9da45584743f1c0d9d1f4ce62a5a1c76;hpb=eaad87408fc96eb1353f645543e2cc8f632b4ed1;p=xonotic%2Fnetradiant.git diff --git a/libs/scenelib.h b/libs/scenelib.h index 71d4963b..a5be2413 100644 --- a/libs/scenelib.h +++ b/libs/scenelib.h @@ -122,7 +122,7 @@ template class StaticNodeType { public: - static const int SIZE = NODETYPEID_MAX; + enum unnamed0 { SIZE = NODETYPEID_MAX }; static TypeId getTypeId() { return Static< NodeType >::instance().getTypeId(); @@ -161,10 +161,10 @@ namespace scene class Node { public: - static const int eVisible = 0; - static const int eHidden = 1 << 0; - static const int eFiltered = 1 << 1; - static const int eExcluded = 1 << 2; + enum unnamed0 { eVisible = 0 }; + enum unnamed1 { eHidden = 1 << 0 }; + enum unnamed2 { eFiltered = 1 << 1 }; + enum unnamed3 { eExcluded = 1 << 2 }; class Symbiot { @@ -483,7 +483,7 @@ template class StaticInstanceType { public: - static const int SIZE = INSTANCETYPEID_MAX; + enum unnamed0 { SIZE = INSTANCETYPEID_MAX }; static TypeId getTypeId() { return Static< InstanceType >::instance().getTypeId();