コード例 #1
0
    public void SetGoals(ref TimeStamped <T> state)
    {
        double timeStamp = state.timeStamp;
        T      local     = state.value;

        this.SetGoals(ref local, ref timeStamp);
    }
コード例 #2
0
    public void SetGoals(ref TimeStamped <T> state)
    {
        double num = state.timeStamp;
        T      t   = state.@value;

        this.SetGoals(ref t, ref num);
    }
コード例 #3
0
        public void TestTimestampedClass()
        {
            ActiveRecordStarter.Initialize(GetConfigSource(), typeof(TimeStamped));
            Recreate();

            TimeStamped ts = new TimeStamped();

            ts.name = "a timestamped record";

            Assert.IsTrue(ts.LastSaved == DateTime.MinValue);
            ts.Save();
            Assert.IsFalse(ts.LastSaved == DateTime.MinValue);

            //DateTime origional_lastsaved = ts.LastSaved;

            ts.name = "another name";
            ts.Save();

            // Assert.IsFalse(ts.LastSaved == origional_lastsaved);
        }
コード例 #4
0
 // privatescope
 internal void IStateInterpolator[[CharacterTransformInterpolatorData, Assembly - CSharp, Version = 0.0 .0 .0, Culture = neutral, PublicKeyToken = null]].SetGoals(ref TimeStamped <CharacterTransformInterpolatorData> sample)
 {
     base.SetGoals(ref sample);
 }
コード例 #5
0
 // privatescope
 internal void IStateInterpolator[[PosRot, Assembly - CSharp, Version = 0.0 .0 .0, Culture = neutral, PublicKeyToken = null]].SetGoals(ref TimeStamped <PosRot> sample)
 {
     base.SetGoals(ref sample);
 }
コード例 #6
0
 void IStateInterpolator <CharacterStateInterpolatorData> .SetGoals(ref TimeStamped <CharacterStateInterpolatorData> sample)
 {
     base.SetGoals(ref sample);
 }
コード例 #7
0
 void IStateInterpolator <PosRot> .SetGoals(ref TimeStamped <PosRot> sample)
 {
     base.SetGoals(ref sample);
 }