当前位置: 首页>>代码示例>>C#>>正文


C# SoG.PlayerView类代码示例

本文整理汇总了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;
     }
 }
开发者ID:ancientgods,项目名称:SoG,代码行数:29,代码来源:_Skills_ShadowCloneActivation.cs

示例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,
         " %"
     });
 }
开发者ID:ancientgods,项目名称:SoG,代码行数:34,代码来源:Talent_ArcaneCollar.cs

示例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,
         " %"
     });
 }
开发者ID:ancientgods,项目名称:SoG,代码行数:33,代码来源:Talent_QuickReflexes.cs

示例4: PlayerDamageRecall

 public void PlayerDamageRecall(PlayerView xView, int iInDamage, byte byType)
 {
     if (byType == 0 && !this.bOpened)
     {
         this.Defeat();
     }
 }
开发者ID:ancientgods,项目名称:SoG,代码行数:7,代码来源:RogueLikePerfectGuardChallange.cs

示例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),
         " %"
     });
 }
开发者ID:ancientgods,项目名称:SoG,代码行数:34,代码来源:Talent_FineTaste.cs

示例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,
         " %"
     });
 }
开发者ID:ancientgods,项目名称:SoG,代码行数:34,代码来源:Talent_SnapCast.cs

示例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();
     }
 }
开发者ID:ancientgods,项目名称:SoG,代码行数:28,代码来源:PlayerViewGroundTrigger.cs

示例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,
         " %"
     });
 }
开发者ID:ancientgods,项目名称:SoG,代码行数:34,代码来源:Talent_StaticField.cs

示例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;
 }
开发者ID:ancientgods,项目名称:SoG,代码行数:30,代码来源:Talent_Fencer.cs

示例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,
         " "
     });
 }
开发者ID:ancientgods,项目名称:SoG,代码行数:34,代码来源:Talent_SoulEater.cs

示例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;
     }
 }
开发者ID:ancientgods,项目名称:SoG,代码行数:34,代码来源:JumpDown.cs

示例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;
 }
开发者ID:ancientgods,项目名称:SoG,代码行数:30,代码来源:Talent_Endurance.cs

示例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);
 }
开发者ID:ancientgods,项目名称:SoG,代码行数:26,代码来源:SpiritSlashSpellCharge.cs

示例14: ComparePrerequisites

 public override ISpellActivation.PrereqConditionsMet ComparePrerequisites(PlayerView xView)
 {
     if (xView.xEntity.xBaseStats.iEP < this.iSPCost)
     {
         return ISpellActivation.PrereqConditionsMet.NotEnoughMana;
     }
     return ISpellActivation.PrereqConditionsMet.Eligible;
 }
开发者ID:ancientgods,项目名称:SoG,代码行数:8,代码来源:_Spells_HealActivation.cs

示例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;
 }
开发者ID:ancientgods,项目名称:SoG,代码行数:8,代码来源:SpecialItemGetWatcher.cs


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