本文整理汇总了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;未经允许,请勿转载。 |
请发表评论