This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Godot; | |
| using System.Collections.Generic; | |
| using GodotTask; | |
| namespace Game; | |
| public static class NodeExtensions | |
| { | |
| private static Variant s_name = Variant.CreateFrom("name"); | |
| private static Variant s_signal = Variant.CreateFrom("signal"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Godot; | |
| using System; | |
| using System.Text; | |
| using System.Collections.Generic; | |
| namespace Game; | |
| public class InputConfig | |
| { | |
| public event Action SettingsChanged; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define JOBS_ENABLED | |
| #define JOBS_IN_EDITOR | |
| //#define ONE_JOB_AT_TIME | |
| using Godot; | |
| using System; | |
| using System.Collections.Generic; | |
| using Fractural.Tasks; | |
| using ThreadLoadStatus = Godot.ResourceLoader.ThreadLoadStatus; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // for using MessagePack-CSharp with Godot | |
| // see: https://github.com/MessagePack-CSharp/MessagePack-CSharp | |
| using System; | |
| using System.Buffers; | |
| using MessagePack; | |
| using MessagePack.Formatters; | |
| using Godot; | |
| namespace MessagePack.Godot; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Reflection; | |
| using UnityEngine; | |
| using UnityEditor; | |
| namespace Game.Ed.Common | |
| { | |
| [InitializeOnLoad] | |
| public static class AutoDismissPackagesWarning | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine.UIElements; | |
| namespace GameEditor | |
| { | |
| // base class for game editors shown in the game editor window | |
| public class GameEdContent | |
| { | |
| // The label is shown in the menu list and is also used as a heading in the right pane | |
| public virtual string Label { get; } = "Unknown"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private static readonly int SplitterHash = "VerticalSplitterControl".GetHashCode(); | |
| /// <summary> Draw a splitter. Returns a delta of how far splitter was dragged during this frame. </summary> | |
| public static float VerticalSplitter() | |
| { | |
| float delta = 0f; | |
| Event ev = Event.current; | |
| Rect r = GUILayoutUtility.GetRect(5f, 1f, GUILayout.ExpandHeight(true), GUILayout.ExpandWidth(false)); | |
| int id = GUIUtility.GetControlID(SplitterHash, FocusType.Passive, r); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using UnityEditor; | |
| [InitializeOnLoad] | |
| public class UnityEditorAutoGridSnap | |
| { | |
| private static bool autoSnap = false; | |
| private static Vector3 prevTrPos = Vector3.zero; | |
| static UnityEditorAutoGridSnap() |