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
// A custom completely managed implementation of UnityEngine.Quaternion | |
// Base is decompiled UnityEngine.Quaternion | |
// Doesn't implement methods marked Obsolete | |
// Does implicit coversions to and from UnityEngine.Quaternion | |
// Uses code from: | |
// https://raw.githubusercontent.com/mono/opentk/master/Source/OpenTK/Math/Quaternion.cs | |
// http://answers.unity3d.com/questions/467614/what-is-the-source-code-of-quaternionlookrotation.html | |
// http://stackoverflow.com/questions/12088610/conversion-between-euler-quaternion-like-in-unity3d-engine | |
// http://stackoverflow.com/questions/11492299/quaternion-to-euler-angles-algorithm-how-to-convert-to-y-up-and-between-ha |
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; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
namespace IDEntitas.CodeGenerator | |
{ |
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 UnityEngine.UI; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Entitas; | |
public interface IUIFeatureContainer : IUIContainer<IUIFeature> { } | |
public interface IUIFeature : IUIView |
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 sealed class FeatureBonusInfoSystem : IntervalExecuteSystem | |
{ | |
InternalSystem _system; | |
public FeatureBonusInfoSystem(Contexts contexts) : base(contexts, 4) | |
{ | |
_system = new InternalSystem(contexts); | |
} | |
protected override void IntervalExecute() |
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 EventReactiveSystem<TEntity> : IReactiveSystem where TEntity : class, IEntity, new() | |
{ | |
EventConfig<TEntity>[] _eventConfigs; | |
List<TEntity>[] _buffers; | |
public EventReactiveSystem(IContext<TEntity> context) | |
{ | |
_eventConfigs = GetEventConfigs(); | |
foreach (var collector in _eventConfigs) | |
collector.InitCollector(context); |
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 GameController : MonoBehaviour | |
{ | |
Systems _activeSystems; | |
Dictionary<GameState, Systems> _stateSystems = new Dictionary<GameState, Systems>(); | |
private void Start() | |
{ | |
var contexts = Contexts.sharedInstance; | |
contexts.SetAllContexts(); | |
contexts.AddEntityIndexes(); |