Beispiel #1
0
        private static ArtGroup CreateGroup(ArtGroupTag egroup, Color color)
        {
            var group = new ArtGroup(egroup, color);

            groups[(int)group.artGroupTag] = group;
            return(group);
        }
Beispiel #2
0
        /// <summary>
        ///     Initialize all groups
        /// </summary>
        public static void Initialize()
        {
            if (isInitialized)
            {
                return;
            }
            isInitialized = true;

            Globals   = CreateGroup(ArtGroupTag.Globals, Color.white);
            Gameplay  = CreateGroup(ArtGroupTag.GamePlay, Color.green);
            Camera    = CreateGroup(ArtGroupTag.Camera, Color.red);
            Sounds    = CreateGroup(ArtGroupTag.Sounds, Color.blue);
            Rendering = CreateGroup(ArtGroupTag.Rendering, Color.magenta);
            Particles = CreateGroup(ArtGroupTag.Particles, Color.magenta);
        }