本文整理汇总了C#中Aura类的典型用法代码示例。如果您正苦于以下问题:C# Aura类的具体用法?C# Aura怎么用?C# Aura使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Aura类属于命名空间,在下文中一共展示了Aura类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddAura
public override void AddAura(Aura aura, bool start)
{
base.AddAura(aura, start);
OnAuraAddedOrRemoved();
if (aura.Spell.IsPassive)
{
if (aura.Spell.HasItemRequirements)
{
ItemRestrictedAuras.Add(aura);
}
if (aura.Spell.IsModalShapeshiftDependentAura)
{
ShapeshiftRestrictedAuras.Add(aura);
}
if (aura.Spell.RequiredCasterAuraState != 0)
{
AuraStateRestrictedAuras.Add(aura);
}
}
if (aura.Spell.HasAuraDependentEffects)
{
AurasWithAuraDependentEffects.Add(aura);
}
}
开发者ID:MeaNone,项目名称:WCell,代码行数:25,代码来源:PlayerAuraCollection.cs示例2: ObtainAuraRecord
public static AuraRecord ObtainAuraRecord(Aura aura)
{
var record = AuraRecordPool.Obtain();
record.SyncData(aura);
return record;
}
开发者ID:remixod,项目名称:netServer,代码行数:7,代码来源:AuraRecord.cs示例3: Cancel
protected internal override void Cancel(Aura aura)
{
base.Cancel(aura);
if (aura.Spell.IsPassive && aura.Spell.HasItemRequirements)
{
ItemRestrictedAuras.Remove(aura);
}
}
开发者ID:Skizot,项目名称:WCell,代码行数:8,代码来源:PlayerAuraCollection.cs示例4: NotifyAuraRemoved
internal void NotifyAuraRemoved(Aura aura)
{
var evt = AuraRemoved;
if (evt != null)
{
evt(aura);
}
}
开发者ID:KroneckerX,项目名称:WCell,代码行数:8,代码来源:Spell.Events.cs示例5: AddAura
public override void AddAura(Aura aura, bool update)
{
base.AddAura(aura, update);
if (aura.Spell.IsPassive && aura.Spell.HasItemRequirements)
{
ItemRestrictedAuras.Add(aura);
}
}
开发者ID:Skizot,项目名称:WCell,代码行数:8,代码来源:PlayerAuraCollection.cs示例6: Start
void Start()
{
transform.parent = GameObject.Find ("Baddies").transform;
Aura tempAura = transform.Find ("Aura").GetComponent<Aura>();
tempAura.owner = gameObject;
aura = tempAura;
gameObject.name = "Bear " + Random.Range (0,99999);
}
开发者ID:eiseneker,项目名称:ghost-game,代码行数:8,代码来源:ObstacleBear.cs示例7: Remove
protected override void Remove(bool cancelled)
{
if (activeToggleAura != null)
{
// remove aura
activeToggleAura.Cancel();
activeToggleAura = null;
}
}
开发者ID:ebakkedahl,项目名称:WCell,代码行数:9,代码来源:ToggleAuraHandler.cs示例8: SendAuraUpdate
public static void SendAuraUpdate(Unit owner, Aura aura)
{
using (var packet = new RealmPacketOut(RealmServerOpCode.SMSG_AURA_UPDATE))
{
owner.EntityId.WritePacked(packet);
WriteAura(aura, packet);
owner.SendPacketToArea(packet);
}
}
开发者ID:Skizot,项目名称:WCell,代码行数:11,代码来源:AuraHandler.cs示例9: AddAura
public void AddAura(Aura aura)
{
foreach (var oldAura in Auras) {
if (aura.Name == oldAura.Name && aura.Amount == oldAura.Amount) {
oldAura.Duration = aura.Duration;
return;
}
}
Auras.Add(aura);
RecalculateAttribute(aura.Attribute);
}
开发者ID:ndssia,项目名称:Corsair3,代码行数:11,代码来源:Unit.cs示例10: OnDebuff
/// <summary>
/// Called when this Unit got the given debuff by the given SpellCast
/// </summary>
/// <param name="cast"></param>
internal void OnDebuff(SpellCast cast, Aura debuff)
{
// force combat mode
IsInCombat = true;
var evt = Debuff;
if (evt != null)
{
evt(this, cast, debuff);
}
}
开发者ID:pallmall,项目名称:WCell,代码行数:15,代码来源:UnitEvents.cs示例11: Start
// Use this for initialization
void Start () {
if (target == null) {
moveToPlayer();
}
aura = Instantiate(auraPrefab).GetComponent<Aura> ();
aura.gameObject.transform.SetParent (this.transform);
aura.transform.localPosition = Vector3.zero;
setMobSizeAndSprite ();
}
开发者ID:TammiLion,项目名称:TacoTinder,代码行数:12,代码来源:Mob.cs示例12: MoveMe
void MoveMe(Aura aura)
{
movedBy = aura;
if(attempts < 5){
Vector3 newPosition = owner.transform.position;
newPosition.y = Random.Range (-2f, 2f);
owner.transform.position = newPosition;
attempts++;
}else{
Destroy (owner);
}
}
开发者ID:eiseneker,项目名称:ghost-game,代码行数:12,代码来源:Aura.cs示例13: Cancel
protected internal override void Cancel(Aura aura)
{
base.Cancel(aura);
if (aura.Spell.IsPassive)
{
if (aura.Spell.HasItemRequirements)
{
ItemRestrictedAuras.Remove(aura);
}
if (aura.Spell.AllowedShapeshiftMask != 0)
{
ShapeshiftRestrictedAuras.Add(aura);
}
}
}
开发者ID:ray2006,项目名称:WCell,代码行数:15,代码来源:PlayerAuraCollection.cs示例14: AddAura
public override void AddAura(Aura aura, bool update)
{
base.AddAura(aura, update);
if (aura.Spell.IsPassive)
{
if (aura.Spell.HasItemRequirements)
{
ItemRestrictedAuras.Add(aura);
}
if (aura.Spell.AllowedShapeshiftMask != 0)
{
ShapeshiftRestrictedAuras.Add(aura);
}
}
}
开发者ID:ray2006,项目名称:WCell,代码行数:15,代码来源:PlayerAuraCollection.cs示例15: CheckValidTarget
public override SpellFailedReason CheckValidTarget(WorldObject target)
{
if (Effect.Spell.RequiredTargetAuraState == AuraState.RejuvenationOrRegrowth)
{
// consume Reju or Regrowth and apply its full effect at once
toConsume = ((Unit)target).Auras.FindFirst((aura) =>
{
return aura.Spell.IsRejuvenationOrRegrowth && toConsume.TimeLeft > 100;
});
if (toConsume == null)
{
return SpellFailedReason.TargetAurastate;
}
}
return SpellFailedReason.Ok;
}
开发者ID:WCellFR,项目名称:WCellFR,代码行数:16,代码来源:Heal.cs本文标签属性:
示例:示例英语
代码:代码转换器