public PlayerStateMessage(Player player) { this.ID = player.ID; this.Position = player.SimulationState.Position.ToPoint(); this.Velocity = player.SimulationState.Velocity.ToPoint(); this.Movement = player.SimulationState.Movement.ToPoint(); this.MessageTime = NetTime.Now; }
public ChatMessage(Player player,string message) { this.ID = player.ID; this.Message = message; this.MessageTime = NetTime.Now; }
public PlayerSmileyMessage(Player player, SmileyType smiley) { this.ID = player.ID; this.Smiley = smiley; }
public PlayerModeMessage(Player player) { this.Mode = player.Mode; this.ID = player.ID; this.MessageTime = NetTime.Now; }