Skip to content

Commit

Permalink
Fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
sschmid committed Aug 14, 2015
1 parent bfe7d61 commit e18ec37
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public override string ToString() {

public class SingleEntityException : Exception {
public SingleEntityException(IMatcher matcher) :
base("Multiple entites exist matching " + matcher) {
base("Multiple entities exist matching " + matcher) {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public override string ToString() {

public class SingleEntityException : Exception {
public SingleEntityException(IMatcher matcher) :
base("Multiple entites exist matching " + matcher) {
base("Multiple entities exist matching " + matcher) {
}
}
}
2 changes: 1 addition & 1 deletion Entitas.Unity/Assets/Libraries/Entitas/Group.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public override string ToString() {

public class SingleEntityException : Exception {
public SingleEntityException(IMatcher matcher) :
base("Multiple entites exist matching " + matcher) {
base("Multiple entities exist matching " + matcher) {
}
}
}
2 changes: 1 addition & 1 deletion Entitas/Entitas/Group.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public override string ToString() {

public class SingleEntityException : Exception {
public SingleEntityException(IMatcher matcher) :
base("Multiple entites exist matching " + matcher) {
base("Multiple entities exist matching " + matcher) {
}
}
}
2 changes: 1 addition & 1 deletion PerformanceTests/PerformanceTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
<Compile Include="PerformanceTests\EntityMatcher\MatcherGetHashCode.cs" />
<Compile Include="PerformanceTests\EntityMatcher\MatcherEquals.cs" />
<Compile Include="PerformanceTests\EntityRepository\PoolCreateEntity.cs" />
<Compile Include="PerformanceTests\EntityRepository\PoolDestroyAllEntites.cs" />
<Compile Include="PerformanceTests\EntityRepository\PoolGetGroup.cs" />
<Compile Include="PerformanceTests\EntityRepository\PoolOnEntityReplaced.cs" />
<Compile Include="PerformanceTests\EntityRepository\PoolGetEntities.cs" />
Expand All @@ -73,6 +72,7 @@
<Compile Include="PerformanceTests\Properties\PropertiesCreate.cs" />
<Compile Include="PerformanceTests\DataStructures\QueueDequeue.cs" />
<Compile Include="PerformanceTests\DataStructures\ListQueue.cs" />
<Compile Include="PerformanceTests\EntityRepository\PoolDestroyAllEntities.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Entitas;

public class PoolDestroyAllEntites : IPerformanceTest {
public class PoolDestroyAllEntities : IPerformanceTest {
const int n = 100000;
Pool _pool;

Expand Down
4 changes: 2 additions & 2 deletions PerformanceTests/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public static void Main(string[] args) {
Thread.Sleep(1500);

run<PoolCreateEntity>();
run<PoolDestroyAllEntites>();
run<PoolDestroyAllEntities>();
run<PoolGetGroup>();
run<PoolGetEntities>();
run<PoolHasEntity>();
Expand Down Expand Up @@ -56,7 +56,7 @@ public static void Main(string[] args) {

// Running performance tests...
// PoolCreateEntity: 68 ms
// PoolDestroyAllEntites: 49 ms
// PoolDestroyAllEntities: 49 ms
// PoolGetGroup: 5 ms
// PoolGetEntities: 23 ms
// PoolHasEntity: 9 ms
Expand Down
6 changes: 3 additions & 3 deletions Tests/Tests/Entitas/Fixtures/EntityEmittingSubSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
public class EntityEmittingSubSystem : IReactiveSystem {
public int didExecute { get { return _didExecute; } }

public Entity[] entites { get { return _entites; } }
public Entity[] entities { get { return _entities; } }

readonly Pool _pool;
int _didExecute;
Entity[] _entites;
Entity[] _entities;

public EntityEmittingSubSystem(Pool pool) {
_pool = pool;
Expand All @@ -20,7 +20,7 @@ public EntityEmittingSubSystem(Pool pool) {

public void Execute(List<Entity> entities) {
_pool.CreateEntity().AddComponent(CID.ComponentA, new ComponentA());
_entites = entities.ToArray();
_entities = entities.ToArray();
_didExecute++;
}
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/Tests/Entitas/describe_Group.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ void before_each() {
}

void when_created() {
it["doesn't have entites which haven't been added"] = () => {
it["doesn't have entities which haven't been added"] = () => {
_group.GetEntities().should_be_empty();
};

Expand Down
6 changes: 3 additions & 3 deletions Tests/Tests/Entitas/describe_GroupObserver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void when_created() {
entities.should_contain(e);
};

it["collects entites only once"] = () => {
it["collects entities only once"] = () => {
var e = pool.CreateEntity();
e.AddComponentA();
e.RemoveComponentA();
Expand Down Expand Up @@ -84,15 +84,15 @@ void when_created() {
entities.should_contain(e2);
};

it["clears collected entites"] = () => {
it["clears collected entities"] = () => {
var e = pool.CreateEntity();
e.AddComponentA();

observer.ClearCollectedEntities();
observer.collectedEntities.should_be_empty();
};

it["removes destroyed entites from collectedEntities"] = () => {
it["removes destroyed entities from collectedEntities"] = () => {
var e = pool.CreateEntity();
e.AddComponentA();

Expand Down
6 changes: 3 additions & 3 deletions Tests/Tests/Entitas/describe_Pool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ void when_created() {
_pool.Count.should_be(1);
};

it["doesn't have entites that were not created with CreateEntity()"] = () => {
it["doesn't have entities that were not created with CreateEntity()"] = () => {
_pool.HasEntity(this.CreateEntity()).should_be_false();
};

it["has entites that were created with CreateEntity()"] = () => {
it["has entities that were created with CreateEntity()"] = () => {
_pool.HasEntity(_pool.CreateEntity()).should_be_true();
};

Expand All @@ -64,7 +64,7 @@ void when_created() {
e.GetComponents().should_be_empty();
};

it["destroys all entites"] = () => {
it["destroys all entities"] = () => {
var e = _pool.CreateEntity();
e.AddComponentA();
_pool.CreateEntity();
Expand Down
14 changes: 7 additions & 7 deletions Tests/Tests/Entitas/describe_ReactiveSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ void when_created() {
e.AddComponentA();
e.AddComponentB();
reactiveSystem.Execute();
sys.entites.Length.should_be(1);
sys.entities.Length.should_be(1);
reactiveSystem.Execute();
sys.entites.Length.should_be(1);
sys.entities.Length.should_be(1);
};
};

Expand Down Expand Up @@ -199,7 +199,7 @@ void when_created() {

context["ensure components matcher"] = () => {

it["only passes in entites matching required matcher"] = () => {
it["only passes in entities matching required matcher"] = () => {
var ensureSubSystem = new ReactiveEnsureSubSystemSpy(
allOfAB(),
GroupEventType.OnEntityAdded,
Expand All @@ -225,7 +225,7 @@ void when_created() {
ensureSubSystem.entities.should_contain(eABC);
};

it["only passes in entites matching required matcher (multi reactive)"] = () => {
it["only passes in entities matching required matcher (multi reactive)"] = () => {
var matchers = new IMatcher[] {
Matcher.AllOf(new [] { CID.ComponentA }),
Matcher.AllOf(new [] { CID.ComponentB })
Expand Down Expand Up @@ -285,7 +285,7 @@ void when_created() {
};

context["exlude components"] = () => {
it["only passes in entites not matching matcher"] = () => {
it["only passes in entities not matching matcher"] = () => {
var excludeSubSystem = new ReactiveExcludeSubSystemSpy(
allOfAB(),
GroupEventType.OnEntityAdded,
Expand All @@ -307,7 +307,7 @@ void when_created() {
excludeSubSystem.entities.should_contain(eAB);
};

it["only passes in entites not matching required matcher (multi reactive)"] = () => {
it["only passes in entities not matching required matcher (multi reactive)"] = () => {
var matchers = new IMatcher[] {
Matcher.AllOf(new [] { CID.ComponentA }),
Matcher.AllOf(new [] { CID.ComponentB })
Expand Down Expand Up @@ -340,7 +340,7 @@ void when_created() {
};

context["ensure / exlude components mix"] = () => {
it["only passes in entites"] = () => {
it["only passes in entities"] = () => {
var ensureExcludeSystem = new ReactiveEnsureExcludeSubSystemSpy(
allOfAB(),
GroupEventType.OnEntityAdded,
Expand Down

0 comments on commit e18ec37

Please sign in to comment.