• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# GameObjects.Event类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中GameObjects.Event的典型用法代码示例。如果您正苦于以下问题:C# Event类的具体用法?C# Event怎么用?C# Event使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Event类属于GameObjects命名空间,在下文中一共展示了Event类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: ApplyEffectKind

 public override void ApplyEffectKind(Person person, Event e)
 {
     int index = person.Tags.IndexOf(tag + ",");
     if (index >= 0) {
         person.Tags.Remove(index, tag.Length + 2);
     }
 }
开发者ID:kpxp,项目名称:ZhongHuaSanGuoZhi-New-Code,代码行数:7,代码来源:EventEffect650.cs


示例2: ApplyEffectKind

 public override void ApplyEffectKind(Person person, Event e)
 {
     if (person.BelongedFactionWithPrincess != null)
     {
         person.AddHated(person.BelongedFaction.Leader);
     }
 }
开发者ID:kpxp,项目名称:ZhongHuaSanGuoZhi-New-Code,代码行数:7,代码来源:EventEffect227.cs


示例3: ApplyEffectKind

        public override void ApplyEffectKind(Person person, Event e)
        {
            Title title = person.Scenario.GameCommonData.AllTitles.GetTitle(increment);
            if (title == null) return;

            person.LearnTitle(title);
        }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:7,代码来源:EventEffect310.cs


