using FL.Battle; using FL.Battle.Components; using UnityEngine; using XGame.Framework.Map; using XGame.Framework.Time; namespace FL.Map { /// /// 没有IEntity的对象基类 /// /// public abstract class SimpleEntityView : EntityView, IMoveContext where TViewModel : EntityViewModel { /// /// 召唤者的EntityId /// public long MasterId { get; set; } /// /// 配置表Id /// public int TableId { get; set; } /// /// 实例id /// public long UID { get; set; } public ITargetSelector Selector { get; set; } public ITimeModule Time => Context.Time; public IMapAssetModule Asset => Context.Asset; Transform IMoveContext.OwnerTr => VM.Tr; public MoveComponent Move => GetComponent(); protected override void OnEnable(object intent) { } protected override void OnDisable() { Selector = null; } } }