Originally Posted by
Zyt3x
I can't really see TReport being that useful for anything, really; I just used it as a synonym for reports.simba
The only thing I can see it being useful for is to have a TReport.saveToFile procedure. It would also allow users the option to create multiple progress reports. Why they would want to do that, though, I'm not sure. And I think it could be included in the TPlayer type because the entire report is based off of a TPlayerArray. You could think of it like a TPlayerArray is creating a progress report of itself.
What would you guys rather see? All of it included in the TPlayer type, kept as is in a separate file, or made into a TReport type and kept in a separate file?
I think I prefer a TReport type, that way we can make it more customizable:
Simba Code:
program new;
type
TReport = record
str: string;
tokenBorder, tokenInner: string;
title, author: string;
booleans, integers, etc. // whatever the other parameters are for the current reports.simba
// plus anything else to customize it
end;
procedure TReport.create();
begin
end;
procedure TReport.print(toLog: boolean; wide: boolean = false);
begin
end;
function TReport.saveToFile(fileName: string): boolean;
begin
end;
begin
end.
@Zyt3x; @masterBB; @euphemism; @Ollybest;