Esempio n. 1
0
 protected IReplayFramePlayer(IReplayReader reader, int hz, ReplayMetaTimelineHeader theader, IReplayFramePlayer baseFrame)
 {
     ReplayReader      = reader;
     this.Hz           = hz;
     ReplayEntities    = ReplayManager.Instance.ReplayEntities;
     StaticEntities    = ReplayManager.Instance.ReplayStaticEntities;
     TimelineFromFrame = theader.StartFromFrame;
     THeader           = theader;
     ReplayPointer     = theader.ReplayPointer;
     BaseFrame         = baseFrame;
 }
 public ReplayDeltaPlayer(IReplayReader reader, int hz, ReplayMetaTimelineHeader theader, IReplayFramePlayer baseFrame) : base(reader, hz, theader, baseFrame)
 {
 }
        public static IReplayFramePlayer CreateReplayDeltaPlayer(IReplayReader reader, int hz, ReplayDeltaMode deltaMode,
                                                                 ReplayMetaTimelineHeader metaTimelineHeader, IReplayFramePlayer baseFrame)
        {
            switch (deltaMode)
            {
            case ReplayDeltaMode.DeltaCompression:
                return(new ReplayDeltaPlayer(reader, hz, metaTimelineHeader, baseFrame));

            case ReplayDeltaMode.SubFrame:
                return(new ReplaySubframePlayer(reader, hz, metaTimelineHeader, baseFrame));

            default:
                return(null);
            }
        }