Esempio n. 1
0
 void InitResult()
 {
     // register all result
     m_battleContext.RegisterResult((int)ENResult.Skill, ResultSkill.CreateNew);
     m_battleContext.RegisterResult((int)ENResult.Damage, ResultDamage.CreateNew);
     m_battleContext.RegisterResult((int)ENResult.AddBuff, ResultAddBuff.CreateNew);
     m_battleContext.RegisterResult((int)ENResult.RemoveBuff, ResultRemoveBuff.CreateNew);
     m_battleContext.RegisterResult((int)ENResult.Dead, ResultDead.CreateNew);
     m_battleContext.RegisterResult((int)ENResult.StaminaChanged, ResultStaminaChanged.CreateNew);
     m_battleContext.RegisterResult((int)ENResult.Relive, ResultRelive.CreateNew);
     m_battleContext.RegisterResult((int)ENResult.OpenBox, OpenBoxResult.CreateNew);
     m_battleContext.RegisterResult((int)ENResult.Health, ResultHealth.CreateNew);
     m_battleContext.RegisterResult((int)ENResult.InstantDeath, ResultInstantDeath.CreateNew);
     m_battleContext.RegisterResult((int)ENResult.SkillCD, ResultSkillCD.CreateNew);
     m_battleContext.RegisterResult((int)ENResult.Taut, ResultTaut.CreateNew);
     m_battleContext.RegisterResult((int)ENResult.Drag, ResultDrag.CreateNew);
     m_battleContext.RegisterResult((int)ENResult.RefreshCD, ResultRefreshCD.CreateNew);
     m_battleContext.RegisterResult((int)ENResult.ChainDamage, ResultChainDamage.CreateNew);
     m_battleContext.RegisterResult((int)ENResult.Call, ResultCall.CreateNew);
     m_battleContext.RegisterResult((int)ENResult.Vampire, ResultVampire.CreateNew);
     m_battleContext.RegisterResult((int)ENResult.AddExp, ResultAddExp.CreateNew);
 }