示例#1
0
        public override DemoParseResult GetResult()
        {
            DemoParseResult demoParseResult = new DemoParseResult()
            {
                FileName            = base.FileName,
                MapName             = base.Map,
                PlayerName          = base.PlayerName,
                GameDir             = base.GameDir,
                TotalTicks          = base.CurrentTick,
                StartAdjustmentType = base.MapStartAdjustType,
                EndAdjustmentType   = base.MapEndAdjustType
            };

            return(demoParseResult);
        }
示例#2
0
        public override DemoParseResult GetResult()
        {
            DemoParseResult result = base.GetResult();

            if (this._startAdjustType != null)
            {
                result.StartAdjustmentType = this._startAdjustType;
                result.StartAdjustmentTick = this._startTick;
            }
            if (this._endAdjustType != null)
            {
                result.EndAdjustmentType = this._endAdjustType;
                result.EndAdjustmentTick = this._endTick;
            }
            return(result);
        }
示例#3
0
        public object Clone()
        {
            DemoParseResult demoParseResult = new DemoParseResult()
            {
                FileName            = this.FileName,
                MapName             = this.MapName,
                PlayerName          = this.PlayerName,
                GameDir             = this.GameDir,
                TotalTicks          = this.TotalTicks,
                StartAdjustmentTick = this.StartAdjustmentTick,
                StartAdjustmentType = this.StartAdjustmentType,
                EndAdjustmentTick   = this.EndAdjustmentTick,
                EndAdjustmentType   = this.EndAdjustmentType
            };

            return(demoParseResult);
        }