How to use the oni-save-parser.GeyserTypeNames.map function in oni-save-parser

To help you get started, we’ve selected a few oni-save-parser examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github RoboPhred / oni-duplicity / src / pages / GeysersPage / GeysersPage.tsx View on Github external
const GeysersPage: React.FC = ({ classes, t }) => {
  const gameObjectIds = useGameObjects(
    GeyserTypeNames.map(x => `GeyserGeneric_${x}`)
  );
  return (
    
      
      <div>
        {gameObjectIds.map(gameObjectId =&gt; (
          
        ))}
      </div>
    
  );
};
github RoboPhred / oni-duplicity / src / pages / SaveEditor / components / editors / game-objects / GeyserEditor / GeyserEditor.tsx View on Github external
onYearPercentRollChanged,
      iterationLengthRoll,
      onIterationLengthRollChanged,
      iterationPercentRoll,
      onIterationPercentRollChanged
    } = this.props;

    if (geyserType == null) {
      return (
        
          The geyser type was not recognized.
        
      );
    }

    const options = GeyserTypeNames.map(x =&gt; ({
      label: x,
      value: x
    }));

    return (
      Geyser}&gt;
        
          
        
        
          The following values are percentage decimals between 0 (0%) and 1
          (100%). They indicate what percentage of the min/max value to use for