Example #1
0
        /// <summary>
        /// Called by the replay system when all replay state information should be deserialized.
        /// </summary>
        /// <param name="state">The <see cref="ReplayState"/> to read the data from</param>
        public void OnReplayDeserialize(ReplayState state)
        {
            // Read the id
            eventID = state.ReadByte();

            // Read the size
            byte size = state.ReadByte();

            // Read the data
            eventData = state.ReadState(size);
        }