-
Notifications
You must be signed in to change notification settings - Fork 5
Conversation
Sync with Master
Added ToDo's
Added ToDo's
Fixed moons-String. Added ToDo's
Changed some code to LINQ
Source/Database/PQSPreset.cs
Outdated
namespace Stellarator.Database | ||
{ | ||
using ConfigNodeParser; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please leave the usings outside of the namespace declaration.
Source/Database/PQSPreset.cs
Outdated
/// <summary> | ||
/// Prefab for a PQS | ||
/// Prefab for a PQS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure if I like these leading whitespaces.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I revert this?
I thought with them, the text between the next nodes is easier to read. :)
Source/Generator.cs
Outdated
/// </summary> | ||
public static Int32 Seed { get; set; } | ||
private static int Seed { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use CLR type names instead of type aliases
Source/Generator.cs
Outdated
{ | ||
// Log | ||
Console.WriteLine("Generating the solar system..."); | ||
Console.WriteLine(); | ||
|
||
// Create a new Solar System using libaccrete | ||
SolarSystem system = new SolarSystem(false, true, s => { }); | ||
SolarSystem.Generate(ref system, seed.GetHashCode(), Int32.MaxValue); | ||
var system = new SolarSystem(false, true, s => { }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't use var.
Source/Generator.cs
Outdated
else | ||
{ | ||
template.AddValue("name", Utility.GetTemplate(planet.surface_pressure > 0.00001, false)); | ||
template.AddValue("removeAllPQSMods", "True"); | ||
template.AddValue("removeAllPQSmods", "True"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You know that you changed a value that is later read by Kopernicus? Kopernicus is case sensitive
Source/Generator.cs
Outdated
Color average = default(Color); | ||
GeneratePQS(ref node, name, folder, planet, ref average); | ||
Color average; | ||
GeneratePqs(ref node, name, folder, planet, out average); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep it PQS
Source/Generator.cs
Outdated
|
||
// Create a node for the mods | ||
ConfigNode mods = new ConfigNode("Mods"); | ||
var mods = new ConfigNode("mods"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above, you changed a value that is later read by Kopernicus
Source/Generator.cs
Outdated
{ | ||
// Create a VertexBuildData | ||
var builddata = new VertexBuildData | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This indent looks weird
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ReSharper told it to me, for a better readability
Should i revert it?
Source/Generator.cs
Outdated
// Save the textures | ||
Directory.CreateDirectory(Directory.GetCurrentDirectory() + "/systems/" + folder + "/PluginData/"); | ||
using (var normals = Utility.BumpToNormalMap(height, 9) | ||
) // TODO: Implement something to make strength dynamic |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No newline maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The newline intends a better reading
Should I revert it?
diffuse.Bitmap
.Save(Directory.GetCurrentDirectory() + "/systems/" + folder + "/PluginData/" + name + "_Texture.png",
ImageFormat.Png);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the code I marked, there is a new line for a )
, I don't think that is neccessary. The comment can stay on the new line though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh, It is changed. :)
"Please leave the usings outside of the namespace declaration." in Database "Please use CLR type names instead of type aliases" "Please don't use var." "You know that you changed a value that is later read by Kopernicus? Kopernicus is case sensitive" D: Sorry "Please keep it PQS" "Same as above, you changed a value that is later read by Kopernicus" D: Still sorry D:
I made several commits to integrate your advises Edit: |
Source/Program.cs
Outdated
var seed = Prompt("Please enter the seed you want to use: ", "--seed"); | ||
var folder = Prompt("Please choose a folder name for your system: ", "--name"); | ||
var systematic = Prompt("Use systematic planet names? (y/n) ", "--systematic", true); | ||
string seed = Prompt("Please enter the seed you want to use: ", "--seed"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use CLR type names here too (and everywhere else)
Hey @StollD , is that okay now? :) |
…t is neccessary. The comment can stay on the new line though." - Added a info about the code conventions.
I also added an Info about the code conventions, you want in this project. :) |
Looks ok to me. Merging. Thanks for your contribution! |
Perfect :) |
Added ToDo's
Fixed moons-String.
Optimized Code further (C#7 conventions)
Changed some code to LINQ