Exemple #1
0
 public void Serialize(SerializeEvent e)
 {
     e.Writer.Write(x);
     e.Writer.Write(y);
     e.Writer.Write(z);
     e.Writer.Write(w);
 }
 public void Serialize(SerializeEvent e)
 {
     e.Writer.Write(MoveDirection.x);
     e.Writer.Write(MoveDirection.y);
     e.Writer.Write(MoveDirection.z);
     e.Writer.Write(Dashing);
 }
 public void Serialize(SerializeEvent e)
 {
     e.Writer.Write(this.Id);
     e.Writer.Write(this.HasPhysics);
     e.Writer.Write(this.IsKinematic);
     e.Writer.Write(this.InitVelocity);
 }
 public void Serialize(SerializeEvent e)
 {
     e.Writer.Write(networkID);
     e.Writer.Write(resourceID);
     e.Writer.Write(x);
     e.Writer.Write(y);
 }
 public void Serialize(SerializeEvent e)
 {
     e.Writer.Write(Id);
     e.Writer.Write(Name);
     e.Writer.Write(MaxPlayers);
     e.Writer.Write((byte)PlayerList.Count);
 }
Exemple #6
0
        public new void Serialize(SerializeEvent e)
        {
            e.Writer.Write(Id);
            e.Writer.Write(ItemName);
            e.Writer.Write(SpritePath);
            e.Writer.Write((int)ItemType);
            e.Writer.Write(Volume);

            e.Writer.Write(SpeedMax);
            e.Writer.Write(RotationSpeed);
            e.Writer.Write(AccelerationMax);

            e.Writer.Write(Hull_full);
            e.Writer.Write(Armor_full);
            e.Writer.Write(Shield_full);
            e.Writer.Write(Capasitor_full);

            e.Writer.Write(Hull_restore);
            e.Writer.Write(Armor_restore);
            e.Writer.Write(Shield_restore);
            e.Writer.Write(Capasitor_restore);


            e.Writer.Write(AgrDistance);
            e.Writer.Write(VisionDistance);

            e.Writer.Write(WarpDriveStartTime);
            e.Writer.Write(WarpSpeed);
            e.Writer.Write(WeaponsCount);
            e.Writer.Write(EquipmentsCount);
        }
Exemple #7
0
 public void Serialize(SerializeEvent e)
 {
     e.Writer.Write(IsEngineOn);
     e.Writer.Write(IsSideFuse1On);
     e.Writer.Write(IsSideFuse2On);
     e.Writer.Write(IsMainFuseOn);
 }
Exemple #8
0
 public void Serialize(SerializeEvent e)
 {
     e.Writer.Write(WorldName);
     e.Writer.Write(IsPublic);
     e.Writer.Write(MaxPlayers);
     e.Writer.Write(Region);
 }
 public override void Serialize(SerializeEvent e)
 {
     base.Serialize(e);
     e.Writer.Write(SpawnTaskID);
     e.Writer.Write(ProcessID);
     e.Writer.Write(Arguments, Encoding.Unicode);
 }
 public void Serialize(SerializeEvent e)
 {
     e.Writer.Write(ID);
     e.Writer.Write(TargetID);
     e.Writer.Write(EntityID);
     e.Writer.Write <ComponentPropertyDTO>(Properties.ToArray());
 }
 public override void Serialize(SerializeEvent e)
 {
     e.Writer.Write(color.r);
     e.Writer.Write(color.g);
     e.Writer.Write(color.b);
     e.Writer.Write(color.a);
 }
Exemple #12
0
 public void Serialize(SerializeEvent e)
 {
     e.Writer.Write(ID);
     e.Writer.Write(ResourceID);
     e.Writer.Write(X);
     e.Writer.Write(Y);
 }
 public void Serialize(SerializeEvent e)
 {
     e.Writer.Write(ID);
     e.Writer.Write(ServerTick);
     e.Writer.Write(Position);
     e.Writer.Write(Velocity);
 }
Exemple #14
0
 public void Serialize(SerializeEvent e)
 {
     e.Writer.Write(Id);
     e.Writer.Write(InputTick);
     e.Writer.Write(MovementAxes.x);
     e.Writer.Write(MovementAxes.y);
 }
