Esempio n. 1
0
 public static void AddBuff(IIcSkSEntityManager <IIcSkSEntity> entityManager, IIcSkSEntity entity,
                            IBuffDataComponent buff)
 {
     if (entityManager is IStructIcSkSEntityManager <IIcSkSEntity> skSEntityManager)
     {
         _buffAddOrRemove(ActionType.Add, out _, entity, buff, skSEntityManager);
     }
 }
Esempio n. 2
0
        protected sealed override T GetOutValue()
        {
            BuffManager = GetInputValue(nameof(BuffManager), BuffManager);
            Target      = GetInputValue(nameof(Target), Target);;

            BuffType = Type.GetType(_buffAQName);

            return(Execute());
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
 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);
         }
         //###
     }
 }
Esempio n. 5
0
 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);
 }