Пример #1
0
 public override void Deserialize(System.IO.BinaryReader reader)
 {
     Position = reader.ReadVector2();
     Rotation = reader.ReadSingle();
     Radius   = reader.ReadSingle();
     Angle    = reader.ReadSingle();
     if (reader.ReadBoolean())
     {
         lookup = reader.ReadGuid();
     }
 }
Пример #2
0
        public override void Deserialize(System.IO.BinaryReader reader)
        {
            Position       = reader.ReadVector2();
            Rotation       = reader.ReadSingle();
            LinearVelocity = reader.ReadVector2();

            Gravity  = reader.ReadBoolean();
            Friction = reader.ReadSingle();
            OwnerID  = reader.ReadGuid();
            Damage   = reader.ReadInt32();

            // Tags
            var tCount = reader.ReadInt32();

            for (int i = 0; i < tCount; ++i)
            {
                TargetedTags.Add(reader.ReadString());
            }
        }