Beispiel #1
0
 /// <summary>
 /// Sends the protocol data for adding itself to the ground.
 /// </summary>
 /// <param name="proto">A reference to the protocol.</param>
 /// <param name="player">The player for whom to add this to.</param>
 /// <param name="stackPos">The stack position of this thing.</param>
 public override void AddThisToGround(ProtocolSend proto,
     Player Player, Position pos, byte stackPos)
 {
     proto.AddScreenCreature(this, Player.KnowsCreature(this),
         pos, stackPos);
 }
Beispiel #2
0
 /// <summary>
 /// Adds itself to the protocol specified via the parameters.
 /// Only to be used when sending map tiles.
 /// </summary>
 /// <param name="proto">The protocol to add to.</param>
 /// <param name="player">The player for whom the add is being done.</param>
 public override void AddItself(ProtocolSend proto, Player player)
 {
     bool knowsCreature = player.KnowsCreature(this);
     proto.AddTileCreature(this, knowsCreature);
 }