Skip to content

Commit

Permalink
Using EntityIndex constant
Browse files Browse the repository at this point in the history
  • Loading branch information
sschmid committed Mar 14, 2017
1 parent 6516fb4 commit 254f1fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static class ContextsExtensions {

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

Expand Down

0 comments on commit 254f1fa

Please sign in to comment.