Exemple #15
0
 /// <summary>
 /// Serializes data from this instance. Called by DarkRift.
 /// </summary>
 /// <param name="e">DarkRift serialization event</param>
 public virtual void Serialize(SerializeEvent e)
 {
     e.Writer.Write(this.NetworkID);
     SerializationHelper.SerializeVector3(e.Writer, this.CurrentPosition);
     e.Writer.Write(this.Rotation);
     SerializationHelper.SerializeVector3(e.Writer, this.TargetPosition);
 }
 public void Serialize(SerializeEvent e)
 {
     e.Writer.Write(ID);
     e.Writer.Write(Name);
     e.Writer.Write(MaxPlayers);
     e.Writer.Write(OnlinePlayers);
 }
Exemple #17
0
 public void Serialize(SerializeEvent e)
 {
     e.Writer.Write(SpawnerId);
     e.Writer.Write(SpawnTaskID);
     e.Writer.Write(SpawnCode);
     e.Writer.Write(Options);
 }
Exemple #18
0
 public void Serialize(SerializeEvent w)
 {
     w.Writer.Write(this.matchID);
     w.Writer.Write(this.matchOwner.client.ID);
     w.Writer.Write((ushort)this.matchPlayers.Count);
     w.Writer.Write(this.maxPlayersInMatch);
 }
 public void Serialize(SerializeEvent e)
 {
     e.Writer.Write(Username);
     e.Writer.Write(Password);
     e.Writer.Write(Email);
     e.Writer.Write(Referral);
 }
Exemple #20
0
 public void Serialize(SerializeEvent e)
 {
     e.Writer.Write(Id);
     e.Writer.Write(PosX);
     e.Writer.Write(PosZ);
     e.Writer.Write(Rotation);
 }
    public void Serialize(SerializeEvent e)
    {
        e.Writer.Write(playerId);
        e.Writer.Write(playerUnitId);
        e.Writer.Write(unitType);
        e.Writer.Write(name);
        e.Writer.Write(squadCost);
        e.Writer.Write(maxHealth);
        e.Writer.Write(currentHealth);
        e.Writer.Write(maxShield);
        e.Writer.Write(moveSpeed);
        e.Writer.Write(visionRange);

        e.Writer.Write(weaponOptions.Count);
        foreach (WeaponData weaponOption in weaponOptions)
        {
            e.Writer.Write(weaponOption);
        }

        e.Writer.Write(equipmentOptions.Count);
        foreach (EquipmentData equipmentOption in equipmentOptions)
        {
            e.Writer.Write(equipmentOption);
        }
    }
 public void Serialize(SerializeEvent e)
 {
     e.Writer.Write(Id);
     e.Writer.Write(Data);
     e.Writer.Write(IsCompleted);
     e.Writer.Write(IsExpired);
 }
 public void Serialize(SerializeEvent e)
 {
     e.Writer.Write(Speed);
     e.Writer.Write(Jump);
     e.Writer.Write(Grounded);
     e.Writer.Write(ID);
 }
Exemple #24
0
 public void Serialize(SerializeEvent e)
 {
     e.Writer.Write(Id);
     e.Writer.Write(Name);
     e.Writer.Write(IsHost);
     e.Writer.Write((byte)Color);
 }
Exemple #25
0
 public void Serialize(SerializeEvent e)
 {
     e.Writer.Write(Guid);
     e.Writer.Write((ushort)DamageType);
     e.Writer.Write(NewHealth);
     e.Writer.Write(Data);
 }
Exemple #26
0
 public void Serialize(SerializeEvent e)
 {
     e.Writer.Write(EntityID);
     e.Writer.Write(Path);
     e.Writer.Write(Speed);
     e.Writer.Write(StoppingDistance);
 }
Exemple #27
0
 public void Serialize(SerializeEvent e)
 {
     e.Writer.Write(PlayerId);
     e.Writer.Write(HolderId);
     e.Writer.Write(Volume);
     e.Writer.Write(VolumeLeft);
 }
 public void Serialize(SerializeEvent e)
 {
     e.Writer.Write(this.ID);
     e.Writer.Write(this.X);
     e.Writer.Write(this.Y);
     e.Writer.Write(this.Z);
 }
 public void Serialize(SerializeEvent e)
 {
     e.Writer.Write(slotAndID);
     if (slotAndID.equipSlot == EquipSlot.PrimaryHand || slotAndID.equipSlot == EquipSlot.SecondaryHand)
     {
         e.Writer.Write(activeSkill);
     }
 }
Exemple #30
0
 public void Serialize(SerializeEvent e)
 {
     e.Writer.Write(Id);
     e.Writer.Write(Name);
     e.Writer.Write(SpriteRowIndex);
     e.Writer.Write(Position.X);
     e.Writer.Write(Position.Y);
 }