コード例 #1
0
        public static SheetProperty <T> Create(string sheetName, List <T> _properties)
        {
            SheetProperty <T> item = new SheetProperty <T>();

            item.m_SheetName  = sheetName;
            item.m_Properties = _properties;
            return(item);
        }
コード例 #2
0
        public static SheetProperty <T, Y> Create(string sheetName, Dictionary <T, Y> _properties)
        {
            SheetProperty <T, Y> item = new SheetProperty <T, Y>();

            item.m_SheetName  = sheetName;
            item.m_Properties = _properties;
            return(item);
        }
コード例 #3
0
        public static void Init()
        {
            m_AllProperties = new Dictionary <int, SheetProperty <T> >();
            Dictionary <string, List <string[]> > m_AllDatas = Tools.ReadExcelMultipleSheetData(Resources.Load <TextAsset>(typeof(T).Name));

            foreach (string sheetName in m_AllDatas.Keys)
            {
                m_AllProperties.Add(m_AllProperties.Count, SheetProperty <T> .Create(sheetName, Tools.GetFieldData <T>(m_AllDatas[sheetName])));
            }
        }