magneseus / 3x-eh Goto Github PK
View Code? Open in Web Editor NEWA Canadian 4X.
License: MIT License
A Canadian 4X.
License: MIT License
I didn't do it... yet.
When the tray resizes, the icons aren't positioned properly.
Solutions:
This is more so I don't forget, but if someone else wants to do this they are more than welcome to go ahead.
The idea is to move any primitive (ie, non-referenced) parameters into a JSON object for constructors.
An example below
public DTask(DBuilding dBuilding, DResource dOutput, int dMaxPeople, string dName)
{
...
}
would become something like
public DTask(DBuilding dBuilding, DResource dOutput, JSONNode data)
{
name = data["name"] as string;
maxPeople = data["maxPeople"] as int;
}
We can also do a check to see if it exists and set to defaults otherwise, but it might be nicer to enforce that on the function calling the constructor so they don't have to hunt down unexpected behavior.
Need to gut the current loading behaviour, and store the new JSON style city data in a folder for starting spawns. (Should be separate from the Save folder for player save games.)
Functionality in, needs unit tests
Need to compare state before and after save/load cycle.
Just fostering discussion,
If every pop is in a building (including the transit, idle, and explore "buildings"), would it make sense to move the population info down into something like City -> Building -> Population
?
Should infect their own meeple, should not infect other meeples
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.