// Copyright (c) Wojciech Figat. All rights reserved.


using FlaxEngine.Json;

namespace FlaxEngine
{
    partial class ModelInstanceActor
    {
        partial struct MeshReference : ICustomValueEquals
        {
            /// <inheritdoc />
            public bool ValueEquals(object other)
            {
                var o = (MeshReference)other;
                return JsonSerializer.SceneObjectEquals(Actor, o.Actor) &&
                       LODIndex == o.LODIndex &&
                       MeshIndex == o.MeshIndex;
            }
        }
    }
}
