Entitas-csharp: MultiReactiveSystem Tutorial question

Created on 6 Jul 2018  路  4Comments  路  Source: sschmid/Entitas-CSharp

using Entitas;
using UnityEngine;

[Game, Input, Ui]
public class DestroyedComponent : IComponent 
{
}
public interface IDestroyEntity : IEntity, IDestroyed { }

Hi, I just don't know why editor says "IDestroyed" is not define, and I also not find it in interface folder.
I already generate code after I define "DestroyedComponent"

Most helpful comment

Hi @moixxsyc - I wrote that tutorial quite a while ago, and back then the generated interface used to be I{ComponentName}, but now it is I{ComponentName}Entity. I have updated the tutorial just now to reflect these changes.

Sorry for the confusion this has caused.

All 4 comments

Greetings, the code generator has generated "I{YourComponentName}Entity" for you. In fact, it will generate such an interface for whatever component defined in multiple contexts. I believe that's the thing you want instead of "IDestroyed".

Hi @moixxsyc - I wrote that tutorial quite a while ago, and back then the generated interface used to be I{ComponentName}, but now it is I{ComponentName}Entity. I have updated the tutorial just now to reflect these changes.

Sorry for the confusion this has caused.

@zhuchun thanks锛宼hat help me alot ~

@FNGgames thanks for your help~

Was this page helpful?
0 / 5 - 0 ratings