Exemplo n.º 1
0
        // TODO: Misleading name sounds like it's getting the list of groups instead of the list within the group.
        public List <Entity> GetGroup(string groupName)
        {
            EntityGroup group = GetEntityGroup(groupName);

            if (group == null)
            {
                return(null);
            }
            return(group.GetList());
        }
Exemplo n.º 2
0
        public EntityGroup CreateGroup(string groupName, int maxSize = 0)
        {
            EntityGroup group;

            // If group already exists, just return the handle to it.
            // TODO: How to handle differing maxSize values?
            if (entityGroups.TryGetValue(groupName, out group))
            {
                return(group);
            }

            group = new EntityGroup(maxSize);
            entityGroups.Add(groupName, group);
            return(group);
        }