#Mac OS X
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 Entitas; | |
| using UnityEngine; | |
| public class TimerSystem : IExecuteSystem, ICleanupSystem | |
| { | |
| readonly IGroup<GameEntity> _timers; | |
| readonly IGroup<GameEntity> _timerCompletes; | |
| readonly GameContext _context; | |
| public TimerSystem(Contexts contexts) |
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
| void Start() | |
| { | |
| // ... | |
| _contexts.game.OnEntityCreated += AddId; | |
| _contexts.input.OnEntityCreated += AddId; | |
| // ... | |
| } | |
| private void AddId(IContext context, IEntity entity) | |
| { |
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
| <?php | |
| declare(strict_types=1); | |
| namespace Core\Domain\Time; | |
| use DateTimeImmutable; | |
| use DateTimeZone; | |
| use Generator; | |
| use Iterator; |
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 interface IApplicationService : IService | |
| { | |
| HashSet<string> GetValidScenes(); | |
| void Load(string sceneName, Action<string, float> onProgress, Action<string> onComplete); | |
| void Unload(string sceneName, Action<string, float> onProgress, Action<string> onComplete); | |
| void Quit(); | |
| } |
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 System.IO; | |
| using UnityEngine.SceneManagement; | |
| public static class SceneHelpers | |
| { | |
| public static string[] GetValidSceneNames() | |
| { |
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 abstract class FSMState<T_Data, T_Id> | |
| { | |
| public abstract T_Id id { get; protected set; } | |
| public virtual void OnEnter(T_Data data) { } | |
| public virtual void OnUpdate(T_Data data) { } | |
| public virtual void OnExit(T_Data data) { } | |
| public delegate void TransitionEventHandler(T_Id id); | |
| public event TransitionEventHandler TransitionEvent; |