This file contains 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; | |
using Zenject; | |
public class DummyGameController : MonoBehaviour | |
{ | |
Systems _systems; | |
[Inject] private Contexts _contexts; | |
[Inject] private DummySystem _dummySystem; |
This file contains 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 <iostream> | |
using namespace std; | |
void main() | |
{ | |
cout << "이런거..?" << endl; | |
} |
This file contains 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; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using Entitas; | |
public class MakeRandomDamageables : IInitializeSystem | |
{ | |
private Contexts _contexts; | |
public MakeRandomDamageables(Contexts contexts) |
This file contains 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 FireDamageSystem : IExecuteSystem | |
{ | |
readonly IGroup<GameEntity> _haveFireEntities; | |
public FireDamageSystem(Contexts contexts) | |
{ | |
_haveFireEntities = contexts.game.GetGroup(GameMatcher.Fire); |
This file contains 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.Diagnostics; | |
using Newtonsoft.Json; | |
using NUnit.Framework; | |
namespace UnitTestProject | |
{ | |
internal class Test_ComponentGenerator | |
{ | |
[Test] |
This file contains 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.Linq; | |
using UnityEngine; | |
using Entitas; | |
using UnityEngine.Tilemaps; | |
using Zenject; | |
/// <summary> |
This file contains 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 NUnit.Framework; | |
using Zenject; | |
using Entitas; | |
namespace UnitTestProject.EntitasSystems | |
{ | |
class Test_AgingSystem : ZenjectUnitTestFixture | |
{ | |
[Inject] private Contexts _contexts; |
This file contains 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 System.Diagnostics; | |
using System.Linq; | |
using NUnit.Framework; | |
using Zenject; | |
namespace UnitTestProject | |
{ | |
[TestFixture] | |
[Category("")] |
This file contains 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
/// <summary> | |
/// split string with chunkSize, discard remainings | |
/// </summary> | |
public static class StringExtension | |
{ | |
public static IEnumerable<string> Split(this string str, int chunkSize) | |
{ | |
return Enumerable.Range(0, str.Length / chunkSize) | |
.Select(i => str.Substring(i * chunkSize, chunkSize)); | |
} |