mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 01:44:35 +08:00
Update
This commit is contained in:
parent
6600f3a118
commit
5f4e5cf045
@ -18,6 +18,7 @@
|
|||||||
public const string POST_END_LAYER = NAME_SPACE + nameof(POST_END_LAYER);
|
public const string POST_END_LAYER = NAME_SPACE + nameof(POST_END_LAYER);
|
||||||
|
|
||||||
public const string META_HIDDEN_TAG = "HiddenInDebagging";
|
public const string META_HIDDEN_TAG = "HiddenInDebagging";
|
||||||
|
public const string META_OBSOLETE_TAG = "Obsolete";
|
||||||
public const string META_ENGINE_MEMBER_TAG = "EngineMember";
|
public const string META_ENGINE_MEMBER_TAG = "EngineMember";
|
||||||
|
|
||||||
public const int MAGIC_PRIME = 314159;
|
public const int MAGIC_PRIME = 314159;
|
||||||
@ -31,6 +32,7 @@
|
|||||||
public const string PROCESSES_GROUP = "Processes";
|
public const string PROCESSES_GROUP = "Processes";
|
||||||
public const string DEBUG_GROUP = "Debug";
|
public const string DEBUG_GROUP = "Debug";
|
||||||
public const string OTHER_GROUP = "Other";
|
public const string OTHER_GROUP = "Other";
|
||||||
|
public const string OBSOLETE_GROUP = "Obsolete";
|
||||||
public const string TEMPLATES_GROUP = "Templates";
|
public const string TEMPLATES_GROUP = "Templates";
|
||||||
public const string IMPLEMENTATIONS_GROUP = "Implementation";
|
public const string IMPLEMENTATIONS_GROUP = "Implementation";
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace DCFApixels.DragonECS
|
namespace DCFApixels.DragonECS.Core
|
||||||
{
|
{
|
||||||
public abstract class EcsMetaAttribute : Attribute { }
|
public abstract class EcsMetaAttribute : Attribute { }
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
using DCFApixels.DragonECS.Internal;
|
using DCFApixels.DragonECS.Core;
|
||||||
|
using DCFApixels.DragonECS.Internal;
|
||||||
using System;
|
using System;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Runtime.Serialization;
|
using System.Runtime.Serialization;
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
using System;
|
using DCFApixels.DragonECS.Core;
|
||||||
|
using System;
|
||||||
|
|
||||||
namespace DCFApixels.DragonECS
|
namespace DCFApixels.DragonECS
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
using System;
|
using DCFApixels.DragonECS.Core;
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
using DCFApixels.DragonECS.Internal;
|
using DCFApixels.DragonECS.Core;
|
||||||
|
using DCFApixels.DragonECS.Internal;
|
||||||
using System;
|
using System;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
using System;
|
using DCFApixels.DragonECS.Core;
|
||||||
|
using System;
|
||||||
|
|
||||||
namespace DCFApixels.DragonECS
|
namespace DCFApixels.DragonECS
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
using System;
|
using DCFApixels.DragonECS.Core;
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace DCFApixels.DragonECS
|
namespace DCFApixels.DragonECS
|
||||||
@ -35,6 +36,7 @@ namespace DCFApixels.DragonECS
|
|||||||
public readonly ref struct MetaTags
|
public readonly ref struct MetaTags
|
||||||
{
|
{
|
||||||
public const string HIDDEN = EcsConsts.META_HIDDEN_TAG;
|
public const string HIDDEN = EcsConsts.META_HIDDEN_TAG;
|
||||||
|
public const string OBSOLETE = EcsConsts.META_OBSOLETE_TAG;
|
||||||
public const string ENGINE_MEMBER = EcsConsts.META_ENGINE_MEMBER_TAG;
|
public const string ENGINE_MEMBER = EcsConsts.META_ENGINE_MEMBER_TAG;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
using DCFApixels.DragonECS.Internal;
|
using DCFApixels.DragonECS.Core;
|
||||||
|
using DCFApixels.DragonECS.Internal;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
@ -49,6 +50,7 @@ namespace DCFApixels.DragonECS
|
|||||||
private bool _isCustomName;
|
private bool _isCustomName;
|
||||||
private bool _isCustomColor;
|
private bool _isCustomColor;
|
||||||
private bool _isHidden;
|
private bool _isHidden;
|
||||||
|
private bool _isObsolete;
|
||||||
|
|
||||||
private string _name;
|
private string _name;
|
||||||
private string _typeName;
|
private string _typeName;
|
||||||
@ -211,6 +213,7 @@ namespace DCFApixels.DragonECS
|
|||||||
_tags = MetaGenerator.GetTags(_type);
|
_tags = MetaGenerator.GetTags(_type);
|
||||||
_initFlags |= InitFlag.Tags;
|
_initFlags |= InitFlag.Tags;
|
||||||
_isHidden = _tags.Contains(MetaTags.HIDDEN);
|
_isHidden = _tags.Contains(MetaTags.HIDDEN);
|
||||||
|
_isObsolete = _tags.Contains(MetaTags.OBSOLETE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public IReadOnlyList<string> Tags
|
public IReadOnlyList<string> Tags
|
||||||
@ -229,6 +232,22 @@ namespace DCFApixels.DragonECS
|
|||||||
return _isHidden;
|
return _isHidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public bool IsObsolete
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
InitTags();
|
||||||
|
return _isObsolete;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public bool IsHiddenOrObsolete
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return IsHidden || IsObsolete;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region MetaID
|
#region MetaID
|
||||||
|
Loading…
Reference in New Issue
Block a user