本文整理汇总了C#中SoG.PlayerView类的典型用法代码示例。如果您正苦于以下问题:C# PlayerView类的具体用法?C# PlayerView怎么用?C# PlayerView使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PlayerView类属于SoG命名空间,在下文中一共展示了PlayerView类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ComparePrerequisites
public override ISpellActivation.PrereqConditionsMet ComparePrerequisites(PlayerView xView)
{
SpellCharge x = new ShadowCloneSpellCharge(0, 0, 0f, this.enSwitchToWeapon, this.enTrueWeapon);
this.iSPCost = (int)((float)x.liSPCosts[0] * x.GetCostMod(xView));
if (xView.xEntity.xBaseStats.iEP < this.iSPCost)
{
bool bFound = false;
foreach (ISpellInstance xInst in Program.GetTheGame().xEntityMaster.dixActiveSpellInstances.Values)
{
if (xInst.enType == SpellCodex.SpellTypes._Skill_OneHanded_ShadowClone && (xInst as _Skills_ShadowCloneInstance).xPlayer == xView)
{
bFound = true;
}
}
if (!bFound)
{
return ISpellActivation.PrereqConditionsMet.NotEnoughMana;
}
return ISpellActivation.PrereqConditionsMet.Eligible;
}
else
{
if (xView.xEquipment.xBufferWeapon == null || xView.xEquipment.xBufferWeapon.enWeaponCategory != WeaponInfo.WeaponCategory.OneHanded)
{
return ISpellActivation.PrereqConditionsMet.NotEligible_NeedOneHand;
}
return ISpellActivation.PrereqConditionsMet.Eligible;
}
}
示例2: GetSkillupPreview
public override string GetSkillupPreview(PlayerView xPlayer, int iLevel)
{
SpellVariable.Handle enMainHandle = SpellVariable.Handle.Talent_ArcaneCollar_EPCostReduction;
string CostReduction = CAS.GetLibraryText("Menus", "InGameMenu_Stats_CostReduction");
if (iLevel == 0)
{
return string.Concat(new object[]
{
CostReduction,
"\n 0 % > ",
SpellVariable.Get(enMainHandle),
" %"
});
}
if (iLevel < (int)this.abyTierSpans[0])
{
return string.Concat(new object[]
{
CostReduction,
"\n ",
SpellVariable.Get(enMainHandle) * (float)iLevel,
" % > ",
SpellVariable.Get(enMainHandle) * (float)(iLevel + 1),
" %"
});
}
return string.Concat(new object[]
{
CostReduction,
"\n ",
SpellVariable.Get(enMainHandle) * (float)iLevel,
" %"
});
}
示例3: GetSkillupPreview
public override string GetSkillupPreview(PlayerView xPlayer, int iLevel)
{
string Bonus = CAS.GetLibraryText("Menus", "InGameMenu_Stats_BONUS");
if (iLevel == 0)
{
return string.Concat(new object[]
{
Bonus,
"\n 0 % > ",
SpellVariable.Get(SpellVariable.Handle.Talent_QuickReflexes_ProlongPercentPL),
" %"
});
}
if (iLevel < (int)this.abyTierSpans[0])
{
return string.Concat(new object[]
{
Bonus,
"\n ",
SpellVariable.Get(SpellVariable.Handle.Talent_QuickReflexes_ProlongPercentPL) * (float)iLevel,
" % > ",
SpellVariable.Get(SpellVariable.Handle.Talent_QuickReflexes_ProlongPercentPL) * (float)(iLevel + 1),
" %"
});
}
return string.Concat(new object[]
{
Bonus,
"\n ",
SpellVariable.Get(SpellVariable.Handle.Talent_QuickReflexes_ProlongPercentPL) * (float)iLevel,
" %"
});
}
示例4: PlayerDamageRecall
public void PlayerDamageRecall(PlayerView xView, int iInDamage, byte byType)
{
if (byType == 0 && !this.bOpened)
{
this.Defeat();
}
}
示例5: GetSkillupPreview
public override string GetSkillupPreview(PlayerView xPlayer, int iLevel)
{
string Bonus = CAS.GetLibraryText("Menus", "InGameMenu_Stats_BONUS");
xPlayer.xEntity.xBaseStats.GetStatByEnum(EquipmentInfo.StatEnum.MaxEP);
if (iLevel == 0)
{
return string.Concat(new object[]
{
Bonus,
"\n 0 % > ",
SpellVariable.Get(SpellVariable.Handle.Talent_FineTaste_BonusDuration),
" %"
});
}
if (iLevel < (int)this.abyTierSpans[0])
{
return string.Concat(new object[]
{
Bonus,
"\n ",
SpellVariable.Get(SpellVariable.Handle.Talent_FineTaste_BonusDuration) * (float)(iLevel - 1),
" % > ",
SpellVariable.Get(SpellVariable.Handle.Talent_FineTaste_BonusDuration) * (float)iLevel,
" %"
});
}
return string.Concat(new object[]
{
Bonus,
"\n ",
SpellVariable.Get(SpellVariable.Handle.Talent_FineTaste_BonusDuration) * (float)(iLevel - 1),
" %"
});
}
示例6: GetSkillupPreview
public override string GetSkillupPreview(PlayerView xPlayer, int iLevel)
{
SpellVariable.Handle enMainHandle = SpellVariable.Handle.Talent_SnapCast_MATKIncrease;
string Bonus = CAS.GetLibraryText("Menus", "InGameMenu_Stats_BONUS");
if (iLevel == 0)
{
return string.Concat(new object[]
{
Bonus,
"\n 0 % > ",
SpellVariable.Get(enMainHandle),
" %"
});
}
if (iLevel < (int)this.abyTierSpans[0])
{
return string.Concat(new object[]
{
Bonus,
"\n ",
SpellVariable.Get(enMainHandle) * (float)iLevel,
" % > ",
SpellVariable.Get(enMainHandle) * (float)(iLevel + 1),
" %"
});
}
return string.Concat(new object[]
{
Bonus,
"\n ",
SpellVariable.Get(enMainHandle) * (float)iLevel,
" %"
});
}
示例7: Update
public override void Update()
{
if (this.bHasTriggered)
{
return;
}
if (!this.bLocalOnly)
{
using (Dictionary<long, PlayerView>.ValueCollection.Enumerator enumerator = Program.GetTheGame().dixPlayers.Values.GetEnumerator())
{
while (enumerator.MoveNext())
{
PlayerView xView = enumerator.Current;
if (Program.GetTheGame().xCollisionMaster.TryCollision(this.colHitbox, xView.xEntity.xCollisionComponent.xMovementCollider))
{
this.xTriggerView = xView;
this.OnTrigger();
}
}
return;
}
}
if (Program.GetTheGame().xCollisionMaster.TryCollision(this.colHitbox, Program.game.xLocalPlayer.xEntity.xCollisionComponent.xMovementCollider))
{
this.xTriggerView = Program.game.xLocalPlayer;
this.OnTrigger();
}
}
示例8: GetSkillupPreview
public override string GetSkillupPreview(PlayerView xPlayer, int iLevel)
{
SpellVariable.Handle enMainHandle = SpellVariable.Handle.Talent_StaticField_ChanceToStun;
string Chance = CAS.GetLibraryText("Menus", "InGameMenu_Stats_EffectChance");
if (iLevel == 0)
{
return string.Concat(new object[]
{
Chance,
"\n 0 % > ",
SpellVariable.Get(enMainHandle),
" %"
});
}
if (iLevel < (int)this.abyTierSpans[0])
{
return string.Concat(new object[]
{
Chance,
"\n ",
SpellVariable.Get(enMainHandle) * (float)iLevel,
" % > ",
SpellVariable.Get(enMainHandle) * (float)(iLevel + 1),
" %"
});
}
return string.Concat(new object[]
{
Chance,
"\n ",
SpellVariable.Get(enMainHandle) * (float)iLevel,
" %"
});
}
示例9: GetSkillupPreview
public override string GetSkillupPreview(PlayerView xPlayer, int iLevel)
{
SpellVariable.Handle enMainHandle = SpellVariable.Handle.Talent_Fencer_ASPDIncrease;
string ASPD = CAS.GetLibraryText("Menus", "InGameMenu_Stats_ASPD");
CAS.GetLibraryText("Menus", "InGameMenu_Stats_BONUS");
int iCur = xPlayer.xEntity.xBaseStats.iAttackSPD;
if (iLevel == 0)
{
return string.Concat(new object[]
{
ASPD,
"\n ",
iCur,
" > ",
(float)iCur + SpellVariable.Get(enMainHandle)
});
}
if (iLevel < (int)this.abyTierSpans[0])
{
return string.Concat(new object[]
{
ASPD,
"\n ",
iCur,
" > ",
(float)iCur + SpellVariable.Get(enMainHandle)
});
}
return ASPD + "\n " + iCur;
}
示例10: GetSkillupPreview
public override string GetSkillupPreview(PlayerView xPlayer, int iLevel)
{
SpellVariable.Handle enMainHandle = SpellVariable.Handle.Talent_SoulEater_EPPerProc;
string EP = CAS.GetLibraryText("Menus", "InGameMenu_Stats_EP");
if (iLevel == 0)
{
return string.Concat(new object[]
{
EP,
"\n 0 > ",
SpellVariable.Get(enMainHandle),
" "
});
}
if (iLevel < (int)this.abyTierSpans[0])
{
return string.Concat(new object[]
{
EP,
"\n ",
SpellVariable.Get(enMainHandle) * (float)iLevel,
" > ",
SpellVariable.Get(enMainHandle) * (float)(iLevel + 1),
" "
});
}
return string.Concat(new object[]
{
EP,
"\n ",
SpellVariable.Get(enMainHandle) * (float)iLevel,
" "
});
}
示例11: AddCounter
private void AddCounter(PlayerView xView)
{
if (this.dxiPlayerTimers.ContainsKey(xView))
{
Dictionary<PlayerView, int> dictionary;
(dictionary = this.dxiPlayerTimers)[xView] = dictionary[xView] + 1;
if (this.dxiPlayerTimers[xView] >= 20)
{
this.dxiPlayerTimers.Remove(xView);
if (!xView.xViewStats.bIsDead)
{
xView.xEntity.xRenderComponent.SwitchAnimation(85, Animation.CancelOptions.IgnoreIfPlaying);
}
xView.xEntity.xJumpDown = this;
xView.xEntity.EnterLockedState();
xView.xEntity.xInput.Reset();
if (Program.GetTheGame().xNetworkInfo.enCurrentRole == NetworkHelperInterface.NetworkRole.Server)
{
NetOutgoingMessage om = base.CreateMessage();
om.Write(0);
om.Write(xView.iConnectionIdentifier);
om.Write(this.ibitTargetLayer);
om.Write(this.fVirtualHeightDifference);
om.Write(this.fTargetY);
base.SendMessage(om);
return;
}
}
}
else
{
this.dxiPlayerTimers[xView] = 1;
}
}
示例12: GetSkillupPreview
public override string GetSkillupPreview(PlayerView xPlayer, int iLevel)
{
SpellVariable.Handle enMainHandle = SpellVariable.Handle.Talent_Endurance_MaxEPIncreasePL;
string MaxEP = CAS.GetLibraryText("Menus", "InGameMenu_Stats_MaxEP");
CAS.GetLibraryText("Menus", "InGameMenu_Stats_BONUS");
int iCur = xPlayer.xEntity.xBaseStats.GetStatByEnum(EquipmentInfo.StatEnum.MaxEP);
if (iLevel == 0)
{
return string.Concat(new object[]
{
MaxEP,
"\n ",
iCur,
" > ",
(float)iCur + SpellVariable.Get(enMainHandle)
});
}
if (iLevel < (int)this.abyTierSpans[0])
{
return string.Concat(new object[]
{
MaxEP,
"\n ",
iCur,
" > ",
(float)iCur + SpellVariable.Get(enMainHandle)
});
}
return MaxEP + "\n " + iCur;
}
示例13: Enter
public override void Enter(PlayerView xOwnerView)
{
if (xOwnerView.xEquipment.xBufferWeapon == null || xOwnerView.xEquipment.xBufferWeapon.enWeaponCategory != WeaponInfo.WeaponCategory.OneHanded)
{
ItemCodex.ItemTypes arg_2C_0 = xOwnerView.xEquipment.enLastOneHand;
}
if (xOwnerView.xEquipment.xBufferWeapon == null || xOwnerView.xEquipment.xBufferWeapon.enWeaponCategory != WeaponInfo.WeaponCategory.OneHanded)
{
this.Abort();
return;
}
Program.GetTheGame().xWeaponAssetLibrary.SetPRCWeapon(xOwnerView.xEntity.xRenderComponent, xOwnerView.xEquipment.xBufferWeapon.enItemType);
ItemCodex.ItemTypes arg_85_0 = this.enSwitchToWeapon;
xOwnerView.xEquipment.xWeapon = xOwnerView.xEquipment.xBufferWeapon;
base.Enter(xOwnerView);
if (xOwnerView == Program.game.xLocalPlayer)
{
this.xRangeIndicator = (Program.GetTheGame()._EffectMaster_AddEffect(new SortedAnimated(Vector2.Zero, SortedAnimated.SortedAnimatedEffects._SkillEffects_OneHand_SpiritSlash_AOE_Lv1)) as SortedAnimated);
this.xRangeIndicator.xRenderComponent.xTransform = xOwnerView.xEntity.xTransform;
}
xOwnerView.xEntity.xRenderComponent.SwitchAnimation((ushort)(550 + (int)xOwnerView.xEntity.byAnimationDirection), Animation.CancelOptions.IgnoreIfPlaying, 1f + (1f - this.fChargeSpeedModifier));
this.xefPowerBalls = (Program.GetTheGame()._EffectMaster_AddEffect(new SortedAnimated(Vector2.Zero, SortedAnimated.SortedAnimatedEffects.ChargeEffect_Balls_Weapon)) as SortedAnimated);
this.xefPowerBalls.xRenderComponent.xTransform = xOwnerView.xEntity.xTransform;
this.xefPowerBalls.xRenderComponent.fVirtualHeight = xOwnerView.xEntity.xRenderComponent.fVirtualHeight + 1f;
this.lxAttachedEffects.Add(this.xefPowerBalls);
}
示例14: ComparePrerequisites
public override ISpellActivation.PrereqConditionsMet ComparePrerequisites(PlayerView xView)
{
if (xView.xEntity.xBaseStats.iEP < this.iSPCost)
{
return ISpellActivation.PrereqConditionsMet.NotEnoughMana;
}
return ISpellActivation.PrereqConditionsMet.Eligible;
}
示例15: SpecialItemGetWatcher
public SpecialItemGetWatcher(PlayerView xView, int iDuration, ItemCodex.ItemTypes enType, byte byType)
{
this.xView = xView;
this.iDuration = iDuration;
this.enType = enType;
this.byVariant = byType;
this.enWatcherType = Watcher.WatcherType.ItemGet;
}