DEA0010 The type containing the method decorated by the Update attribute should be partial

November 14, 2020 ยท View on GitHub

The type containing the method decorated by the Update attribute should be partial.

Examples of patterns that are flagged by this analyzer

using DefaultEcs.System;

namespace DummyNamespace
{
    class DummyClass : AEntitySystem<float>
    {
        public DummyClass(World world)
            : base(world)
        { }

        [Update]
        void Update(in Entity entity, float state, object dummy)
        { }
    }
}

Solution

Mark the parent type as partial.