public DatabaseDataStr(Data data, int dataIdNo, ItemConfig[] itemConfigs, uint itemNum, DatabaseTypeStr parent)
 {
     Parent       = parent;
     DataID       = new OutputStructSentence("データID", dataIdNo.ToString());
     DataName     = new OutputStructSentence("データ名", parent.DataTable[dataIdNo][1]);
     ItemStrList  = SetItemStrList(data, itemConfigs, itemNum, dataIdNo);
     ItemAllTable = SetItemAllTable();
 }
Esempio n. 2
0
        private List <DatabaseDataStr> SetDataStrList(WodiKs.DB.Type dbType, DatabaseTypeStr databaseTypeStr)
        {
            List <DatabaseDataStr> typeIDStrList = new List <DatabaseDataStr>()
            {
            };

            for (int dataIdNo = 0; dataIdNo < dbType.NumData; dataIdNo++)
            {
                typeIDStrList.Add(
                    new DatabaseDataStr(dbType.Data[dataIdNo], dataIdNo, dbType.ItemsConfig, dbType.NumItems, databaseTypeStr));
            }
            return(typeIDStrList);
        }