mirror of
https://github.com/milimoe/FunGame-Testing.git
synced 2025-12-05 00:06:05 +00:00
1
This commit is contained in:
parent
43f6931d37
commit
607c65264c
@ -5,6 +5,7 @@ using Milimoe.FunGame.Core.Entity;
|
|||||||
using Milimoe.FunGame.Core.Library.Constant;
|
using Milimoe.FunGame.Core.Library.Constant;
|
||||||
using Milimoe.FunGame.Testing.Tests;
|
using Milimoe.FunGame.Testing.Tests;
|
||||||
using Oshima.FunGame.OshimaModules;
|
using Oshima.FunGame.OshimaModules;
|
||||||
|
using Oshima.FunGame.OshimaModules.Models;
|
||||||
using Oshima.FunGame.OshimaModules.Regions;
|
using Oshima.FunGame.OshimaModules.Regions;
|
||||||
using Oshima.FunGame.OshimaServers.Service;
|
using Oshima.FunGame.OshimaServers.Service;
|
||||||
using Oshima.FunGame.WebAPI.Controllers;
|
using Oshima.FunGame.WebAPI.Controllers;
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
using Milimoe.FunGame.Core.Api.Utility;
|
using Milimoe.FunGame.Core.Api.Utility;
|
||||||
using Milimoe.FunGame.Core.Entity;
|
using Milimoe.FunGame.Core.Entity;
|
||||||
using Milimoe.FunGame.Core.Interface.Entity;
|
|
||||||
using Milimoe.FunGame.Core.Library.Constant;
|
using Milimoe.FunGame.Core.Library.Constant;
|
||||||
using Milimoe.FunGame.Core.Model;
|
using Milimoe.FunGame.Core.Model;
|
||||||
using Oshima.Core.Constant;
|
using Oshima.Core.Constant;
|
||||||
using Oshima.FunGame.OshimaModules.Characters;
|
using Oshima.FunGame.OshimaModules.Characters;
|
||||||
using Oshima.FunGame.OshimaModules.Effects.PassiveEffects;
|
using Oshima.FunGame.OshimaModules.Effects.PassiveEffects;
|
||||||
|
using Oshima.FunGame.OshimaModules.Models;
|
||||||
using Oshima.FunGame.OshimaModules.Regions;
|
using Oshima.FunGame.OshimaModules.Regions;
|
||||||
using Oshima.FunGame.OshimaModules.Skills;
|
using Oshima.FunGame.OshimaModules.Skills;
|
||||||
using Oshima.FunGame.OshimaServers.Model;
|
using Oshima.FunGame.OshimaServers.Model;
|
||||||
|
|||||||
@ -5,6 +5,7 @@ using Milimoe.FunGame.Core.Library.Constant;
|
|||||||
using Milimoe.FunGame.Core.Model;
|
using Milimoe.FunGame.Core.Model;
|
||||||
using Oshima.Core.Constant;
|
using Oshima.Core.Constant;
|
||||||
using Oshima.FunGame.OshimaModules.Effects.OpenEffects;
|
using Oshima.FunGame.OshimaModules.Effects.OpenEffects;
|
||||||
|
using Oshima.FunGame.OshimaModules.Models;
|
||||||
using Oshima.FunGame.OshimaModules.Skills;
|
using Oshima.FunGame.OshimaModules.Skills;
|
||||||
using Oshima.FunGame.OshimaServers.Service;
|
using Oshima.FunGame.OshimaServers.Service;
|
||||||
|
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
using Milimoe.FunGame.Core.Entity;
|
using Milimoe.FunGame.Core.Entity;
|
||||||
using Milimoe.FunGame.Core.Library.Constant;
|
using Milimoe.FunGame.Core.Library.Constant;
|
||||||
using Milimoe.FunGame.Core.Model;
|
using Milimoe.FunGame.Core.Model;
|
||||||
|
using Oshima.FunGame.OshimaModules.Models;
|
||||||
using Oshima.FunGame.OshimaServers.Service;
|
using Oshima.FunGame.OshimaServers.Service;
|
||||||
|
|
||||||
namespace Milimoe.FunGame.Testing.Tests
|
namespace Milimoe.FunGame.Testing.Tests
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
using Milimoe.FunGame.Core.Entity;
|
using Milimoe.FunGame.Core.Entity;
|
||||||
using Milimoe.FunGame.Core.Library.Constant;
|
using Milimoe.FunGame.Core.Library.Constant;
|
||||||
using Oshima.FunGame.OshimaModules.Items;
|
using Oshima.FunGame.OshimaModules.Items;
|
||||||
using Oshima.FunGame.OshimaServers.Service;
|
using Oshima.FunGame.OshimaModules.Models;
|
||||||
|
|
||||||
namespace Milimoe.FunGame.Testing.Tests
|
namespace Milimoe.FunGame.Testing.Tests
|
||||||
{
|
{
|
||||||
@ -124,12 +124,23 @@ namespace Milimoe.FunGame.Testing.Tests
|
|||||||
store4.AddItem(item, -1);
|
store4.AddItem(item, -1);
|
||||||
store4.Goods[1].Quota = 1;
|
store4.Goods[1].Quota = 1;
|
||||||
store4.Goods[1].ExpireTime = new DateTime(2025, 7, 26, 03, 59, 59);
|
store4.Goods[1].ExpireTime = new DateTime(2025, 7, 26, 03, 59, 59);
|
||||||
|
Store store5 = new("锻造积分商店")
|
||||||
|
{
|
||||||
|
AutoRefresh = true,
|
||||||
|
RefreshInterval = 3,
|
||||||
|
NextRefreshDate = DateTime.Today.AddHours(4),
|
||||||
|
GlobalStock = true,
|
||||||
|
};
|
||||||
|
item = new 大师锻造券();
|
||||||
|
store5.AddItem(item, -1);
|
||||||
|
store5.SetPrice(1, "锻造积分", 400);
|
||||||
EntityModuleConfig<Store> dokyoStores = new("stores", "dokyo")
|
EntityModuleConfig<Store> dokyoStores = new("stores", "dokyo")
|
||||||
{
|
{
|
||||||
{ "dokyo_logistics", store1 },
|
{ "dokyo_logistics", store1 },
|
||||||
{ "dokyo_weapons", store2 },
|
{ "dokyo_weapons", store2 },
|
||||||
{ "dokyo_yuki", store3 },
|
{ "dokyo_yuki", store3 },
|
||||||
{ "dokyo_welfare", store4 },
|
{ "dokyo_welfare", store4 },
|
||||||
|
{ "dokyo_forge", store5 },
|
||||||
};
|
};
|
||||||
dokyoStores.SaveConfig();
|
dokyoStores.SaveConfig();
|
||||||
Console.WriteLine("读取中……");
|
Console.WriteLine("读取中……");
|
||||||
@ -138,10 +149,12 @@ namespace Milimoe.FunGame.Testing.Tests
|
|||||||
Store? test2 = dokyoStores.Get("dokyo_weapons");
|
Store? test2 = dokyoStores.Get("dokyo_weapons");
|
||||||
Store? test3 = dokyoStores.Get("dokyo_yuki");
|
Store? test3 = dokyoStores.Get("dokyo_yuki");
|
||||||
Store? test4 = dokyoStores.Get("dokyo_welfare");
|
Store? test4 = dokyoStores.Get("dokyo_welfare");
|
||||||
|
Store? test5 = dokyoStores.Get("dokyo_forge");
|
||||||
Console.WriteLine(test1);
|
Console.WriteLine(test1);
|
||||||
Console.WriteLine(test2);
|
Console.WriteLine(test2);
|
||||||
Console.WriteLine(test3);
|
Console.WriteLine(test3);
|
||||||
Console.WriteLine(test4);
|
Console.WriteLine(test4);
|
||||||
|
Console.WriteLine(test5);
|
||||||
Console.ReadKey();
|
Console.ReadKey();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user