protected override void Write(NWriter wtr)
 {
     wtr.Write(Time);
     wtr.Write(BulletId);
     wtr.Write(ObjectId);
     wtr.Write(TargetId);
 }
 protected override void Write(Client psr, NWriter wtr)
 {
     wtr.Write(Time);
     wtr.Write(BulletId);
     wtr.Write(TargetId);
     wtr.Write(Killed);
 }
 protected override void Write(ClientProcessor psr, NWriter wtr)
 {
     wtr.Write(AccountListId);
     wtr.Write((short)AccountIds.Length);
     foreach (var i in AccountIds)
         wtr.Write(i);
 }
Example #4
0
 protected override void Write(ClientProcessor psr, NWriter wtr)
 {
     wtr.Write(Time);
     wtr.Write(BulletId);
     wtr.Write(ObjectId);
     wtr.Write(TargetId);
 }
 protected override void Write(NWriter wtr)
 {
     wtr.Write(Damage);
     wtr.Write(EnemyId);
     wtr.Write(BulletId);
     wtr.Write(ArmorPiercing);
 }
 protected override void Write(NWriter wtr)
 {
     wtr.Write(Time);
     Position.Write(wtr);
     Obj1.Write(wtr);
     Obj2.Write(wtr);
 }
        private static void ServePolicyFile(IAsyncResult ar)
        {
            try
            {
                TcpClient cli = (ar.AsyncState as TcpListener).EndAcceptTcpClient(ar);
                (ar.AsyncState as TcpListener).BeginAcceptTcpClient(ServePolicyFile, ar.AsyncState);
                NetworkStream s = cli.GetStream();
                NReader rdr = new NReader(s);
                NWriter wtr = new NWriter(s);
                if (rdr.ReadNullTerminatedString() == "<policy-file-request/>")
                {
                    wtr.WriteNullTerminatedString(@"<cross-domain-policy>
     <allow-access-from domain=""*"" to-ports=""*"" />
</cross-domain-policy>");
                    wtr.Write((byte)'\r');
                    wtr.Write((byte)'\n');
                }
                cli.Close();
            }
            catch (ObjectDisposedException) { }
            catch (Exception ex)
            {
                logger.Error(ex);
            }
        }
Example #8
0
 protected override void Write(ClientProcessor psr, NWriter wtr)
 {
     wtr.Write(BulletId);
     wtr.Write(OwnerId);
     wtr.Write(ContainerType);
     wtr.Write(Angle);
 }
 protected override void Write(NWriter wtr)
 {
     wtr.Write(BulletId);
     wtr.Write(OwnerId);
     wtr.Write(ContainerType);
     wtr.Write(Angle);
 }
 public string Write()
 {
     var wtr = new NWriter(new MemoryStream());
     wtr.WriteUTF(accId);
     wtr.WriteUTF(giftCode);
     return Convert.ToBase64String(((MemoryStream)wtr.BaseStream).ToArray());
 }
 protected override void Write(Client psr, NWriter wtr)
 {
     wtr.Write(Time);
     Position.Write(psr, wtr);
     SlotObject1.Write(psr, wtr);
     SlotObject2.Write(psr, wtr);
 }
 protected override void Write(ClientProcessor psr, NWriter wtr)
 {
     wtr.Write(Time);
     Position.Write(wtr);
     Obj1.Write(wtr);
     Obj2.Write(wtr);
 }
 protected override void Write(Client client, NWriter wtr)
 {
     wtr.Write(Tier);
     wtr.WriteUTF(Goal);
     wtr.WriteUTF(Description);
     wtr.WriteUTF(Image);
 }
 protected override void Write(Client psr, NWriter wtr)
 {
     wtr.Write(Time);
     SlotObject.Write(psr, wtr);
     ItemUsePos.Write(psr, wtr);
     wtr.Write(UseType);
 }
 protected override void Write(Client psr, NWriter wtr)
 {
     wtr.Write(AccountListId);
     wtr.Write((ushort) AccountIds.Length);
     foreach (string i in AccountIds)
         wtr.WriteUTF(i);
     wtr.Write(LockAction);
 }
 protected override void Write(NWriter wtr)
 {
     wtr.WriteUTF(Title);
     wtr.WriteUTF(Message);
     wtr.WriteUTF(Button1);
     wtr.WriteUTF(Button2);
     wtr.WriteUTF(Type);
 }
Example #17
0
 protected override void Write(ClientProcessor psr, NWriter wtr)
 {
     wtr.Write(Time);
     wtr.Write(BulletId);
     wtr.Write(ContainerType);
     Position.Write(wtr);
     wtr.Write(Angle);
 }
Example #18
0
 protected override void Write(ClientProcessor psr, NWriter wtr)
 {
     wtr.WriteUTF(Title);
     wtr.WriteUTF(Message);
     wtr.WriteUTF(Button1);
     wtr.WriteUTF(Button2);
     wtr.WriteUTF(Type);
 }
 protected override void Write(ClientProcessor psr, NWriter wtr)
 {
     wtr.Write((byte)EffectType);
     wtr.Write(TargetId);
     PosA.Write(wtr);
     PosB.Write(wtr);
     Color.Write(wtr);
 }
 protected override void Write(Client psr, NWriter wtr)
 {
     wtr.WriteUTF(AccountId);
     wtr.Write(CharId);
     wtr.WriteUTF(Killer);
     wtr.Write(obf0);
     wtr.Write(obf1);
 }
 protected override void Write(NWriter wtr)
 {
     wtr.Write(Time);
     wtr.Write(BulletId);
     wtr.Write(TargetId);
     wtr.Write(Killed);
     wtr.Write(Damage);
 }
 protected override void Write(NWriter wtr)
 {
     wtr.Write((byte)EffectType);
     wtr.Write(TargetId);
     PosA.Write(wtr);
     PosB.Write(wtr);
     Color.Write(wtr);
 }
Example #23
0
 protected override void Write(NWriter wtr)
 {
     wtr.Write(BulletId);
     wtr.Write(OwnerId);
     wtr.Write(ContainerType);
     Position.Write(wtr);
     wtr.Write(Angle);
     wtr.Write(Damage);
 }
 protected override void Write(ClientProcessor psr, NWriter wtr)
 {
     wtr.Write((short) MyOffers.Length);
     foreach (var i in MyOffers)
         wtr.Write(i);
     wtr.Write((short) YourOffers.Length);
     foreach (var i in YourOffers)
         wtr.Write(i);
 }
 protected override void Write(Client psr, NWriter wtr)
 {
     wtr.Write(BulletId);
     wtr.Write(OwnerId);
     wtr.Write(ContainerType);
     StartingPos.Write(psr, wtr);
     wtr.Write(Angle);
     wtr.Write(Damage);
 }
        protected override void Write(Client psr, NWriter wtr)
        {
            wtr.Write(TickId);
            wtr.Write(TickTime);

            wtr.Write((ushort)UpdateStatuses.Length);
            foreach (ObjectStats i in UpdateStatuses)
                i.Write(psr, wtr);
        }
Example #27
0
 protected override void Write(NWriter wtr)
 {
     wtr.Write(TickId);
     wtr.Write(Time);
     Position.Write(wtr);
     wtr.Write((short)Records.Length);
     foreach (var i in Records)
         i.Write(wtr);
 }
        protected override void Write(ClientProcessor psr, NWriter wtr)
        {
            wtr.Write(TickId);
            wtr.Write(TickTime);

            wtr.Write((short) UpdateStatuses.Length);
            foreach (var i in UpdateStatuses)
                i.Write(wtr);
        }
Example #29
0
 protected override void Write(NWriter wtr)
 {
     Position.Write(wtr);
     wtr.Write(Radius);
     wtr.Write(Damage);
     wtr.Write((byte)Effects);
     wtr.Write(EffectDuration);
     wtr.Write(OriginType);
 }
 protected override void Write( NWriter wtr)
 {
     wtr.Write((ushort)MyOffers.Length);
     foreach (bool i in MyOffers)
         wtr.Write(i);
     wtr.Write((ushort)YourOffers.Length);
     foreach (bool i in YourOffers)
         wtr.Write(i);
 }
Example #31
0
 protected override void Write(Client client, NWriter wtr)
 {
     wtr.Write((int)Type);
 }
 protected override void Write(Client psr, NWriter wtr)
 {
     wtr.WriteUTF(Title);
     wtr.WriteUTF(Description);
 }
Example #33
0
 public void Write(NWriter wtr)
 {
     wtr.Write(Width);
     wtr.Write(Height);
     wtr.Write(Bytes);
 }
 protected override void Write(Client psr, NWriter wtr)
 {
     wtr.Write((ushort)ClassType);
     wtr.Write((ushort)SkinType);
 }
Example #35
0
 protected override void Write(ClientProcessor psr, NWriter wtr)
 {
     wtr.Write(Button);
     wtr.WriteUTF(Type);
 }
Example #36
0
 protected override void Write(ClientProcessor psr, NWriter wtr)
 {
     wtr.Write(Time);
     wtr.Write(BulletId);
     wtr.Write(ObjectId);
 }
Example #37
0
 protected override void Write(NWriter wtr)
 {
     wtr.Write(Success);
     wtr.WriteUTF(ErrorText);
 }
Example #38
0
 protected override void Write(ClientProcessor psr, NWriter wtr)
 {
     wtr.Write(ObjectID);
 }
Example #39
0
 protected override void Write(NWriter wtr)
 {
 }
Example #40
0
 protected override void Write(NWriter wtr)
 {
     wtr.Write(ObjectId);
     Position.Write(wtr);
 }
Example #41
0
 protected override void Write(NWriter wtr)
 {
     wtr.Write(Time);
     Position.Write(wtr);
 }
Example #42
0
 protected override void Write(NWriter wtr)
 {
     wtr.WriteUTF(GuildName);
 }
Example #43
0
 public void Write(NWriter wtr)
 {
     wtr.Write(X);
     wtr.Write(Y);
 }
Example #44
0
 protected override void Write(ClientProcessor psr, NWriter wtr)
 {
     wtr.Write(Serial);
     wtr.Write(Time);
 }
Example #45
0
 protected override void Write(NWriter wtr)
 {
     wtr.Write(Currency);
 }
Example #46
0
 protected override void Write(Client psr, NWriter wtr)
 {
     wtr.Write(ObjectId);
     Position.Write(psr, wtr);
 }
Example #47
0
 protected override void Write(ClientProcessor psr, NWriter wtr)
 {
     wtr.Write(Success);
     wtr.WriteUTF(ResultMessage);
 }
 protected override void Write(Client client, NWriter wtr)
 {
 }
Example #49
0
 protected override void Write(NWriter wtr)
 {
     wtr.Write(ObjectId);
 }
Example #50
0
 protected override void Write(NWriter wtr)
 {
     wtr.Write(Amount);
     wtr.WriteUTF(Name);
 }
Example #51
0
 protected override void Write(NWriter wtr)
 {
     wtr.Write(SkinId);
 }
 protected override void Write(NWriter wtr)
 {
     wtr.Write(AccountListId);
     wtr.Write(Add);
     wtr.Write(ObjectId);
 }
Example #53
0
 protected override void Write(Client psr, NWriter wtr)
 {
     wtr.Write(ErrorId);
     wtr.WriteUTF(ErrorDescription);
 }
Example #54
0
 public void Write(NWriter wtr)
 {
     wtr.Write(ObjectType);
     Stats.Write(wtr);
 }
 protected override void Write(NWriter wtr)
 {
     wtr.Write(_li);
 }
Example #56
0
 protected override void Write(NWriter wtr)
 {
     wtr.Write(Serial);
     wtr.Write(Time);
 }
Example #57
0
 protected override void Write(ClientProcessor psr, NWriter wtr)
 {
     wtr.Write(Content);
 }
Example #58
0
 protected override void Write(Client psr, NWriter wtr)
 {
     wtr.WriteUTF(Name);
 }
Example #59
0
 public void Write(NWriter wtr)
 {
     wtr.Write(Time);
     Position.Write(wtr);
 }
Example #60
0
 protected override void Write(ClientProcessor psr, NWriter wtr)
 {
     wtr.Write32UTF(Text);
 }