Example #1
0
 public EntityInfo GetEntityInfo(Entity target)
 {
     return new EntityInfo
     {
         Name = target.GetName(),
         Position = target.Body.Position,
         Rotation = target.Body.Rotation,
         Size = target.Size,
         Speed = target.GetSpeed(),
         AverageColor = target.CurrentSprite.AverageColor
     };
 }