From 720a90549c7320ab1c21a3cd91f3ca59e1299e75 Mon Sep 17 00:00:00 2001 From: copygirl Date: Tue, 16 May 2023 10:39:49 +0200 Subject: [PATCH] Change $This variable to $this --- src/gaemstone.ECS/Rule.cs | 4 ++-- src/gaemstone.ECS/Term.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gaemstone.ECS/Rule.cs b/src/gaemstone.ECS/Rule.cs index 1234915..ee10157 100644 --- a/src/gaemstone.ECS/Rule.cs +++ b/src/gaemstone.ECS/Rule.cs @@ -52,9 +52,9 @@ public unsafe class Rule internal VariableCollection(ecs_rule_t* handle) { - // Find the $This variable, if the rule has one. + // Find the $this variable, if the rule has one. var thisIndex = ecs_filter_find_this_var(ecs_rule_get_filter(handle)); - if (thisIndex >= 0) _variables.Add(new(thisIndex, "This")); + if (thisIndex >= 0) _variables.Add(new(thisIndex, "this")); // Find all the other "accessible" variables. var count = ecs_rule_var_count(handle); diff --git a/src/gaemstone.ECS/Term.cs b/src/gaemstone.ECS/Term.cs index 79b174a..5690cf4 100644 --- a/src/gaemstone.ECS/Term.cs +++ b/src/gaemstone.ECS/Term.cs @@ -61,7 +61,7 @@ public enum TermOperKind public class TermId { - public static TermId This { get; } = new("$This"); + public static TermId This { get; } = new("$this"); public Entity Id { get; } public string? Name { get; }