• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# SoG.PlayerView类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中SoG.PlayerView的典型用法代码示例。如果您正苦于以下问题:C# PlayerView类的具体用法?C# PlayerView怎么用?C# PlayerView使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



PlayerView类属于SoG命名空间,在下文中一共展示了PlayerView类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: Enter

 public override void Enter(PlayerView xOwnerView)
 {
     base.Enter(xOwnerView);
     xOwnerView.xEntity.xRenderComponent.SwitchAnimation((ushort)(520 + (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_Earth)) 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,代码行数:9,代码来源:InsectSwarmSpellCharge.cs


示例17: ArenaScoreRenderComponent

 public ArenaScoreRenderComponent(PlayerView xView, ContentManager Content)
 {
     this.fAlpha = 0f;
     this.xView = xView;
     this.txBackGround = Content.Load<Texture2D>("GUI/InGameMenu/Arena/rewards");
     this.font = FontManager.Reg7;
     this.fontName = InGameMenu.fontItemSorting;
     this.lxRewards = ChallengeMenu.GetNextRewards(3, xView.xJournalInfo.iArenaScore);
 }
开发者ID:ancientgods,项目名称:SoG,代码行数:9,代码来源:ArenaScoreRenderComponent.cs


示例18: VFX_PlayerGhostTrailControl

 public VFX_PlayerGhostTrailControl(PlayerView xPlayer, int iMaxFrames)
 {
     this.xPlayer = xPlayer;
     this.iMaxFrames = iMaxFrames;
     for (int i = 0; i < iMaxFrames; i++)
     {
         this.lxGhostImageSnatchers.Add(null);
     }
     Program.game.xEntityMaster.AddFinalUpdateDelegate(new Utility.BaseFunction(this.FinalUpdate));
 }
开发者ID:ancientgods,项目名称:SoG,代码行数:10,代码来源:VFX_PlayerGhostTrailControl.cs


示例19: CraftRecipesToDisplayRecipes

 public static List<CraftSystem.DisplayRecipe> CraftRecipesToDisplayRecipes(List<CraftSystem.CraftingRecipe> lxCraftRecipes, PlayerView xView)
 {
     List<CraftSystem.DisplayRecipe> lxDisplay = new List<CraftSystem.DisplayRecipe>();
     for (int i = 0; i < lxCraftRecipes.Count; i++)
     {
         CraftSystem.CraftingRecipe xThisRecipe = lxCraftRecipes[i];
         lxDisplay.Add(new CraftSystem.DisplayRecipe(xThisRecipe, 0f));
     }
     return lxDisplay;
 }
开发者ID:ancientgods,项目名称:SoG,代码行数:10,代码来源:CraftSystem.cs


示例20: ComparePrerequisites

 public override ISpellActivation.PrereqConditionsMet ComparePrerequisites(PlayerView xView)
 {
     SpellCharge x = new HasteSpellCharge(0, 0, 0f);
     this.iSPCost = (int)((float)x.liSPCosts[0] * x.GetCostMod(xView));
     if (xView.xEntity.xBaseStats.iEP < this.iSPCost)
     {
         return ISpellActivation.PrereqConditionsMet.NotEnoughMana;
     }
     return ISpellActivation.PrereqConditionsMet.Eligible;
 }
开发者ID:ancientgods,项目名称:SoG,代码行数:10,代码来源:_Spells_HasteActivation.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# DataAccess.DB_OPT类代码示例发布时间:2022-05-26
下一篇:
C# SoG.AttackCollisionData类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap