Minor adjustments to tags

This commit is contained in:
Wojtek Figat
2022-12-20 22:39:20 +01:00
parent 2f6e793df4
commit e6900d9a17
2 changed files with 3 additions and 6 deletions

View File

@@ -20,9 +20,6 @@ class PhysicsScene;
class SceneRendering;
class SceneRenderTask;
// Maximum tag index is used as an invalid value
#define ACTOR_TAG_INVALID 255
/// <summary>
/// Base class for all actor objects on the scene.
/// </summary>
@@ -116,13 +113,13 @@ public:
API_FUNCTION() bool HasTag() const;
/// <summary>
/// Determines whether this actor has given tag assigned.
/// Determines whether this actor has given tag assigned (exact match).
/// </summary>
/// <param name="tag">The tag to check.</param>
API_FUNCTION() bool HasTag(const Tag& tag) const;
/// <summary>
/// Determines whether this actor has given tag assigned.
/// Determines whether this actor has given tag assigned (exact match).
/// </summary>
/// <param name="tag">The tag to check.</param>
API_FUNCTION() bool HasTag(const StringView& tag) const;

View File

@@ -25,7 +25,7 @@ namespace FlaxEngine
internal void OnDeserializing(System.Runtime.Serialization.StreamingContext context)
{
// Initialize structure with default values to replicate C++ deserialization behavior
this.Index = -1;
Index = -1;
}
/// <summary>