public void Prepare(PipelineBakeContext context)
        {
            var na = context.Content.Attributes.GetAttribute <ShaderNamesAttribute>();

            if (na == null)
            {
                context.Failed = true;
                return;
            }

            var dir = System.IO.Path.GetDirectoryName(context.RawContentDiskPath);

            context.Depend("vs", dir + "/" + na.VsName + ".glsl");
            context.Depend("fs", dir + "/" + na.FsName + ".glsl");
        }
Ejemplo n.º 2
0
        public void Prepare(PipelineBakeContext context)
        {
            var path = context.RawContentDiskPath;

            path += ".png";
            context.Depend(path);
        }
        public void Prepare(PipelineBakeContext context)
        {
            var path = context.RawContentDiskPath;

            path += ".txt";
            context.Depend("source", path);
        }
Ejemplo n.º 4
0
        public bool Bake(PipelineBakeContext context)
        {
            Console.WriteLine("AnimSet.Bake: " + context.ContentPath);

            var path = context.RawContentDiskPath;

            path += ".txt";
            context.Depend(path);

            //I dont know... I dont know...
            if (!File.Exists(path))
            {
                return(false);
            }

            var img = ImageBuffer.Create(TextureFormat.Color, 64, 64);

            img.Serialize(context.BakedWriter);

            var cellLines = File.ReadAllLines(path);

            context.BakedWriter.Write(cellLines.Length);
            foreach (var line in cellLines)
            {
                context.BakedWriter.Write(line);
            }

            return(true);
        }
        public void Prepare(PipelineBakeContext context)
        {
            var configFile = context.Content as ConfigFile;

            //we're going to need reflection eventually...
            configFile.Reflect();
            context.Depend("source", context.RawContentDiskPath + ".ini");
        }
Ejemplo n.º 6
0
 public void Prepare(PipelineBakeContext context)
 {
     context.Depend("source", context.RawContentDiskPath + ".txt");
 }