Пример #1
0
        internal void _AddFrameDef(ReferencesTableDataFrame frame)
        {
            var fd = new FrameDef();

            Frames.Add(fd);
            fd.MasterSaveId = frame.MasterFrame.PersistString;
            fd.SaveId       = frame.PersistString;
            fd.ReferenceDef = frame.RefDef;
        }
Пример #2
0
        public Dictionary <string, ContentFrame> CreateFrames(ContentFrame primary)
        {
            var res = new Dictionary <string, ContentFrame>();

            res["primary"] = primary;
            foreach (var fd in Frames)
            {
                var frame = new ReferencesTableDataFrame((TableDataFrame)res[fd.MasterSaveId], fd.ReferenceDef, null);
                res[fd.SaveId] = frame;
            }
            return(res);
        }