Files
TEngine/Assets/GameScripts/DotNet/Model/Share/LockStep/Room.cs
ALEXTANG 336d4b2eb9 [+] 接入ET8服务端
[+] 接入ET8服务端
2023-07-13 12:23:48 +08:00

53 lines
1.4 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Collections.Generic;
namespace ET
{
[ChildOf]
[ComponentOf]
public class Room: Entity, IScene, IAwake, IUpdate
{
public Fiber Fiber { get; set; }
public SceneType SceneType { get; set; } = SceneType.Room;
public string Name { get; set; }
public long StartTime { get; set; }
// 帧缓存
public FrameBuffer FrameBuffer { get; set; }
// 计算fixedTimefixedTime在客户端是动态调整的会做时间膨胀缩放
public FixedTimeCounter FixedTimeCounter { get; set; }
// 玩家id列表
public List<long> PlayerIds { get; } = new(LSConstValue.MatchCount);
// 预测帧
public int PredictionFrame { get; set; } = -1;
// 权威帧
public int AuthorityFrame { get; set; } = -1;
// 存档
public Replay Replay { get; set; } = new();
private EntityRef<LSWorld> lsWorld;
// LSWorld做成child可以有多个lsWorld比如守望先锋有两个
public LSWorld LSWorld
{
get
{
return this.lsWorld;
}
set
{
this.AddChild(value);
this.lsWorld = value;
}
}
public bool IsReplay { get; set; }
public int SpeedMultiply { get; set; }
}
}