コード例 #1
0
ファイル: Influence.cs プロジェクト: zhaohuwei/ZHSan
        public void ApplyInfluence(Faction faction, Applier applier, int applierID)
        {
            ApplyingFaction a = new ApplyingFaction(faction, applier, applierID);

            this.Kind.InitializeParameter(this.Parameter);
            this.Kind.InitializeParameter2(this.Parameter2);
            try
            {
                this.Kind.ApplyInfluenceKind(faction, this, applier, applierID);
            }
            catch
            {
            }
        }
コード例 #2
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (!(obj is ApplyingFaction))
            {
                return(false);
            }
            ApplyingFaction a = (ApplyingFaction)obj;

            return(a.applierID == this.applierID && a.applier.Equals(this.applier) && a.faction.Equals(this.faction));
        }
コード例 #3
0
 public void ApplyInfluence(Faction faction, Applier applier, int applierID)
 {
     ApplyingFaction a = new ApplyingFaction(faction, applier, applierID);
     if (appliedFaction.Contains(a)) return;
     appliedFaction.Add(a);
     this.Kind.InitializeParameter(this.Parameter);
     this.Kind.InitializeParameter2(this.Parameter2);
     try
     {
         this.Kind.ApplyInfluenceKind(faction, this, applier, applierID);
     }
     catch
     {
     }
 }
コード例 #4
0
        public void ApplyInfluence(Faction faction, Applier applier, int applierID)
        {
            ApplyingFaction a = new ApplyingFaction(faction, applier, applierID);

            if (appliedFaction.Contains(a))
            {
                return;
            }
            appliedFaction.Add(a);
            this.Kind.InitializeParameter(this.Parameter);
            this.Kind.InitializeParameter2(this.Parameter2);
            try
            {
                this.Kind.ApplyInfluenceKind(faction, this, applier, applierID);
            }
            catch
            {
            }
        }
コード例 #5
0
        public void PurifyInfluence(Faction faction, Applier applier, int applierID)
        {
            ApplyingFaction a = new ApplyingFaction(faction, applier, applierID);

            if (!appliedFaction.Contains(a))
            {
                return;
            }
            appliedFaction.RemoveWhere((x) => { return(x.Equals(a)); });
            this.Kind.InitializeParameter(this.Parameter);
            this.Kind.InitializeParameter2(this.Parameter2);
            try
            {
                this.Kind.PurifyInfluenceKind(faction, this, applier, applierID);
            }
            catch
            {
            }
        }
コード例 #6
0
 public void PurifyInfluence(Faction faction, Applier applier, int applierID)
 {
     ApplyingFaction a = new ApplyingFaction(faction, applier, applierID);
     if (!appliedFaction.Contains(a)) return;
     appliedFaction.RemoveWhere((x) => { return x.Equals(a); });
     this.Kind.InitializeParameter(this.Parameter);
     this.Kind.InitializeParameter2(this.Parameter2);
     try
     {
         this.Kind.PurifyInfluenceKind(faction, this, applier, applierID);
     }
     catch
     {
     }
 }