Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 public ChatMessage(Player player,string message)
 {
     this.ID = player.ID;
     this.Message = message;
     this.MessageTime = NetTime.Now;
 }
Esempio n. 3
0
 public PlayerSmileyMessage(Player player, SmileyType smiley)
 {
     this.ID = player.ID;
     this.Smiley = smiley;
 }
Esempio n. 4
0
 public PlayerModeMessage(Player player)
 {
     this.Mode = player.Mode;
     this.ID = player.ID;
     this.MessageTime = NetTime.Now;
 }