12 lines
977 B
Plaintext
12 lines
977 B
Plaintext
using asap.core;
|
|
using GameCore;
|
|
using game;
|
|
if(!GContext.Ready)return "GContext not ready; "+KVGameplayLoopSetup.State();
|
|
var u=GContext.container.Resolve<IUserService>();
|
|
var p=GContext.container.Resolve<PlayerData>();
|
|
var g=GContext.container.Resolve<GuideDataCenter>();
|
|
var cfg=GContext.container.Resolve<IConfig>();
|
|
var e=GContext.container.Resolve<FishingEventData>();
|
|
GuideSaveData potion;g.GuideSaveDataDic.TryGetValue("EventPotion01",out potion);
|
|
return new {loggedIn=u.IsLogin, account=u.CustomId, internalId=u.InternalId,backend=cfg.Get<string>("SaveBackend",""),api=cfg.Get<string>(GConstant.K_Event_API_URL,""),level=p.lv,gold=p.gold,energy=p.Energy,guideGroup=g.curGroupDefine==null?null:g.curGroupDefine.groupName.ToString(),guideNode=g.curDefine!=null,guideSavePointer=g.curSaveData!=null,potionEvent=e.GetEvent(4,5),potionSaved=potion==null?"missing":potion.groupName+"|"+potion.guideSubIndex+"|"+potion.isFinish,state=KVGameplayLoopSetup.State()}.ToString();
|