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
| #include "crank_indicator.h" | |
| int clockwise = 1; | |
| int crankIndicatorY = 210; | |
| int textOffset = 76; | |
| unsigned currentScale = 1; | |
| int currentFrame = 1; | |
| int frameCount = 0; | |
| int textFrameCount = 14; |
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
| #include "dll_loader.h" | |
| #include <iostream> | |
| static std::vector<DLLInfo> g_libraries; | |
| static std::string GetPlatformFolder() | |
| { | |
| #ifdef NDEBUG | |
| return R"(\x64\Release\)"; | |
| #else |
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
| #include "SparseSet.h" | |
| void SparseSet::insert(int64_t value) | |
| { | |
| ASSERT(!contains(value)); | |
| m_dense_array[m_dense_head] = value; | |
| m_sparse_array[value] = m_dense_head; | |
| m_dense_head++; | |
| } |
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.Collections.Generic; | |
| using UnityEngine; | |
| using Object = UnityEngine.Object; | |
| public class FloatEffectorStack | |
| { | |
| private readonly Dictionary<Object, float> _effectors; | |
| private readonly Func<float, float, float> _compareFunction; | |
| private readonly float _defaultValue = 0; |
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.Runtime.CompilerServices; | |
| using UnityEngine; | |
| /// <summary> | |
| /// A generic Singleton Monobehaviour will all the safety systems already set up. | |
| /// </summary> | |
| /// <typeparam name="BehaviourType">This is generally going to be your class name that will become the singleton.</typeparam> | |
| public abstract class SingletonBehaviour<BehaviourType> : MonoBehaviour where BehaviourType : class | |
| { | |
| public static BehaviourType Instance |