Skip to content

Commit 254f1fa

Browse files
committed
Using EntityIndex constant
1 parent 6516fb4 commit 254f1fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Addons/Entitas.CodeGenerator/Entitas.CodeGenerator/Generators/EntityIndexGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static class ContextsExtensions {
2828

2929
const string ADD_INDEX_TEMPLATE =
3030
@" ${contextName}.AddEntityIndex(new ${IndexType}<${ContextName}Entity, ${KeyType}>(
31-
""${IndexName}"",
31+
${IndexName},
3232
${contextName}.GetGroup(${ContextName}Matcher.${IndexName}),
3333
(e, c) => { var component = c as ${ComponentType}; return component != null ? component.${MemberName} : e.${componentName}.${MemberName}; }));";
3434

0 commit comments

Comments
 (0)