prefix
stringlengths
82
32.6k
middle
stringlengths
5
470
suffix
stringlengths
0
81.2k
file_path
stringlengths
6
168
repo_name
stringlengths
16
77
context
listlengths
5
5
lang
stringclasses
4 values
ground_truth
stringlengths
5
470
using System; using System.Collections.Generic; using System.Linq; using UnityEditor.Experimental.GraphView; using UnityEditor; using UnityEngine; using UnityEngine.UIElements; using UnityEditor.UIElements; namespace QuestSystem.QuestEditor { public class QuestGraphView : GraphView { public string misi...
NodeQuestGraph nodes, QuestObjectiveGraph objective) {
nodes.objectivesRef.Remove(objective); nodes.questObjectives.Remove(objective); nodes.RefreshExpandedState(); } private void AddNextQuestObjective(NodeQuestGraph node) { var Q = new QuestObjectiveGraph(); var deleteButton = new Butto...
Editor/GraphEditor/QuestGraphView.cs
lluispalerm-QuestSystem-cd836cc
[ { "filename": "Editor/GraphEditor/QuestGraphSaveUtility.cs", "retrieved_chunk": " }\n //Remove edges\n Edges.Where(x => x.input.node == node).ToList().ForEach(edge => _targetGraphView.RemoveElement(edge));\n //Remove Node\n _targetGr...
csharp
NodeQuestGraph nodes, QuestObjectiveGraph objective) {
using BepInEx; using UnityEngine; using UnityEngine.SceneManagement; using System; using HarmonyLib; using System.IO; using Ultrapain.Patches; using System.Linq; using UnityEngine.UI; using UnityEngine.EventSystems; using System.Reflection; using Steamworks; using Unity.Audio; using System.Text; using System.Collection...
GameObject bigExplosion;
public static GameObject sandExplosion; public static GameObject virtueInsignia; public static GameObject rocket; public static GameObject revolverBullet; public static GameObject maliciousCannonBeam; public static GameObject lightningBoltSFX; public static GameO...
Ultrapain/Plugin.cs
eternalUnion-UltraPain-ad924af
[ { "filename": "Ultrapain/Patches/SisyphusInstructionist.cs", "retrieved_chunk": " esi.enraged = true;\n }\n GameObject effect = GameObject.Instantiate(Plugin.enrageEffect, __instance.transform);\n effect.transform.localScale = Vector3.one * 0.2f;\n }\n ...
csharp
GameObject bigExplosion;
using System; using System.ComponentModel; using UnityEngine; using UnityEngine.Playables; using UnityEngine.Timeline; namespace dev.kemomimi.TimelineExtension.CustomActivationTrack { [DisplayName("Custom Activation Clip")] [Serializable] public class CustomActivationClip : PlayableAsset, ITimelineClipAs...
CustomActivationPlayableBehavior data = new ();
public ClipCaps clipCaps { get { return ClipCaps.None; } } public override Playable CreatePlayable(PlayableGraph graph, GameObject go) { data.TrackIndex = TrackIndexPassingThrough; data.ClipIndex = ClipIndexPassingThrough; da...
Assets/TimelineExtension/Scripts/CustomActivationTrack/CustomActivationClip.cs
nmxi-Unity_AbstractTimelineExtention-b518049
[ { "filename": "Assets/TimelineExtension/Scripts/CustomActivationTrack/CustomActivationPlayableBehavior.cs", "retrieved_chunk": " [HideInInspector] public int TrackIndex;\n [HideInInspector] public int ClipIndex;\n [HideInInspector] public double StartTiming;\n [HideInInspector] p...
csharp
CustomActivationPlayableBehavior data = new ();
using Magic.IndexedDb.Helpers; using Magic.IndexedDb.SchemaAnnotations; using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace Magic.IndexedDb.Models { public class MagicQuery<T> where T :...
StoredMagicQuery> storedMagicQueries {
get; set; } = new List<StoredMagicQuery>(); public bool ResultsUnique { get; set; } = true; /// <summary> /// Return a list of items in which the items do not have to be unique. Therefore, you can get /// duplicate instances of an object depending on how you write your query. ...
Magic.IndexedDb/Models/MagicQuery.cs
magiccodingman-Magic.IndexedDb-a279d6d
[ { "filename": "Magic.IndexedDb/Models/StoreSchema.cs", "retrieved_chunk": " public string PrimaryKey { get; set; }\n public bool PrimaryKeyAuto { get; set; }\n public List<string> UniqueIndexes { get; set; } = new List<string>();\n public List<string> Indexes { get; set; } = new ...
csharp
StoredMagicQuery> storedMagicQueries {
using BepInEx; using UnityEngine; using UnityEngine.SceneManagement; using System; using HarmonyLib; using System.IO; using Ultrapain.Patches; using System.Linq; using UnityEngine.UI; using UnityEngine.EventSystems; using System.Reflection; using Steamworks; using Unity.Audio; using System.Text; using System.Collection...
HarmonyMethod> methodCache = new Dictionary<MethodInfo, HarmonyMethod>();
private static HarmonyMethod GetHarmonyMethod(MethodInfo method) { if (methodCache.TryGetValue(method, out HarmonyMethod harmonyMethod)) return harmonyMethod; else { harmonyMethod = new HarmonyMethod(method); methodCach...
Ultrapain/Plugin.cs
eternalUnion-UltraPain-ad924af
[ { "filename": "Ultrapain/Patches/GabrielSecond.cs", "retrieved_chunk": " chaosRemaining -= 1;\n CancelInvoke(\"CallChaoticAttack\");\n Invoke(\"CallChaoticAttack\", delay);\n }\n static MethodInfo BasicCombo = typeof(GabrielSecond).GetMethod(\"BasicCombo\", Bin...
csharp
HarmonyMethod> methodCache = new Dictionary<MethodInfo, HarmonyMethod>();
using BepInEx; using BepInEx.Configuration; using Comfort.Common; using EFT; using LootingBots.Patch.Components; using LootingBots.Patch.Util; using LootingBots.Patch; using LootingBots.Brain; using DrakiaXYZ.BigBrain.Brains; using System.Collections.Generic; using HandbookClass = GClass2775; namespace LootingBot...
Log LootLog;
// Loot Settings public static ConfigEntry<bool> UseMarketPrices; public static ConfigEntry<bool> ValueFromMods; public static ConfigEntry<bool> CanStripAttachments; public static ConfigEntry<float> PMCLootThreshold; public static ConfigEntry<float> ScavLootThreshold; ...
LootingBots/LootingBots.cs
Skwizzy-SPT-LootingBots-76279a3
[ { "filename": "LootingBots/utils/Log.cs", "retrieved_chunk": " BepInEx.Configuration.ConfigEntry<LogLevel> logLevels\n )\n {\n Logger = logger;\n LogLevels = logLevels;\n }\n public bool IsDebug()\n {\n return LogLevels.Value.Has...
csharp
Log LootLog;
using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.Input; using CommunityToolkit.Mvvm.Messaging; using Microsoft.Toolkit.Uwp.Notifications; using SupernoteDesktopClient.Core; using SupernoteDesktopClient.Extensions; using SupernoteDesktopClient.Messages; using SupernoteDesktopClient.Services.Contra...
IMediaDeviceService mediaDeviceService, ISyncService syncService) {
// services _mediaDeviceService = mediaDeviceService; _syncService = syncService; // Register a message subscriber WeakReferenceMessenger.Default.Register<MediaDeviceChangedMessage>(this, (r, m) => { UpdateSync(m.Value); }); } [RelayCommand]...
ViewModels/SyncViewModel.cs
nelinory-SupernoteDesktopClient-e527602
[ { "filename": "ViewModels/ExplorerViewModel.cs", "retrieved_chunk": " private bool _convertionInProgress = false;\n public void OnNavigatedTo()\n {\n DiagnosticLogger.Log($\"{this}\");\n LoadExplorer();\n }\n public void OnNavigatedFrom()\n {\n...
csharp
IMediaDeviceService mediaDeviceService, ISyncService syncService) {
using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.Input; using Jamesnet.Wpf.Controls; using Jamesnet.Wpf.Mvvm; using Microsoft.Win32; using Newtonsoft.Json; using objective.Core; using objective.Core.Events; using objective.Forms.Local.Models; using objective.Models; using objective.SampleData; us...
PageModel> pages;
[ObservableProperty] ObservableCollection<ReportObject> multiObject = new (); [ObservableProperty] private List<ToolItem> _subTools; private readonly IEventAggregator _eh; public MainContentViewModel(IEventAggregator eh) { _eh = eh; Tools = GetTools (); SubTools = GetSub...
objective/objective/objective.Forms/Local/ViewModels/MainContentViewModel.cs
jamesnet214-objective-0e60b6f
[ { "filename": "objective/objective/objective.Forms/Local/Models/PageModel.cs", "retrieved_chunk": "namespace objective.Forms.Local.Models\n{\n\t\tpublic partial class PageModel : ObservableBase\n\t\t{\n\t\t\t\t[ObservableProperty]\n\t\t\t\tprivate ObservableCollection<ReportObject> _reportSource;\n\t\t\t\tp...
csharp
PageModel> pages;
using NowPlaying.Models; using NowPlaying.Utils; using Playnite.SDK; using System; using System.Timers; using System.Windows.Controls; namespace NowPlaying.ViewModels { public class InstallProgressViewModel : ViewModelBase { private readonly NowPlaying plugin; private readonly
NowPlayingInstallController controller;
private readonly GameCacheManagerViewModel cacheManager; private readonly GameCacheViewModel gameCache; private readonly RoboStats jobStats; private readonly Timer speedEtaRefreshTimer; private readonly long speedEtaInterval = 500; // calc avg speed, Eta every 1/2 second ...
source/ViewModels/InstallProgressViewModel.cs
gittromney-Playnite-NowPlaying-23eec41
[ { "filename": "source/ViewModels/TopPanelViewModel.cs", "retrieved_chunk": "using NowPlaying.Utils;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nnamespace NowPlaying.ViewModels\n{\n public class TopPanelViewModel : ViewModelBase\n {\n public enum Mode { Processing, En...
csharp
NowPlayingInstallController controller;
using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.Input; using CommunityToolkit.WinUI; using Microsoft.UI.Dispatching; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using System.Windows.Input; using Windows.Media.Devices;...
IMicrophoneDeviceService _microphoneDeviceService;
private readonly ISettingsService _settingsService; private List<MicrophoneDevice> _micDevices; private readonly DispatcherQueue _dispatcherQueue; private readonly TimeSpan _updateInterval = TimeSpan.FromMilliseconds(100); private readonly Stopwatch _stopwatch; private ...
ViewModels/AudioInputControlViewModel.cs
dannyr-git-wingman-41103f3
[ { "filename": "Interfaces/IMicrophoneDeviceService.cs", "retrieved_chunk": "using System;\nusing System.Collections.Generic;\nusing System.Threading.Tasks;\nusing Windows.Devices.Enumeration;\nusing Windows.Storage;\nnamespace wingman.Interfaces\n{\n public interface IMicrophoneDeviceService\n {\n ...
csharp
IMicrophoneDeviceService _microphoneDeviceService;
using HarmonyLib; using UnityEngine; namespace Ultrapain.Patches { class GrenadeParriedFlag : MonoBehaviour { public int parryCount = 1; public bool registeredStyle = false; public bool bigExplosionOverride = false; public GameObject temporaryExplosion; public
GameObject temporaryBigExplosion;
public GameObject weapon; public enum GrenadeType { Core, Rocket, } public GrenadeType grenadeType; } class Punch_CheckForProjectile_Patch { static bool Prefix(Punch __instance, Transform __0, ref bool __result, ref bool ___hitSomet...
Ultrapain/Patches/Parry.cs
eternalUnion-UltraPain-ad924af
[ { "filename": "Ultrapain/Patches/MaliciousFace.cs", "retrieved_chunk": "using HarmonyLib;\nusing System;\nusing System.ComponentModel;\nusing UnityEngine;\nnamespace Ultrapain.Patches\n{\n class MaliciousFaceFlag : MonoBehaviour\n {\n public bool charging = false;\n }", "score": 34.6746...
csharp
GameObject temporaryBigExplosion;
#nullable enable using System.Collections.Generic; using UnityEngine; namespace Mochineko.FacialExpressions.Blink { /// <summary> /// A simple implementation of <see cref="IEyelidMorpher"/> for <see cref="skinnedMeshRenderer"/>. /// </summary> public sealed class SkinnedMeshEyelidMorpher : IEyelidMorph...
Eyelid, int> indexMap;
private readonly bool separateBoth; /// <summary> /// Creates a new instance of <see cref="SkinnedMeshEyelidMorpher"/>. /// </summary> /// <param name="skinnedMeshRenderer">Target renderer.</param> /// <param name="indexMap">Map of eyelid and blend shape index.</param> ...
Assets/Mochineko/FacialExpressions/Blink/SkinnedMeshEyelidMorpher.cs
mochi-neko-facial-expressions-unity-ab0d020
[ { "filename": "Assets/Mochineko/FacialExpressions/Blink/AnimatorEyelidMorpher.cs", "retrieved_chunk": "#nullable enable\nusing System.Collections.Generic;\nusing UnityEngine;\nnamespace Mochineko.FacialExpressions.Blink\n{\n /// <summary>\n /// A simple implementation of <see cref=\"IEyelidMorpher\"/>...
csharp
Eyelid, int> indexMap;
using FayElf.Plugins.WeChat.OfficialAccount.Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using XiaoFeng; using XiaoFeng.Http; /**************************************************************** * Copyright © (2022) www.fayelf.com All Rights R...
IndustryTemplateListResult GetAllPrivateTemplate() {
var config = this.Config.GetConfig(WeChatType.Applets); return Common.Execute(config.AppID, config.AppSecret, token => { var response = HttpHelper.GetHtml(new HttpRequest { Method = HttpMethod.Get, Address = $"h...
OfficialAccount/Template.cs
zhuovi-FayElf.Plugins.WeChat-5725d1e
[ { "filename": "OfficialAccount/Model/IndustryTemplateListResult.cs", "retrieved_chunk": " /// 行业模板列表\n /// </summary>\n public class IndustryTemplateListResult:BaseResult\n {\n #region 构造器\n /// <summary>\n /// 无参构造器\n /// </summary>\n public IndustryTemplateLi...
csharp
IndustryTemplateListResult GetAllPrivateTemplate() {
using BepInEx; using UnityEngine; using UnityEngine.SceneManagement; using System; using HarmonyLib; using System.IO; using Ultrapain.Patches; using System.Linq; using UnityEngine.UI; using UnityEngine.EventSystems; using System.Reflection; using Steamworks; using Unity.Audio; using System.Text; using System.Collection...
GameObject enrageEffect;
public static GameObject v2flashUnparryable; public static GameObject ricochetSfx; public static GameObject parryableFlash; public static AudioClip cannonBallChargeAudio; public static Material gabrielFakeMat; public static Sprite blueRevolverSprite; public sta...
Ultrapain/Plugin.cs
eternalUnion-UltraPain-ad924af
[ { "filename": "Ultrapain/Patches/SisyphusInstructionist.cs", "retrieved_chunk": " esi.enraged = true;\n }\n GameObject effect = GameObject.Instantiate(Plugin.enrageEffect, __instance.transform);\n effect.transform.localScale = Vector3.one * 0.2f;\n }\n ...
csharp
GameObject enrageEffect;
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using WindowsHook; using wingman.Interfaces; using static wingman.Helpers.KeyConverter; namespace wingman.Services { public class KeyCombination { public Keys KeyCode { get; } ...
WingmanSettings, EventHandler> _hotkeyUpHandlers;
private readonly Dictionary<WingmanSettings, EventHandler> _hotkeyDownHandlers; private readonly ISettingsService _settingsService; private readonly Dictionary<HotkeyType, KeyCombination> _cachedValidHotkeys; private readonly HashSet<KeyCombination> _currentlyPressedCombinations; ...
Services/GlobalHotkeyService.cs
dannyr-git-wingman-41103f3
[ { "filename": "Services/SettingsService.cs", "retrieved_chunk": " }\n public class SettingsService : ISettingsService\n {\n public readonly string SettingsFolderName = \"Wingman\";\n public readonly string SettingsFileName = \"Wingman.settings\";\n private readonly Dictionary<W...
csharp
WingmanSettings, EventHandler> _hotkeyUpHandlers;
#nullable enable using System; using System.Collections.Generic; using Random = UnityEngine.Random; namespace Mochineko.FacialExpressions.Blink { /// <summary> /// A generator of <see cref="EyelidAnimationFrame"/> for linear eyelid animation. /// </summary> public static class LinearEyelidAnimationGene...
Eyelid eyelid, int framesPerSecond, float duration, float closingRate) {
if (framesPerSecond <= 0) { throw new ArgumentOutOfRangeException(nameof(framesPerSecond)); } if (duration <= 0f) { throw new ArgumentOutOfRangeException(nameof(duration)); } if (closingRate is <= 0f o...
Assets/Mochineko/FacialExpressions/Blink/LinearEyelidAnimationGenerator.cs
mochi-neko-facial-expressions-unity-ab0d020
[ { "filename": "Assets/Mochineko/FacialExpressions/Blink/ProbabilisticEyelidAnimationGenerator.cs", "retrieved_chunk": " /// </summary>\n /// <param name=\"eyelid\"></param>\n /// <param name=\"framesPerSecond\"></param>\n /// <param name=\"duration\"></param>\n /// <param ...
csharp
Eyelid eyelid, int framesPerSecond, float duration, float closingRate) {
using SandBox.Conversation.MissionLogics; using SandBox.View.Missions; using System; using TaleWorlds.CampaignSystem.Conversation; using TaleWorlds.CampaignSystem; using TaleWorlds.Core; using TaleWorlds.Engine.GauntletUI; using TaleWorlds.Engine.Screens; using TaleWorlds.InputSystem; using TaleWorlds.Library; using Ta...
InworldMissionChatVM _dataSource;
private GauntletLayer _gauntletLayer; private ConversationManager _conversationManager; private MissionConversationCameraView _conversationCameraView; private MissionGauntletEscapeMenuBase _escapeView; private SpriteCategory _conversationCategory; public MissionConversa...
Bannerlord/Code/Inworld/Inworld/InworldView/InworldMissionConversationView.cs
BlocTheWorker-Inworld-Bannerlord-Mod-75242ae
[ { "filename": "Bannerlord/Code/Inworld/Inworld/InworldView/InworldMissionChatVM.cs", "retrieved_chunk": "using Inworld.InMission;\nusing Inworld.Engine;\nusing TaleWorlds.Engine.Options;\nusing TaleWorlds.InputSystem;\nnamespace Inworld.InworldView\n{\n public class InworldMissionChatVM : ViewModel\n ...
csharp
InworldMissionChatVM _dataSource;
using System; using System.Collections.Generic; using System.Text; using XiaoFeng.Xml; using System.Xml; using System.Xml.Serialization; using XiaoFeng; using XiaoFeng.IO; using XiaoFeng.Cryptography; using System.Linq; using FayElf.Plugins.WeChat.Model; using FayElf.Plugins.WeChat.Cryptotraphy; /**********************...
NewsModel news) => this.ReplayContent(MessageType.news, fromUserName, toUserName, () => {
if (news == null || news.Item == null || news.Item.Count == 0) return ""; return $"<ArticleCount>{news.Item.Count}</ArticleCount>{news.EntityToXml(OmitXmlDeclaration: true, OmitComment: true, Indented: false)}"; }); #endregion #endregion } }
OfficialAccount/Receive.cs
zhuovi-FayElf.Plugins.WeChat-5725d1e
[ { "filename": "Common.cs", "retrieved_chunk": " return fun.Invoke(aToken);\n }\n /// <summary>\n /// 运行\n /// </summary>\n /// <typeparam name=\"T\">对象</typeparam>\n /// <param name=\"path\">请求路径</param>\n /// <param name=\"data\">请求数据</param>\n ...
csharp
NewsModel news) => this.ReplayContent(MessageType.news, fromUserName, toUserName, () => {
using System; using System.Collections.Generic; using TMPro; using Unity.Collections; using Unity.Collections.LowLevel.Unsafe; using UnityEngine; using UnityEngine.Profiling; using UnityEngine.Rendering; using UnityEngine.TextCore; using static ZimGui.Core.MathHelper; namespace ZimGui.Core { public sealed unsafe cl...
Quad* ptr, int count) {
CheckAddLength(count); _quads.AddRange(ptr, count); } public ref Quad Next() { var last = _quads.Length; if (_quads.Capacity <= last + 1) EnsureCapacity(last + 1); _quads.Length = last + 1; return ref _quads.Ptr[last]; } ...
Assets/ZimGui/Core/UiMesh.cs
Akeit0-ZimGui-Unity-cc82fb9
[ { "filename": "Assets/ZimGui/IM.cs", "retrieved_chunk": " var span = ScratchBuffer.AsSpan();\n label.CopyTo(span[..label.Length]);\n var remain = span[label.Length..];\n if (value.TryFormat(remain, out var count)) {\n span = span[..(label.Length + c...
csharp
Quad* ptr, int count) {
using BepInEx; using BepInEx.Configuration; using Comfort.Common; using EFT; using LootingBots.Patch.Components; using LootingBots.Patch.Util; using LootingBots.Patch; using LootingBots.Brain; using DrakiaXYZ.BigBrain.Brains; using System.Collections.Generic; using HandbookClass = GClass2775; namespace LootingBot...
BotType> LooseItemLootingEnabled;
public static ConfigEntry<float> TimeToWaitBetweenLoot; public static ConfigEntry<float> DetectItemDistance; public static ConfigEntry<float> DetectContainerDistance; public static ConfigEntry<float> DetectCorpseDistance; public static ConfigEntry<bool> DebugLootNavigation; ...
LootingBots/LootingBots.cs
Skwizzy-SPT-LootingBots-76279a3
[ { "filename": "LootingBots/utils/BotTypes.cs", "retrieved_chunk": " return botType.HasFlag(BotType.Scav);\n }\n public static bool HasPmc(this BotType botType)\n {\n return botType.HasFlag(BotType.Pmc);\n }\n public static bool HasRaider(this BotType ...
csharp
BotType> LooseItemLootingEnabled;
using System; using System.Collections.Generic; using System.ComponentModel; using System.Reflection; using System.Text; using ULTRAKILL.Cheats; using UnityEngine; namespace Ultrapain.Patches { class Leviathan_Flag : MonoBehaviour { private LeviathanHead comp; private Animator anim; //p...
Animator ___anim, ref int ___previousAttack) {
if (!__instance.active) { return false; } Leviathan_Flag flag = __instance.GetComponent<Leviathan_Flag>(); if (flag == null) return true; if (___projectileBursting && flag.projectileAttack) { ...
Ultrapain/Patches/Leviathan.cs
eternalUnion-UltraPain-ad924af
[ { "filename": "Ultrapain/Patches/MinosPrime.cs", "retrieved_chunk": " string clipname = ___anim.GetCurrentAnimatorClipInfo(0)[0].clip.name;\n if (clipname != \"Combo\" || UnityEngine.Random.Range(0, 99.9f) > ConfigManager.minosPrimeComboExplosiveEndChance.value)\n return...
csharp
Animator ___anim, ref int ___previousAttack) {
using System; using System.Collections.Generic; using System.ComponentModel; using System.Reflection; using System.Text; using ULTRAKILL.Cheats; using UnityEngine; namespace Ultrapain.Patches { class Leviathan_Flag : MonoBehaviour { private LeviathanHead comp; private Animator anim; //p...
Vector3 RandomVector(float min, float max) {
return new Vector3(UnityEngine.Random.Range(min, max), UnityEngine.Random.Range(min, max), UnityEngine.Random.Range(min, max)); } public Vector3 targetShootPoint; private void Shoot() { Debug.Log("Attempting to shoot projectile for leviathan"); GameO...
Ultrapain/Patches/Leviathan.cs
eternalUnion-UltraPain-ad924af
[ { "filename": "Ultrapain/Plugin.cs", "retrieved_chunk": " {\n projectedPlayerPos = target.position;\n }\n else if (Physics.Raycast(target.position, MonoSingleton<PlayerTracker>.Instance.GetPlayerVelocity(), out raycastHit, MonoSingleton<PlayerTracker>.Instance...
csharp
Vector3 RandomVector(float min, float max) {
using HarmonyLib; using Mono.Cecil; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Reflection.Emit; using System.Text; using UnityEngine; namespace Ultrapain.Patches { /* u = initial, f = final, d = delta, s = speed multiplier u = 40f * Time.deltaT...
GameObject core) {
GrenadeExplosionOverride ovr = core.AddComponent<GrenadeExplosionOverride>(); ovr.normalMod = true; ovr.normalDamage = (float)ConfigManager.shotgunCoreExplosionDamage.value / 35f; ovr.normalSize = (float)ConfigManager.shotgunCoreExplosionSize.value / 6f * ConfigManager....
Ultrapain/Patches/PlayerStatTweaks.cs
eternalUnion-UltraPain-ad924af
[ { "filename": "Ultrapain/Patches/Panopticon.cs", "retrieved_chunk": " }\n }\n return code.AsEnumerable();\n }\n }\n}", "score": 20.13283643306795 }, { "filename": "Ultrapain/Patches/Parry.cs", "retrieved_chunk": " public GameObject tempor...
csharp
GameObject core) {
using HarmonyLib; using Sandbox; using System; using System.Collections.Generic; using System.Linq; using UnityEngine; using UnityEngine.AI; namespace Ultrapain.Patches { class MinosPrimeCharge { static GameObject decoy; public static void CreateDecoy() { if (decoy != null ...
Vector3 targetPosition) {
if(decoy == null) { CreateDecoy(); return; } targetPosition = Vector3.MoveTowards(targetPosition, startPosition, 5f); Vector3 currentPosition = startPosition; float distance = Vector3.Distance(startPosition, target...
Ultrapain/Patches/MinosPrime.cs
eternalUnion-UltraPain-ad924af
[ { "filename": "Ultrapain/Patches/Mindflayer.cs", "retrieved_chunk": " MonoSingleton<HookArm>.Instance.StopThrow(1f, true);\n __instance.transform.position = targetPosition;\n ___goingLeft = !___goingLeft;\n GameObject.Instantiate<GameObject>(__instance.teleportSou...
csharp
Vector3 targetPosition) {
using HarmonyLib; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Runtime.ConstrainedExecution; using UnityEngine; namespace Ultrapain.Patches { class Drone_Start_Patch { static void Postfix(Drone __instance, ref EnemyIdentifier ___eid) {...
EnemyIdentifier ___eid, ref float ___attackCooldown, int ___difficulty) {
if (___eid.enemyType != EnemyType.Drone) return; DroneFlag flag = __instance.GetComponent<DroneFlag>(); if (flag == null || flag.attackDelay < 0) return; float attackSpeedDecay = (float)(___difficulty / 2); if (___difficulty ...
Ultrapain/Patches/Drone.cs
eternalUnion-UltraPain-ad924af
[ { "filename": "Ultrapain/Patches/Virtue.cs", "retrieved_chunk": " class Virtue_SpawnInsignia_Patch\n {\n static bool Prefix(Drone __instance, ref EnemyIdentifier ___eid, ref int ___difficulty, ref Transform ___target, ref int ___usedAttacks)\n {\n if (___eid.enemyType != Enemy...
csharp
EnemyIdentifier ___eid, ref float ___attackCooldown, int ___difficulty) {
using BepInEx; using UnityEngine; using UnityEngine.SceneManagement; using System; using HarmonyLib; using System.IO; using Ultrapain.Patches; using System.Linq; using UnityEngine.UI; using UnityEngine.EventSystems; using System.Reflection; using Steamworks; using Unity.Audio; using System.Text; using System.Collection...
GameObject sisyphusDestroyExplosion;
//public static GameObject idol; public static GameObject ferryman; public static GameObject minosPrime; //public static GameObject maliciousFace; public static GameObject somethingWicked; public static Turret turret; public static GameObject turretFinalFlash; ...
Ultrapain/Plugin.cs
eternalUnion-UltraPain-ad924af
[ { "filename": "Ultrapain/Patches/SisyphusInstructionist.cs", "retrieved_chunk": " esi.enraged = true;\n }\n GameObject effect = GameObject.Instantiate(Plugin.enrageEffect, __instance.transform);\n effect.transform.localScale = Vector3.one * 0.2f;\n }\n ...
csharp
GameObject sisyphusDestroyExplosion;
using HarmonyLib; using System.Security.Cryptography; using UnityEngine; namespace Ultrapain.Patches { class SwordsMachineFlag : MonoBehaviour { public SwordsMachine sm; public Animator anim; public EnemyIdentifier eid; public bool speedingUp = false; private void Reset...
SwordsMachine __instance, bool __0) {
__instance.Enrage(); if (!__0) __instance.SwordCatch(); return false; } } class SwordsMachine_Down_Patch { static bool Prefix(SwordsMachine __instance) { if (ConfigManager.swordsMachineSecondPhaseMode.value == ConfigM...
Ultrapain/Patches/SwordsMachine.cs
eternalUnion-UltraPain-ad924af
[ { "filename": "Ultrapain/Patches/Parry.cs", "retrieved_chunk": " }\n }\n class Explosion_Collide_Patch\n {\n static float lastTime = 0;\n static bool Prefix(Explosion __instance, Collider __0)\n {\n GrenadeParriedFlag flag = __instance.gameObject.GetComponent<...
csharp
SwordsMachine __instance, bool __0) {
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Text; using System.Threading; using Microsoft.Build.Shared; using Mi...
IFileSystem fileSystem = null) {
fullPath = AttemptToShortenPath(fullPath); try { if (fileSystem == null) { fileSystem = DefaultFileSystem; } return /*Traits.Instance.CacheFileExistence*/true ? FileExistenceCache.GetOrAdd(fullPath, ...
Microsoft.Build.Shared/FileUtilities.cs
Chuyu-Team-MSBuildCppCrossToolset-6c84a69
[ { "filename": "Microsoft.Build.Shared/FileMatcher.cs", "retrieved_chunk": " private readonly GetFileSystemEntries _getFileSystemEntries;\n internal static readonly char[] directorySeparatorCharacters = FileUtilities.Slashes;\n private static readonly char[] s_invalidPathChars = Path.Get...
csharp
IFileSystem fileSystem = null) {