internal static void BuildGroupedEntityViews(int entityID, int groupID, Dictionary <int, Dictionary <Type, ITypeSafeList> > groupEntityViewsByType, Dictionary <Type, ITypeSafeList> entityViewsByType, IEntityDescriptorInfo eentityViewsToBuildDescriptor, object[] implementors) { var entityViewsToBuildDescriptor = eentityViewsToBuildDescriptor as EntityDescriptorInfo; Dictionary <Type, ITypeSafeList> groupedEntityViewsTyped; if (groupEntityViewsByType.TryGetValue(groupID, out groupedEntityViewsTyped) == false) { groupedEntityViewsTyped = new Dictionary <Type, ITypeSafeList>(); groupEntityViewsByType.Add(groupID, groupedEntityViewsTyped); } InternalBuildEntityViews(entityID, groupedEntityViewsTyped, entityViewsToBuildDescriptor, implementors); var removeEntityView = EntityView <EntityInfoView> .BuildEntityView(entityID); removeEntityView.groupID = groupID; removeEntityView.isInAGroup = true; removeEntityView.entityViews = entityViewsToBuildDescriptor.entityViewsToBuild; AddEntityInfoView(entityViewsByType, removeEntityView); }
internal static void BuildEntityViews(int entityID, Dictionary <Type, ITypeSafeList> entityViewsByType, IEntityDescriptorInfo eentityViewsToBuildDescriptor, object[] implementors) { var entityViewsToBuildDescriptor = eentityViewsToBuildDescriptor as EntityDescriptorInfo; InternalBuildEntityViews(entityID, entityViewsByType, entityViewsToBuildDescriptor, implementors); var removeEntityView = EntityView <EntityInfoView> .BuildEntityView(entityID); removeEntityView.entityViews = entityViewsToBuildDescriptor.entityViewsToBuild; AddEntityInfoView(entityViewsByType, removeEntityView); }