コード例 #1
0
ファイル: FightAction.cs プロジェクト: abel/sinan
 public FightAction(Variant v, int fightCount)
 {
     this.ActionType = (ActionType)(v.GetIntOrDefault("fType"));
     this.Sender = v.GetStringOrDefault("handler");
     object obj;
     if (v.TryGetValueT("target", out obj))
     {
         this.Target = (obj == null ? string.Empty : obj.ToString());
     }
     if (v.TryGetValueT("parameter", out obj))
     {
         this.Parameter = (obj == null ? string.Empty : obj.ToString());
     }
     this.FightCount = fightCount;
 }