Exemple #1
0
 public override void OnGameStateInterrupt(StateMaster.StateInterruptReason byInterruptType)
 {
     Game1 master = Program.GetTheGame();
     this.bToBeDestroyed = true;
     if (master.xNetworkInfo.enCurrentRole != NetworkHelperInterface.NetworkRole.Client)
     {
         this.xStuckPlayer.xRenderComponent.SwitchAnimation(2, Animation.CancelOptions.IgnoreIfPlaying);
     }
 }
Exemple #2
0
 public override void OnGameStateInterrupt(StateMaster.StateInterruptReason byInterruptType)
 {
     Game1 master = Program.GetTheGame();
     this.bToBeDestroyed = true;
     if (Program.game.xStolenInput == this)
     {
         Program.game.xStolenInput = null;
     }
     this.xStuckPlayer.xCollisionComponent.xMovementCollider.fWeight = 10f;
     if (master.xNetworkInfo.enCurrentRole != NetworkHelperInterface.NetworkRole.Client)
     {
         this.xStuckPlayer.xRenderComponent.SwitchAnimation(2, Animation.CancelOptions.IgnoreIfPlaying);
     }
 }
 public override void OnGameStateInterrupt(StateMaster.StateInterruptReason byInterruptType)
 {
     this.xPlayer.xEntity.xRenderComponent.SwitchAnimation((ushort)(116 + this.xPlayer.xEntity.byAnimationDirection), Animation.CancelOptions.IgnoreIfPlaying);
     this.bToBeDestroyed = true;
     if (Program.GetTheGame().xNetworkInfo.enCurrentRole == NetworkHelperInterface.NetworkRole.Server)
     {
         Game1 master = Program.GetTheGame();
         foreach (PlayerView xOtherView in master.dixPlayers.Values)
         {
             if (xOtherView != master.xLocalPlayer && xOtherView.bInitializedToServer)
             {
                 NetOutgoingMessage om = master.xNetworkInfo.server.CreateMessage();
                 om.Write(253);
                 om.Write(74);
                 om.Write(this.xPlayer.iConnectionIdentifier);
                 om.Write((ushort)(116 + this.xPlayer.xEntity.byAnimationDirection));
                 master.xNetworkInfo.server.SendMessage(om, xOtherView.netConnection, NetDeliveryMethod.ReliableUnordered);
             }
         }
     }
 }
Exemple #4
0
 public virtual void OnGameStateInterrupt(StateMaster.StateInterruptReason byInterruptType)
 {
 }
Exemple #5
0
 public override void OnGameStateInterrupt(StateMaster.StateInterruptReason byInterruptType)
 {
     this.bToBeDestroyed = true;
 }
Exemple #6
0
 public override void OnGameStateInterrupt(StateMaster.StateInterruptReason byInterruptType)
 {
     if (byInterruptType == StateMaster.StateInterruptReason.Cutscene && this.bInFishing)
     {
         this.EndFishing(false);
     }
 }