Пример #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;
     }
 }
Пример #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;
     }
 }
Пример #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);
    }
Пример #4
0
 protected virtual void OnSerializeData(TTS.TrackedDataSerializeEventArgs e)
 {
     trackedDataSerialize?.Invoke(this, e);
     trackedDataAvailable = false;
 }
Пример #5
0
 void TrackedDataHandler(object sender, TTS.TrackedDataSerializeEventArgs e)
 {
     TTS.WheelSpeedMessage m = new TTS.WheelSpeedMessage(wheelSpeed);
     e.messages.Add(m);
 }
Пример #6
0
 void TrackedDataHandler(object sender, TTS.TrackedDataSerializeEventArgs e)
 {
     TTS.DoorAnimTrigger m = new TTS.DoorAnimTrigger(occupied);
     e.messages.Add(m);
 }