|
|
@ -52,9 +52,9 @@ public unsafe class Rule<TContext> |
|
|
|
|
|
|
|
|
|
|
|
internal VariableCollection(ecs_rule_t* handle) |
|
|
|
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)); |
|
|
|
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. |
|
|
|
// Find all the other "accessible" variables. |
|
|
|
var count = ecs_rule_var_count(handle); |
|
|
|
var count = ecs_rule_var_count(handle); |
|
|
|