public AddEntity ( |
||
entity | ||
location | Point | |
return |
public EntityPlacement AddEntity(EntityInfo entity, Point location)
{
var info = new EntityPlacement {
entity = entity.Name,
screenX = location.X,
screenY = location.Y,
};
screen.Layers[0].Entities.Add(info);
Dirty = true;
return info;
}
ScreenDocument::AddEntity ( |
public void Execute() { screen.AddEntity(entity); }