示例4: ApplyEffectKind

 public override void ApplyEffectKind(Person person, Event e)
 {
     if (person.LocationArchitecture != null)
     {
         Captive captive = Captive.Create(base.Scenario, person, person.LocationArchitecture.BelongedFaction);
     }
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:7,代码来源:EventEffect212.cs


示例5: ApplyEffectKind

 public override void ApplyEffectKind(Person person, Event e)
 {
     if (person.BelongedFaction != null && person.BelongedFaction.Leader != person)
     {
         person.Loyalty += increment;
     }
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:7,代码来源:EventEffect200.cs


示例6: CheckCondition

 public bool CheckCondition(Architecture architecture, Event e)
 {
     if (this.Kind == null) return false;
     this.Kind.InitializeParameter(this.Parameter);
     this.Kind.InitializeParameter2(this.Parameter2);
     return this.Kind.CheckConditionKind(architecture, e) || this.Kind.CheckConditionKind(architecture);
 }
开发者ID:k45399735,项目名称:ZhongHuaSanGuoZhi,代码行数:7,代码来源:Condition.cs


示例7: ApplyEffectKind

 public override void ApplyEffectKind(Person person, Event e)
 {
     if (person.BelongedFaction != null)
     {
         person.ClosePersons.Add(person.BelongedFaction.LeaderID);
     }
 }
开发者ID:k45399735,项目名称:ZhongHuaSanGuoZhi,代码行数:7,代码来源:EventEffect226.cs


示例8: ApplyEffectKind

 public override void ApplyEffectKind(Architecture a, Event e)
 {
     foreach (Military i in a.Militaries)
     {
         i.IncreaseQuantity(increment);
     }
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:7,代码来源:EventEffect1100.cs


示例9: ApplyEffectKind

 public override void ApplyEffectKind(Person person, Event e)
 {
     if (person.BelongedFactionWithPrincess != null)
     {
         person.BelongedFactionWithPrincess.Leader.AdjustRelation(person, 0, increment);
     }
 }
开发者ID:kpxp,项目名称:ZhongHuaSanGuoZhi-New-Code,代码行数:7,代码来源:EventEffect235.cs


示例10: ApplyEffectKind

 public override void ApplyEffectKind(Architecture a, Event e)
 {
     while (a.Facilities.Count > 0)
     {
         a.DemolishFacility(a.Facilities[0] as Facility);
     }
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:7,代码来源:EventEffect1230.cs


示例11: ApplyEffectKind

 public virtual void ApplyEffectKind(Architecture architecture, Event e)
 {
     foreach (Person p in architecture.Persons)
     {
         this.ApplyEffectKind(p, e);
     }
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:7,代码来源:EventEffectKind.cs


示例12: ApplyEffectKind

 public override void ApplyEffectKind(Person person, Event e)
 {
     if (person.LocationArchitecture != null)
     {
         person.Status = GameObjects.PersonDetail.PersonStatus.Princess;
     }
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:7,代码来源:EventEffect213.cs


示例13: ApplyEffectKind

 public override void ApplyEffectKind(Faction f, Event e)
 {
     GameObjectList d = base.Scenario.DiplomaticRelations.GetDiplomaticRelationListByFactionID(f.ID);
     foreach (GameObjects.FactionDetail.DiplomaticRelation i in d)
     {
         i.Relation += increment;
     }
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:8,代码来源:EventEffect2200.cs


示例14: CheckConditionKind

 public virtual bool CheckConditionKind(Architecture architecture, Event e)
 {
     if (this.ID >= 3000 && this.ID < 4000)
     {
         return architecture.BelongedFaction != null && this.CheckConditionKind(architecture.BelongedFaction, e);
     }
     return false;
 }
开发者ID:hero1991,项目名称:ZhongHuaSanGuoZhi,代码行数:8,代码来源:ConditionKind.cs


示例15: ApplyEffectKind

 public override void ApplyEffectKind(Person person, Event e)
 {
     if (person.LocationArchitecture != null && person.Status == GameObjects.PersonDetail.PersonStatus.Princess)
     {
         Architecture originalLocationArch = person.LocationArchitecture;
         person.Status = GameObjects.PersonDetail.PersonStatus.Normal;
     }
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:8,代码来源:EventEffect217.cs


示例16: ApplyEffectKind

 public override void ApplyEffectKind(Person person, Event e)
 {
     if (person.BelongedFaction != null && person.LocationArchitecture != null && person.BelongedCaptive == null)
     {
         PersonGeneratorType type = person.Scenario.GameCommonData.AllPersonGeneratorTypes[preferredType] as PersonGeneratorType;
         person.LocationArchitecture.GenerateOfficer(type,true);
     }
 }
开发者ID:kpxp,项目名称:ZhongHuaSanGuoZhi-New-Code,代码行数:8,代码来源:EventEffect270.cs


示例17: ApplyEffectKind

 public override void ApplyEffectKind(Person person, Event e)
 {
     if (person.BelongedFactionWithPrincess != null)
     {
         person.BelongedFaction.Leader.Spouse = person;
         person.Spouse = person.BelongedFaction.Leader;
     }
 }
开发者ID:kpxp,项目名称:ZhongHuaSanGuoZhi-New-Code,代码行数:8,代码来源:EventEffect220.cs


示例18: ApplyEffectKind

 public override void ApplyEffectKind(Person person, Event e)
 {
     if (person.BelongedFaction != null)
     {
         person.Brothers.Add(person.BelongedFaction.Leader);
         person.BelongedFaction.Leader.Brothers.Add(person);
     }
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:8,代码来源:EventEffect222.cs


示例19: ApplyEffectKind

 public override void ApplyEffectKind(Faction f, Event e)
 {
     GameObjects.FactionDetail.Technique technique = f.Scenario.GameCommonData.AllTechniques.GetTechnique(increment);
     f.AvailableTechniques.AddTechnique(technique);
     f.Scenario.NewInfluence = true;
     technique.Influences.ApplyInfluence(f, GameObjects.Influences.Applier.Technique, increment);
     f.Scenario.NewInfluence = false;
 }
开发者ID:skicean,项目名称:ZhongHuaSanGuoZhi,代码行数:8,代码来源:EventEffect2020.cs


示例20: ApplyEffectKind

 public override void ApplyEffectKind(Person person, Event e)
 {
     if (person.BelongedFaction != null)
     {
         person.BelongedFaction.Leader.Spouse = person.ID;
         person.Spouse = person.BelongedFaction.Leader.ID;
     }
 }
开发者ID:kanjianlema,项目名称:ZhongHuaSanGuoZhi,代码行数:8,代码来源:EventEffect220.cs



注:本文中的GameObjects.Event类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# GameObjects.Faction类代码示例发布时间:2022-05-26
下一篇:
C# GameObjects.ArchitectureList类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap