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