コード例 #1
0
ファイル: NetClockTester.cs プロジェクト: sknchan/LegacyRust
 public static NetClockTester.ValidityFlags TestValidity(ref NetClockTester test, ref uLink.NetworkMessageInfo info, long intervalMS, NetClockTester.ValidityFlags testFor)
 {
     NetClockTester.ValidityFlags validityFlag = NetClockTester.TestValidity(ref test, info.timestampInMillis, intervalMS);
     test.Results.Add(validityFlag & testFor);
     return(validityFlag);
 }
コード例 #2
0
ファイル: NetClockTester.cs プロジェクト: sknchan/LegacyRust
 public static NetClockTester.ValidityFlags TestValidity(ref NetClockTester test, ref uLink.NetworkMessageInfo info, double intervalSec, NetClockTester.ValidityFlags testFor)
 {
     return(NetClockTester.TestValidity(ref test, ref info, (long)Math.Floor(intervalSec * 1000), testFor));
 }