public void Deserialize(BSReader reader)
        {
            this.Type = (PrimAnimationType)reader.ReadInt32();
            this.PrimAnimationIndex = reader.ReadInt32();

            var eventCount = reader.ReadInt32();

            for (int i = 0; i < eventCount; i++)
            {
                this.Events.Add(reader.Deserialize <PrimAnimationEvent>());
            }

            var walkPointCount = reader.ReadInt32();

            this.WalkLength = reader.ReadFloat();
            for (int i = 0; i < walkPointCount; i++)
            {
                this.WalkGraph.Add(reader.ReadVector2());
            }
        }