shop 처리 작업
This commit is contained in:
parent
2e99385259
commit
9a71f1cad3
|
|
@ -169,37 +169,23 @@ namespace Server.Git
|
||||||
{
|
{
|
||||||
int index = -1;
|
int index = -1;
|
||||||
index = sheets.FindIndex(n => n.name == Statics.equipmentExcel.sheetName);
|
index = sheets.FindIndex(n => n.name == Statics.equipmentExcel.sheetName);
|
||||||
if(index != 0)
|
if(index != -1)
|
||||||
{
|
|
||||||
Statics.equipmentExcel.init(sheets[index]);
|
Statics.equipmentExcel.init(sheets[index]);
|
||||||
}
|
|
||||||
index = sheets.FindIndex(n => n.name == Statics.randomRewardExcel.sheetName);
|
index = sheets.FindIndex(n => n.name == Statics.randomRewardExcel.sheetName);
|
||||||
if (index != 0)
|
if (index != -1)
|
||||||
{
|
|
||||||
Statics.randomRewardExcel.init(sheets[index]);
|
Statics.randomRewardExcel.init(sheets[index]);
|
||||||
}
|
|
||||||
index = sheets.FindIndex(n => n.name == Statics.rewardExcel.sheetName);
|
index = sheets.FindIndex(n => n.name == Statics.rewardExcel.sheetName);
|
||||||
if (index != 0)
|
if (index != -1)
|
||||||
{
|
|
||||||
Statics.rewardExcel.init(sheets[index]);
|
Statics.rewardExcel.init(sheets[index]);
|
||||||
}
|
|
||||||
index = sheets.FindIndex(n => n.name == Statics.shopItemExcel.sheetName);
|
index = sheets.FindIndex(n => n.name == Statics.shopItemExcel.sheetName);
|
||||||
if (index != 0)
|
if (index != -1)
|
||||||
{
|
|
||||||
Statics.shopItemExcel.init(sheets[index]);
|
Statics.shopItemExcel.init(sheets[index]);
|
||||||
}
|
|
||||||
index = sheets.FindIndex(n => n.name == Statics.consumableItemExcel.sheetName);
|
index = sheets.FindIndex(n => n.name == Statics.consumableItemExcel.sheetName);
|
||||||
if (index != 0)
|
if (index != -1)
|
||||||
{
|
|
||||||
Statics.consumableItemExcel.init(sheets[index]);
|
Statics.consumableItemExcel.init(sheets[index]);
|
||||||
}
|
|
||||||
|
|
||||||
index = sheets.FindIndex(n => n.name == Statics.resetShopItemExcel.sheetName);
|
index = sheets.FindIndex(n => n.name == Statics.resetShopItemExcel.sheetName);
|
||||||
if (index != 0)
|
if (index != -1)
|
||||||
{
|
|
||||||
Statics.resetShopItemExcel.init(sheets[index]);
|
Statics.resetShopItemExcel.init(sheets[index]);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ namespace Server.Git
|
||||||
ExcelManager em = new ExcelManager(fileList[n]);
|
ExcelManager em = new ExcelManager(fileList[n]);
|
||||||
if (em.Play())
|
if (em.Play())
|
||||||
{
|
{
|
||||||
|
//나의 sheet가 아니라 em에 들어있는 시트만으로 처리되도록 해야함.
|
||||||
sheets = em.sheets;
|
sheets = em.sheets;
|
||||||
for (int m = 0; m < sheets.Count; m++)
|
for (int m = 0; m < sheets.Count; m++)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ namespace Server.SQL
|
||||||
public void init(Sheet data)
|
public void init(Sheet data)
|
||||||
{
|
{
|
||||||
this.resetShopItemData = new Dictionary<long, ResetShopItemData>();
|
this.resetShopItemData = new Dictionary<long, ResetShopItemData>();
|
||||||
|
Console.WriteLine($"----------------------------{sheetName}----------------------------");
|
||||||
foreach (var item in data.dicViewer)
|
foreach (var item in data.dicViewer)
|
||||||
{
|
{
|
||||||
ResetShopItemData resetShopItemData = new ResetShopItemData();
|
ResetShopItemData resetShopItemData = new ResetShopItemData();
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,7 @@ namespace Server.Service
|
||||||
{
|
{
|
||||||
public string uuid;
|
public string uuid;
|
||||||
public long shopItemIndex;
|
public long shopItemIndex;
|
||||||
|
public long reset_id;
|
||||||
public override bool IsReceivedAllField()
|
public override bool IsReceivedAllField()
|
||||||
{
|
{
|
||||||
if (uuid == "" || shopItemIndex == 0)
|
if (uuid == "" || shopItemIndex == 0)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue