Change $This variable to $this

main
copygirl 12 months ago
parent 1dca1e7988
commit 720a90549c
  1. 4
      src/gaemstone.ECS/Rule.cs
  2. 2
      src/gaemstone.ECS/Term.cs

@ -52,9 +52,9 @@ public unsafe class Rule<TContext>
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);

@ -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; }

Loading…
Cancel
Save