Simple question 2

  • DreamingWarlord
    8th Apr 2020 Member 0 Permalink

    Why are some elements built into essential functions of the simulation? It's like injecting nuclear waste to your veins.

  • Fusionftw
    8th Apr 2020 Member 0 Permalink

    What do you mean? I've been looking into the code and I can't find any elements built into essential functions.

     

    Are you sure it's not just an integrity check?

    Edited once by Fusionftw. Last: 8th Apr 2020
  • DreamingWarlord
    9th Apr 2020 Member 0 Permalink

    There are switch statements that check some elements to do their moving

  • munibf
    10th Apr 2020 Member 0 Permalink

    you mean the can_move function?

  • jacob1
    10th Apr 2020 Developer 0 Permalink
    What else would we do, have a function similar to Update, but like, OnMoveInto / OnMovedInto instead?

    We could try to extract it out into element functions since there is probably enough of an if else block to justify it. But I've never seen the point. And there's even more things in the simulation code that will need to stay hardcoded.