Example #1
0
        public LWSurface MakeSurface(string name)
        {
            LWSurface surface = new LWSurface(name);

            surfaces[name] = surface;
            surfaceList.Add(surface);
            return(surface);
        }
Example #2
0
        public LWSurface FindOrCreateSurface(string name)
        {
            if (surfaces.ContainsKey(name))
            {
                return(surfaces[name]);
            }
            LWSurface surface = new LWSurface(name);

            surfaces[name] = surface;
            surfaceList.Add(surface);
            return(surface);
        }