Beispiel #1
0
        public FlagData(ParseBlock Block)
        {
            Block.AddParser <FlagTemplate>("flag-template", i => new FlagTemplate(i));
            Block.AddParser <GraphNode <Vector2f[]> >("node",
                                                      i => new GraphNode <Vector2f[]>(Cardamom.Interface.ClassLibrary.Instance.ParseVector2fs(i.String)));

            foreach (FlagTemplate template in Block.BreakToArray <FlagTemplate>())
            {
                _Templates.Add(template.Frequency, template);
            }
        }