Beispiel #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);
     }
 }
Beispiel #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);
             }
         }
     }
 }
Beispiel #4
0
 public virtual void OnGameStateInterrupt(StateMaster.StateInterruptReason byInterruptType)
 {
 }
Beispiel #5
0
 public override void OnGameStateInterrupt(StateMaster.StateInterruptReason byInterruptType)
 {
     this.bToBeDestroyed = true;
 }
Beispiel #6
0
 public override void OnGameStateInterrupt(StateMaster.StateInterruptReason byInterruptType)
 {
     if (byInterruptType == StateMaster.StateInterruptReason.Cutscene && this.bInFishing)
     {
         this.EndFishing(false);
     }
 }