Example #1
0
 public override void Compose(Yupi.Protocol.ISender session, Yupi.Model.Domain.AvatarEffect effect)
 {
     using (ServerMessage message = Pool.GetMessageBuffer(Id))
     {
         message.AppendInteger(effect.EffectId);
         session.Send(message);
     }
 }
 public override void Compose(Yupi.Protocol.ISender session, Yupi.Model.Domain.AvatarEffect effect)
 {
     using (ServerMessage message = Pool.GetMessageBuffer(Id))
     {
         message.AppendInteger(effect.EffectId);
         message.AppendInteger(effect.Type);
         message.AppendInteger(effect.TotalDuration);
         message.AppendBool(effect.TotalDuration == -1); // TODO What does this mean actually?
         session.Send(message);
     }
 }