public static IEntity CreateLabelAspect(this IEntity entity, string label, int x, int y)
 {
     var stringComponent = new StringComponent {Value = label};
     var xyComponent = new XYComponent {X = x, Y = y};
     entity.AddComponent(stringComponent).AddComponent(xyComponent);
     return entity;
 }
Beispiel #2
0
        public static IEntity CreateLabelAspect(this IEntity entity, string label, int x, int y)
        {
            var stringComponent = new StringComponent {
                Value = label
            };
            var xyComponent = new XYComponent {
                X = x, Y = y
            };

            entity.AddComponent(stringComponent).AddComponent(xyComponent);
            return(entity);
        }