mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-10-21 19:59:48 +08:00
Clean up all
Remvoe TextBoxXP
This commit is contained in:
@@ -14,8 +14,9 @@
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*
|
||||
**/
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace GrasscutterTools.Game.Shop
|
||||
@@ -34,4 +35,4 @@ namespace GrasscutterTools.Game.Shop
|
||||
[JsonProperty("count")]
|
||||
public int Count { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
@@ -14,8 +14,9 @@
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*
|
||||
**/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@@ -74,4 +75,4 @@ namespace GrasscutterTools.Game.Shop
|
||||
[JsonProperty("endTime")]
|
||||
public DateTime? EndTime { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
@@ -14,8 +14,9 @@
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*
|
||||
**/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@@ -29,28 +30,27 @@ namespace GrasscutterTools.Game.Shop
|
||||
{
|
||||
public ShopInfo()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public ShopInfo(ShopGoodsData sgd)
|
||||
{
|
||||
GoodsId = sgd.GoodsId;
|
||||
GoodsItem = new ItemParamData(sgd.ItemId, sgd.ItemCount);
|
||||
SCoin = sgd.CostScoin;
|
||||
MCoin = sgd.CostMcion;
|
||||
HCoin = sgd.CostHcoin;
|
||||
BuyLimit = sgd.BuyLimit;
|
||||
GoodsId = sgd.GoodsId;
|
||||
GoodsItem = new ItemParamData(sgd.ItemId, sgd.ItemCount);
|
||||
SCoin = sgd.CostScoin;
|
||||
MCoin = sgd.CostMcion;
|
||||
HCoin = sgd.CostHcoin;
|
||||
BuyLimit = sgd.BuyLimit;
|
||||
|
||||
MinLevel = sgd.MinPlayerLevel;
|
||||
MaxLevel = sgd.MaxPlayerLevel;
|
||||
CostItemList = sgd.CostItems.Where(it => it.Id != 0).ToList();
|
||||
MinLevel = sgd.MinPlayerLevel;
|
||||
MaxLevel = sgd.MaxPlayerLevel;
|
||||
CostItemList = sgd.CostItems.Where(it => it.Id != 0).ToList();
|
||||
SecondarySheetId = sgd.SubTabId;
|
||||
RefreshType = sgd.RefreshType;
|
||||
RefreshType = sgd.RefreshType;
|
||||
ShopRefreshParam = sgd.RefreshParam;
|
||||
if (sgd.BeginTime != null && sgd.EndTime != null)
|
||||
{
|
||||
BeginTime = (int)new DateTimeOffset(sgd.BeginTime.Value).ToUnixTimeSeconds();
|
||||
EndTime = (int)new DateTimeOffset(sgd.EndTime.Value).ToUnixTimeSeconds();
|
||||
BeginTime = (int)new DateTimeOffset(sgd.BeginTime.Value).ToUnixTimeSeconds();
|
||||
EndTime = (int)new DateTimeOffset(sgd.EndTime.Value).ToUnixTimeSeconds();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -115,10 +115,9 @@ namespace GrasscutterTools.Game.Shop
|
||||
[JsonProperty("shopRefreshParam")]
|
||||
public int ShopRefreshParam { get; set; }
|
||||
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return $"{GoodsId}:{GameData.Items[GoodsItem.Id]} x{GoodsItem.Count}";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -14,8 +14,9 @@
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*
|
||||
**/
|
||||
|
||||
namespace GrasscutterTools.Game.Shop
|
||||
{
|
||||
/// <summary>
|
||||
@@ -43,4 +44,4 @@ namespace GrasscutterTools.Game.Shop
|
||||
/// </summary>
|
||||
SHOP_REFRESH_MONTHLY,
|
||||
}
|
||||
}
|
||||
}
|
@@ -14,8 +14,9 @@
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*
|
||||
**/
|
||||
|
||||
using System.Collections.Generic;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
@@ -30,4 +31,4 @@ namespace GrasscutterTools.Game.Shop
|
||||
[JsonProperty("items")]
|
||||
public List<ShopInfo> Items { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user