Esempio n. 1
0
 void TrackedDataHandler(object sender, TTS.TrackedDataSerializeEventArgs e)
 {
     if (trackedDataAvailable)
     {
         TTS.NetworkedWheelMessage m = new TTS.NetworkedWheelMessage(frontBroken, backBroken);
         e.messages.Add(m);
         trackedDataAvailable = false;
     }
 }
Esempio n. 2
0
 void TrackedDataHandler(object sender, TTS.TrackedDataSerializeEventArgs e)
 {
     if (trackedDataAvailable)
     {
         TTS.NetworkedPlayerMessage m = new TTS.NetworkedPlayerMessage(foodLevel, JobTag);
         e.messages.Add(m);
         trackedDataAvailable = false;
     }
 }
Esempio n. 3
0
    void TrackedDataHandler(object sender, TTS.TrackedDataSerializeEventArgs e)
    {
        while (animChanges.Count > 0)
        {
            TTS.PlayerAnimationMessage m = new TTS.PlayerAnimationMessage(animChanges[0], animParams[paramTags[animChanges[0]]]);
            e.messages.Add(m);
            animChanges.RemoveAt(0);
        }

        while (triggerChanges.Count > 0)
        {
            TTS.PlayerAnimTrigger m = new TTS.PlayerAnimTrigger(triggerChanges[0]);
            e.messages.Add(m);
            triggerChanges.RemoveAt(0);
        }

        TTS.PlayerWalkSpeed wS = new TTS.PlayerWalkSpeed(WalkSpeed);
        e.messages.Add(wS);
    }
Esempio n. 4
0
 protected virtual void OnSerializeData(TTS.TrackedDataSerializeEventArgs e)
 {
     trackedDataSerialize?.Invoke(this, e);
     trackedDataAvailable = false;
 }
Esempio n. 5
0
 void TrackedDataHandler(object sender, TTS.TrackedDataSerializeEventArgs e)
 {
     TTS.WheelSpeedMessage m = new TTS.WheelSpeedMessage(wheelSpeed);
     e.messages.Add(m);
 }
Esempio n. 6
0
 void TrackedDataHandler(object sender, TTS.TrackedDataSerializeEventArgs e)
 {
     TTS.DoorAnimTrigger m = new TTS.DoorAnimTrigger(occupied);
     e.messages.Add(m);
 }