コード例 #1
0
 public static HPChangeMessage GetBreakMessage(EntityParent target, EntityParent source)
 {
     return(new HPChangeMessage
     {
         targetID = source.ID,
         modeType = HPChangeMessage.GetModeType(target, source),
         hpChangeType = HPChangeMessage.HPChangeType.Break
     });
 }
コード例 #2
0
 public static HPChangeMessage GetDamageMessage(long damageValue, BattleAction_Bleed.DmgSrcType causeType, ElemType.ENUM elementType, EntityParent target, EntityParent source, bool isCritical, bool isParry, bool isMiss)
 {
     return(new HPChangeMessage
     {
         targetID = target.ID,
         modeType = HPChangeMessage.GetModeType(target, source),
         causeType = HPChangeMessage.GetCauseType(causeType),
         elementType = HPChangeMessage.GetElementType(elementType),
         hpChangeType = HPChangeMessage.GetHPChangeType(isCritical, isParry, isMiss),
         hpChangeValue = (float)damageValue
     });
 }
コード例 #3
0
 public static HPChangeMessage GetTreatMessage(long treatValue, BattleAction_Treat.TreatSrcType causeType, EntityParent target, EntityParent source, bool hasCasterPosition, Vector3 casterPosition)
 {
     return(new HPChangeMessage
     {
         targetID = target.ID,
         modeType = HPChangeMessage.GetModeType(target, source),
         hpChangeType = HPChangeMessage.GetHPChangeType(causeType),
         hpChangeValue = (float)treatValue,
         hasCasterPosition = hasCasterPosition,
         casterPosition = casterPosition
     });
 }