123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using FL.Battle;
- using FL.Battle.Components;
- using UnityEngine;
- using XGame.Framework.Map;
- using XGame.Framework.Time;
- namespace FL.Map
- {
-
-
-
-
- public abstract class SimpleEntityView<TViewModel> : EntityView<TViewModel>, IMoveContext where TViewModel : EntityViewModel
- {
-
-
-
- public long MasterId { get; set; }
-
-
-
- public int TableId { get; set; }
-
-
-
- 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<MoveComponent>();
- protected override void OnEnable(object intent)
- {
- }
- protected override void OnDisable()
- {
- Selector = null;
- }
- }
- }
|