示例#1
0
        protected override void Process()
        {
            map = new Map(resolution);
            Vector2 centeredSquareOffset = new Vector2(squareSize / 2, squareSize / 2);

            foreach (IEntity entity in input.AllEntities)
            {
                map.ImprintSquare(entity.Position - centeredSquareOffset, squareSize, value);
            }

            output = this;
        }
示例#2
0
 protected override void Process()
 {
     output = this;
 }