本文整理汇总了C#中GameObjects.Event类的典型用法代码示例。如果您正苦于以下问题:C# Event类的具体用法?C# Event怎么用?C# Event使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Event类属于GameObjects命名空间,在下文中一共展示了Event类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
}
示例2: ApplyEffectKind
public override void ApplyEffectKind(Person person, Event e)
{
if (person.BelongedFactionWithPrincess != null)
{
person.AddHated(person.BelongedFaction.Leader);
}
}
示例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);
}
示例4: ApplyEffectKind
public override void ApplyEffectKind(Person person, Event e)
{
if (person.LocationArchitecture != null)
{
Captive captive = Captive.Create(base.Scenario, person, person.LocationArchitecture.BelongedFaction);
}
}
示例5: ApplyEffectKind
public override void ApplyEffectKind(Person person, Event e)
{
if (person.BelongedFaction != null && person.BelongedFaction.Leader != person)
{
person.Loyalty += increment;
}
}
示例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);
}
示例7: ApplyEffectKind
public override void ApplyEffectKind(Person person, Event e)
{
if (person.BelongedFaction != null)
{
person.ClosePersons.Add(person.BelongedFaction.LeaderID);
}
}
示例8: ApplyEffectKind
public override void ApplyEffectKind(Architecture a, Event e)
{
foreach (Military i in a.Militaries)
{
i.IncreaseQuantity(increment);
}
}
示例9: ApplyEffectKind
public override void ApplyEffectKind(Person person, Event e)
{
if (person.BelongedFactionWithPrincess != null)
{
person.BelongedFactionWithPrincess.Leader.AdjustRelation(person, 0, increment);
}
}
示例10: ApplyEffectKind
public override void ApplyEffectKind(Architecture a, Event e)
{
while (a.Facilities.Count > 0)
{
a.DemolishFacility(a.Facilities[0] as Facility);
}
}
示例11: ApplyEffectKind
public virtual void ApplyEffectKind(Architecture architecture, Event e)
{
foreach (Person p in architecture.Persons)
{
this.ApplyEffectKind(p, e);
}
}
示例12: ApplyEffectKind
public override void ApplyEffectKind(Person person, Event e)
{
if (person.LocationArchitecture != null)
{
person.Status = GameObjects.PersonDetail.PersonStatus.Princess;
}
}
示例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;
}
}
示例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;
}
示例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;
}
}