Giter Club home page Giter Club logo

3x-eh's People

Contributors

adnanelgalla avatar devon-mp avatar jaterx avatar magneseus avatar shalune avatar swarm-project avatar themrpaul avatar yjmrobert avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

3x-eh's Issues

Idle task tray resizing improperly.

When the tray resizes, the icons aren't positioned properly.

Solutions:

  • Change GenerateTaskTrays to account for hidden task slots
  • Position TaskTrays to always start at the same position, might make things look more consistent anyways

Refactor DObjects to take a JSONNode parameter in constructors.

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.

Refactor initial city spawns.

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.)

Population structure

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.