コード例 #1
0
        public override bool WriteToBuffer(BufferWrite buffer)
        {
            buffer.WriteInt(Tick);
            buffer.WriteULong(Utils.Clamp <ulong>((ulong)(HostFrameTime * Networking.NetTickScaleUp), 0, 65535));
            buffer.WriteULong(Utils.Clamp <ulong>((ulong)(HostFrameTimeStdDeviation * Networking.NetTickScaleUp), 0, 65535));

            return(true);
        }