示例#1
0
文件: Pawn.cs 项目: svwilke/Spellzee
 public void CmdApplyAilment(Ailment ailment, int intensity)
 {
     ApplyAilment(ailment, intensity);
     NetworkServer.SendToAll(GameMsg.UpdateAilment, new GameMsg.MsgUpdateAilment()
     {
         updateType = GameMsg.MsgUpdateAilment.UpdateType.Apply,
         pawnId     = id,
         ailmentId  = ailment.GetId(),
         intensity  = intensity
     });
 }
示例#2
0
文件: Pawn.cs 项目: svwilke/Spellzee
 public bool HasAilment(Ailment ailment)
 {
     return(GetAilment(ailment.GetId()) > 0);
 }
示例#3
0
文件: Pawn.cs 项目: svwilke/Spellzee
 public int GetAilment(Ailment ailment)
 {
     return(GetAilment(ailment.GetId()));
 }
示例#4
0
文件: Pawn.cs 项目: svwilke/Spellzee
 public void CmdSetAilment(Ailment ailment, int intensity)
 {
     CmdSetAilment(ailment.GetId(), intensity);
 }