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 System.Runtime.InteropServices; | |
| using BenchmarkDotNet.Attributes; | |
| [MemoryDiagnoser] | |
| public unsafe class UnsafeArray | |
| { | |
| private const int Count = 100_000_000; | |
| private int* arrayPtr; |
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
| public class PlayerModel | |
| { | |
| public ReactiveProperty<int> Score { get; } = new(); | |
| } | |
| public class GameModel | |
| { | |
| public ReactiveCollection<PlayerModel> Players { get; } = new(); | |
| } |
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
| // StringEnum, Maxwell Keonwoo Kang <[email protected]>, 2022 | |
| using System; | |
| using UnityEngine; | |
| namespace StringEnum | |
| { | |
| [Serializable] | |
| public struct StringEnum<T> : IEquatable<T>, IEquatable<StringEnum<T>>, ISerializationCallbackReceiver | |
| where T : struct, Enum |
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.Collections.Generic; | |
| using UnityEngine; | |
| // this is for void events, other events will also implement this | |
| public interface IEventParam { } | |
| // sample event param | |
| public interface IPositionalEventParam : IEventParam | |
| { | |
| Vector3 Position { get; } |
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
| resources: | |
| - https://github.com/cert-manager/cert-manager/releases/download/v1.8.0/cert-manager.yaml | |
| patchesJson6902: | |
| # https://github.com/cert-manager/cert-manager/issues/3338 | |
| # https://github.com/cert-manager/cert-manager/issues/3717 | |
| # Credit to @lnhrdt on comment | |
| - target: | |
| group: rbac.authorization.k8s.io | |
| version: v1 |