CoriolisSave (Coriolis *inst, const LWSaveState *sState) { LWError err; short fn; LWSAVE_I2 (sState, &inst->tversion, 1); fn = (short) inst->fnoise; LWSAVE_I2 (sState, &fn, 1); if (err = (*vpfunc->save) (inst->coriolisscale, sState)) return (err); if (err = (*vpfunc->save) (inst->coriolistwist, sState)) return (err); if (err = (*vpfunc->save) (inst->coriolisoffset, sState)) return (err); if (err = (*vpfunc->save) (inst->increment, sState)) return (err); if (err = (*vpfunc->save) (inst->lacunarity, sState)) return (err); if (err = (*vpfunc->save) (inst->octaves, sState)) return (err); return (NULL); }
DentedSave (Dented *inst, const LWSaveState *sState) { LWError err; short fn; LWSAVE_I2 (sState, &inst->tversion, 1); fn = (short) inst->fnoise; LWSAVE_I2 (sState, &fn, 1); if (err = (*vpfunc->save) (inst->scale, sState)) return (err); if (err = (*vpfunc->save) (inst->power, sState)) return (err); if (err = (*vpfunc->save) (inst->frequency, sState)) return (err); if (err = (*vpfunc->save) (inst->octaves, sState)) return (err); return (NULL); }
HeteroTerrainSave (HeteroTerrain *inst, const LWSaveState *sState) { LWError err; short fn; LWSAVE_I2 (sState, &inst->tversion, 1); fn = (short) inst->fnoise; LWSAVE_I2 (sState, &fn, 1); if (err = (*vpfunc->save) (inst->increment, sState)) return (err); if (err = (*vpfunc->save) (inst->lacunarity, sState)) return (err); if (err = (*vpfunc->save) (inst->octaves, sState)) return (err); if (err = (*vpfunc->save) (inst->offset, sState)) return (err); return (NULL); }