public MasterData() { Staff.API("api_start2").Subscribe <api_start2>(MasterHandler); Staff.API("api_start2").Subscribe(Save); Staff.API("api_start2").Subscribe((Session x) => Models.Status.Current.IsGameLoaded = true); LoadFinalHPs(); }
public QuestManager() { Staff.API("api_get_member/questlist").Subscribe <getmember_questlist>(CheckQuestPage); Staff.API("api_req_quest/clearitemget").Subscribe(x => { AvilableQuests.Remove(x.GetInt("api_quest_id")); Logger.Loggers.MaterialLogger.ForceLog = true; }); }
public Homeport() { Staff.API("api_get_member/require_info").Subscribe <getmember_require_info>(x => { ItemsHandler(x.api_slot_item); Staff.Current.Shipyard.KDockHandler(x.api_kdock); }); Staff.API("api_port/port").Subscribe <port_port>(PortHandler); Staff.API("api_get_member/deck").Subscribe <getmember_deck[]>(DecksHandler); Staff.API("api_get_member/slot_item").Subscribe <getmember_slotitem[]>(ItemsHandler); Staff.API("api_req_hensei/change").Subscribe(ChangeHandler); Staff.API("api_get_member/ship3").Subscribe <getmember_ship_deck>(Ship3Handler); Staff.API("api_get_member/ship2").Subscribe <api_ship[]>(x => Ships.UpdateAll(x, y => y.api_id)); Staff.API("api_get_member/ship_deck").Subscribe <getmember_ship_deck>(Ship3Handler); Staff.API("api_req_hokyu/charge").Subscribe <hokyu_charge>(ChargeHandler); Staff.API("api_req_member/itemuse_cond").Subscribe(x => Fleets[x.GetInt("api_deck_id")].Ships.ForEach(y => y.IgnoreNextCondition())); Staff.API("api_req_hensei/preset_select").Subscribe <getmember_deck>(PresetHandler); Staff.API("api_req_kaisou/slot_exchange_index").Subscribe(ExchangeHandler); Staff.API("api_req_kaisou/slot_deprive").Subscribe <kaisou_slot_deprive>(DepriveHandler); Staff.API("api_get_member/mapinfo").Subscribe <getmember_mapinfo>(RefreshMapInfo); Staff.API("api_req_map/select_eventmap_rank").Subscribe(SelectRank); Staff.API("api_req_mission/result").Subscribe <mission_result>(MissionHandler); }
public Shipyard() { Staff.API("api_get_member/ndock").Subscribe <getmember_ndock[]>(NDockHandler); Staff.API("api_req_nyukyo/start").Subscribe(NStartHandler); Staff.API("api_get_member/kdock").Subscribe <getmember_kdock[]>(KDockHandler); Staff.API("api_req_kousyou/createship").Subscribe(CreateShipHandler); Staff.API("api_req_kousyou/getship").Subscribe <req_getship>(GetShipHandler); Staff.API("api_req_kousyou/destroyship").Subscribe <kousyou_destroyship>(DestroyShipHandler); Staff.API("api_req_kousyou/destroyitem2").Subscribe <kousyou_destroyitem2>(DestroyItemHandler); Staff.API("api_req_kaisou/powerup").Subscribe <kaisou_powerup>(PowerUpHandler); Staff.API("api_req_kousyou/createitem").Subscribe <kousyou_createitem>(CreateItemHandler); Staff.API("api_req_kousyou/createship_speedchange").Subscribe(KSpeedChangeHandler); Staff.API("api_req_kaisou/open_exslot").Subscribe(x => Staff.Current.Homeport.Ships[x.GetInt("api_id")].SlotEx.IsLocked = false); Staff.API("api_req_kousyou/remodel_slot").Subscribe <kousyou_remodel_slot>(RemodelItemHandler); Staff.API("api_req_nyukyo/speedchange").Subscribe(NSpeedChangeHandler); Staff.API("api_req_kaisou/remodeling").Subscribe(x => { var ship = Staff.Current.Homeport.Ships[x.GetInt("api_id")]; ship.IgnoreNextCondition(); ship.InvalidEquip(); }); }
public BattleManager() { Staff.API("api_port/port").Subscribe((Fiddler.Session x) => { InSortie = false; CurrentMap = null; CurrentNode = null; if (SortieFleet1 != null) { SortieFleet1.InSortie = false; foreach (var ship in SortieFleet1.Ships) { ship.IsEscaped = false; } } if (SortieFleet2 != null) { SortieFleet2.InSortie = false; foreach (var ship in SortieFleet2.Ships) { ship.IsEscaped = false; } } SortieFleet1 = null; SortieFleet2 = null; CurrentBattle = null; GetShipEquip = null; CurrentFleetType = null; lastescapeinfo = null; }); Staff.API("api_req_map/next").Subscribe <map_start_next>(StartNextHandler); Staff.API("api_req_sortie/battleresult").Subscribe <sortie_battleresult>(BattleResultHandler); Staff.API("api_req_combined_battle/battleresult").Subscribe <sortie_battleresult>(BattleResultHandler); Staff.API("api_req_map/start").Subscribe <map_start_next>((req, api) => { InSortie = true; SortieFleet1 = Staff.Current.Homeport.Fleets[req.GetInt("api_deck_id")]; SortieFleet1.InSortie = true; CurrentFleetType = Staff.Current.Homeport.CombinedFleet; if (SortieFleet1.Id == 1 && Staff.Current.Homeport.CombinedFleet != CombinedFleetType.None) { SortieFleet2 = Staff.Current.Homeport.Fleets[2]; SortieFleet2.InSortie = true; } Logger.Loggers.MaterialLogger.ForceLog = true; StartNextHandler(api); }); Staff.API("api_req_sortie/battle").Subscribe <sortie_battle>(StartBattle); Staff.API("api_req_battle_midnight/battle").Subscribe <sortie_battle>(NightBattle); Staff.API("api_req_battle_midnight/sp_midnight").Subscribe <sortie_battle>(StartBattle); Staff.API("api_req_practice/battle").Subscribe <sortie_battle>(StartBattle); Staff.API("api_req_practice/midnight_battle").Subscribe <sortie_battle>(NightBattle); Staff.API("api_req_sortie/airbattle").Subscribe <sortie_battle>(StartBattle); Staff.API("api_req_sortie/ld_airbattle").Subscribe <sortie_battle>(StartBattle); Staff.API("api_req_combined_battle/airbattle").Subscribe <sortie_battle>(StartBattle); Staff.API("api_req_combined_battle/battle").Subscribe <sortie_battle>(StartBattle); Staff.API("api_req_combined_battle/midnight_battle").Subscribe <sortie_battle>(NightBattle); Staff.API("api_req_combined_battle/sp_midnight").Subscribe <sortie_battle>(StartBattle); Staff.API("api_req_combined_battle/battle_water").Subscribe <sortie_battle>(StartBattle); Staff.API("api_req_combined_battle/ld_airbattle").Subscribe <sortie_battle>(StartBattle); Staff.API("api_req_combined_battle/goback_port").Subscribe((Fiddler.Session x) => { if (lastescapeinfo != null) { FindShip(lastescapeinfo.api_escape_idx[0]).IsEscaped = true; FindShip(lastescapeinfo.api_tow_idx[0]).IsEscaped = true; } }); Staff.API("api_req_combined_battle/ec_battle").Subscribe <sortie_battle>(StartBattle); Staff.API("api_req_combined_battle/ec_midnight_battle").Subscribe <sortie_battle>(NightBattle); Staff.API("api_req_combined_battle/each_battle").Subscribe <sortie_battle>(StartBattle); Staff.API("api_req_combined_battle/each_battle_water").Subscribe <sortie_battle>(StartBattle); }
private RankingViewModel() { Load(); Staff.API("api_req_ranking/").Subscribe <ranking_getlist>(RankingListHandler); Staff.Current.Admiral.PropertyChanged += OnExpChanged; }
private RawApi() { Staff.API("").Subscribe(AddSession); }
public Admiral() { Staff.API("api_get_member/record").Subscribe <getmember_record>(RecordHandler); Staff.API("api_get_member/basic").Subscribe <getmember_basic>(BasicHandler); }
public Material() { Staff.API("api_get_member/material").Subscribe <getmember_material[]>(MaterialHandler); }