public InfinityServerHandler(IOwinContext context)
 {
     this._context = context;
     this._uri     = new ProxyUri(context.Request);
     this._site    = new InfinityServerSite(this._uri, this.Request, this.Response);
     this._mapping = this._site.MainMapping;
 }
Ejemplo n.º 2
0
        //public List<BattleResult> CurrentBattle { get; private set; }

        public BattleForChar(InfinityServerSite site, bool isDungeon = false)
        {
            this._site      = site;
            this._charId    = site.CurrentCharId;
            this._isDungeon = isDungeon;
            this._ts        = new CancellationTokenSource();
            this._token     = _ts.Token;
        }
Ejemplo n.º 3
0
        public static bool AddChar(InfinityServerSite r, bool isDungeon = false)
        {
            BattleForChar dc     = new BattleForChar(r, isDungeon);
            bool          result = _charDict.TryAdd(r.CurrentCharId, dc);

            if (result)
            {
                dc.OnBattleComplete += TriggerBattleComplete;
                dc.OnError          += TriggerError;
                dc.Start();
            }
            return(result);
        }
 public InfinityGuajiApi(InfinityServerSite site) : base(site)
 {
 }
 public InfinityFilterCreateApi(InfinityServerSite site) : base(site)
 {
 }
Ejemplo n.º 6
0
 public InfinityApiBase(InfinityServerSite site)
 {
     this._site = site;
 }
Ejemplo n.º 7
0
 public InfinityResetDungeonDynamicApi(InfinityServerSite site) : base(site)
 {
 }
 public InfinitySkillOffApi(InfinityServerSite site) : base(site)
 {
 }
Ejemplo n.º 9
0
 public CharacterDetailModel(InfinityServerSite site) : base(site)
 {
     Initialize();
 }
 public InfinityArmyGroupCreateApi(InfinityServerSite site) : base(site)
 {
 }
Ejemplo n.º 11
0
 public FilterModel(InfinityServerSite site) : base(site)
 {
     Initialize();
 }
 public InfinityClearCacheApi(InfinityServerSite site) : base(site)
 {
 }
 public InfinitySyntheticMakeApi(InfinityServerSite site) : base(site)
 {
 }
 public InfinityRealmMaterialApi(InfinityServerSite site) : base(site)
 {
 }
 public InfinityMarketBuyApi(InfinityServerSite site) : base(site)
 {
 }
 public InfinityClearMapItemApi(InfinityServerSite site) : base(site)
 {
 }
 public InfinityItemUseApi(InfinityServerSite site) : base(site)
 {
 }
 public InfinityFilterRemoveApi(InfinityServerSite site) : base(site)
 {
 }
Ejemplo n.º 19
0
 public InfinitySwithDungeonMapApi(InfinityServerSite site) : base(site)
 {
 }
 public InfinityCancelDungeonGuajiApi(InfinityServerSite site) : base(site)
 {
 }
 public InfinityEquipSellApi(InfinityServerSite site) : base(site)
 {
 }
 public InfinityServerModel(InfinityServerSite site)
 {
     this._uri  = site.Uri;
     this._site = site;
 }
 public InfinityCancelOfflineApi(InfinityServerSite site) : base(site)
 {
 }
 public InfinityEquipUnBindApi(InfinityServerSite site) : base(site)
 {
 }
Ejemplo n.º 25
0
 public InfinityArmyGroupLeaveApi(InfinityServerSite site) : base(site)
 {
 }
Ejemplo n.º 26
0
 public IndexModel(InfinityServerSite site) : base(site)
 {
     Initialize();
 }
Ejemplo n.º 27
0
 public SkillBagModel(InfinityServerSite site) : base(site)
 {
     Initialize();
 }
Ejemplo n.º 28
0
 public BattleModel(InfinityServerSite site) : base(site)
 {
     Initialize();
 }
 public InfinityRealmUpApi(InfinityServerSite site) : base(site)
 {
 }
Ejemplo n.º 30
0
 public InfinityLoginApi(InfinityServerSite site) : base(site)
 {
 }