public static void AddBuff(IIcSkSEntityManager <IIcSkSEntity> entityManager, IIcSkSEntity entity, IBuffDataComponent buff) { if (entityManager is IStructIcSkSEntityManager <IIcSkSEntity> skSEntityManager) { _buffAddOrRemove(ActionType.Add, out _, entity, buff, skSEntityManager); } }
protected sealed override T GetOutValue() { BuffManager = GetInputValue(nameof(BuffManager), BuffManager); Target = GetInputValue(nameof(Target), Target);; BuffType = Type.GetType(_buffAQName); return(Execute()); }
public static bool HasBuff(IIcSkSEntityManager <IIcSkSEntity> entityManager, IIcSkSEntity entity, IBuffDataComponent buff) { bool result = false; if (entityManager is IStructIcSkSEntityManager <IIcSkSEntity> structIcSkSEntityManager) { //### Code _buffAddOrRemove(ActionType.Has, out result, entity, buff, structIcSkSEntityManager); //### } return(result); }
public static void AddBuff <TE>(IIcSkSEntityManager <TE> entityManager, TE entity, string buffType, IBuffDataComponent buff) where TE : IIcSkSEntity { if (entityManager is IStructIcSkSEntityManager <TE> structIcSkSEntityManager) { //### Code if (buffType == typeof(Damage).FullName) { structIcSkSEntityManager.AddBuff(entity, (Damage)buff); } else if (buffType == typeof(DeathStruct).FullName) { structIcSkSEntityManager.AddBuff(entity, (DeathStruct)buff); } else if (buffType == typeof(Mechanics).FullName) { structIcSkSEntityManager.AddBuff(entity, (Mechanics)buff); } //### } }
public static void AddBuff(IIcSkSEntityManager <IIcSkSEntity> entityManager, IIcSkSEntity entity, string buffType, IBuffDataComponent buff) { AddBuff <IIcSkSEntity>(entityManager, entity, buffType, buff); }
public void Init(IIcSkSEntityManager <IcSkSEntity> entityManager, IcSkSEntity icSkSEntity) { EntityManager = entityManager; Link(icSkSEntity); }