How to use the oni-save-parser.getGeyserTypeName 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 / SaveEditor / pages / Geysers / component.tsx View on Github external
{() =>
                    
                        <h5>{getGeyserTypeName(config.typeId.hash)}</h5>
                        <div>({x}, {y})</div>
                    
                }
github RoboPhred / oni-duplicity / src / pages / SaveEditor / pages / Geysers / components / GeyserEditor / component.tsx View on Github external
const {
            className,
            gameObject
        } = this.props;

        const behavior = gameObject.getBehavior(GeyserBehavior);
        const config = behavior &amp;&amp; behavior.templateData.configuration;
        if (!config) {
            return (
                <div>
                    This geyser has not been initialized, and cannot be edited.  Probably because it has not yet been discovered in-game.
                </div>
            );
        }

        const materialType = getGeyserTypeName(config.typeId.hash) || "[Unknown]";
        return (
            <div>
                <div>
                    <label>
                        Type
                    </label>
                    <div>
                        <div>
                            </div></div></div></div>