diff --git a/distr/flecs.c b/distr/flecs.c index 39a673627..7eb9a8d9e 100644 --- a/distr/flecs.c +++ b/distr/flecs.c @@ -17735,142 +17735,142 @@ ECS_TAG_DECLARE(EcsAlertError); ECS_TAG_DECLARE(EcsAlertCritical); #endif #ifdef FLECS_UNITS -ECS_DECLARE(EcsUnitPrefixes); - -ECS_DECLARE(EcsYocto); -ECS_DECLARE(EcsZepto); -ECS_DECLARE(EcsAtto); -ECS_DECLARE(EcsFemto); -ECS_DECLARE(EcsPico); -ECS_DECLARE(EcsNano); -ECS_DECLARE(EcsMicro); -ECS_DECLARE(EcsMilli); -ECS_DECLARE(EcsCenti); -ECS_DECLARE(EcsDeci); -ECS_DECLARE(EcsDeca); -ECS_DECLARE(EcsHecto); -ECS_DECLARE(EcsKilo); -ECS_DECLARE(EcsMega); -ECS_DECLARE(EcsGiga); -ECS_DECLARE(EcsTera); -ECS_DECLARE(EcsPeta); -ECS_DECLARE(EcsExa); -ECS_DECLARE(EcsZetta); -ECS_DECLARE(EcsYotta); - -ECS_DECLARE(EcsKibi); -ECS_DECLARE(EcsMebi); -ECS_DECLARE(EcsGibi); -ECS_DECLARE(EcsTebi); -ECS_DECLARE(EcsPebi); -ECS_DECLARE(EcsExbi); -ECS_DECLARE(EcsZebi); -ECS_DECLARE(EcsYobi); - -ECS_DECLARE(EcsDuration); - ECS_DECLARE(EcsPicoSeconds); - ECS_DECLARE(EcsNanoSeconds); - ECS_DECLARE(EcsMicroSeconds); - ECS_DECLARE(EcsMilliSeconds); - ECS_DECLARE(EcsSeconds); - ECS_DECLARE(EcsMinutes); - ECS_DECLARE(EcsHours); - ECS_DECLARE(EcsDays); - -ECS_DECLARE(EcsTime); - ECS_DECLARE(EcsDate); - -ECS_DECLARE(EcsMass); - ECS_DECLARE(EcsGrams); - ECS_DECLARE(EcsKiloGrams); - -ECS_DECLARE(EcsElectricCurrent); - ECS_DECLARE(EcsAmpere); - -ECS_DECLARE(EcsAmount); - ECS_DECLARE(EcsMole); - -ECS_DECLARE(EcsLuminousIntensity); - ECS_DECLARE(EcsCandela); - -ECS_DECLARE(EcsForce); - ECS_DECLARE(EcsNewton); - -ECS_DECLARE(EcsLength); - ECS_DECLARE(EcsMeters); - ECS_DECLARE(EcsPicoMeters); - ECS_DECLARE(EcsNanoMeters); - ECS_DECLARE(EcsMicroMeters); - ECS_DECLARE(EcsMilliMeters); - ECS_DECLARE(EcsCentiMeters); - ECS_DECLARE(EcsKiloMeters); - ECS_DECLARE(EcsMiles); - ECS_DECLARE(EcsPixels); - -ECS_DECLARE(EcsPressure); - ECS_DECLARE(EcsPascal); - ECS_DECLARE(EcsBar); - -ECS_DECLARE(EcsSpeed); - ECS_DECLARE(EcsMetersPerSecond); - ECS_DECLARE(EcsKiloMetersPerSecond); - ECS_DECLARE(EcsKiloMetersPerHour); - ECS_DECLARE(EcsMilesPerHour); - -ECS_DECLARE(EcsAcceleration); - -ECS_DECLARE(EcsTemperature); - ECS_DECLARE(EcsKelvin); - ECS_DECLARE(EcsCelsius); - ECS_DECLARE(EcsFahrenheit); - -ECS_DECLARE(EcsData); - ECS_DECLARE(EcsBits); - ECS_DECLARE(EcsKiloBits); - ECS_DECLARE(EcsMegaBits); - ECS_DECLARE(EcsGigaBits); - ECS_DECLARE(EcsBytes); - ECS_DECLARE(EcsKiloBytes); - ECS_DECLARE(EcsMegaBytes); - ECS_DECLARE(EcsGigaBytes); - ECS_DECLARE(EcsKibiBytes); - ECS_DECLARE(EcsGibiBytes); - ECS_DECLARE(EcsMebiBytes); - -ECS_DECLARE(EcsDataRate); - ECS_DECLARE(EcsBitsPerSecond); - ECS_DECLARE(EcsKiloBitsPerSecond); - ECS_DECLARE(EcsMegaBitsPerSecond); - ECS_DECLARE(EcsGigaBitsPerSecond); - ECS_DECLARE(EcsBytesPerSecond); - ECS_DECLARE(EcsKiloBytesPerSecond); - ECS_DECLARE(EcsMegaBytesPerSecond); - ECS_DECLARE(EcsGigaBytesPerSecond); - -ECS_DECLARE(EcsPercentage); - -ECS_DECLARE(EcsAngle); - ECS_DECLARE(EcsRadians); - ECS_DECLARE(EcsDegrees); - -ECS_DECLARE(EcsColor); - ECS_DECLARE(EcsColorRgb); - ECS_DECLARE(EcsColorHsl); - ECS_DECLARE(EcsColorCss); - -ECS_DECLARE(EcsBel); -ECS_DECLARE(EcsDeciBel); - -ECS_DECLARE(EcsFrequency); - ECS_DECLARE(EcsHertz); - ECS_DECLARE(EcsKiloHertz); - ECS_DECLARE(EcsMegaHertz); - ECS_DECLARE(EcsGigaHertz); - -ECS_DECLARE(EcsUri); - ECS_DECLARE(EcsUriHyperlink); - ECS_DECLARE(EcsUriImage); - ECS_DECLARE(EcsUriFile); +ecs_entity_t EcsUnitPrefixes; + +ecs_entity_t EcsYocto; +ecs_entity_t EcsZepto; +ecs_entity_t EcsAtto; +ecs_entity_t EcsFemto; +ecs_entity_t EcsPico; +ecs_entity_t EcsNano; +ecs_entity_t EcsMicro; +ecs_entity_t EcsMilli; +ecs_entity_t EcsCenti; +ecs_entity_t EcsDeci; +ecs_entity_t EcsDeca; +ecs_entity_t EcsHecto; +ecs_entity_t EcsKilo; +ecs_entity_t EcsMega; +ecs_entity_t EcsGiga; +ecs_entity_t EcsTera; +ecs_entity_t EcsPeta; +ecs_entity_t EcsExa; +ecs_entity_t EcsZetta; +ecs_entity_t EcsYotta; + +ecs_entity_t EcsKibi; +ecs_entity_t EcsMebi; +ecs_entity_t EcsGibi; +ecs_entity_t EcsTebi; +ecs_entity_t EcsPebi; +ecs_entity_t EcsExbi; +ecs_entity_t EcsZebi; +ecs_entity_t EcsYobi; + +ecs_entity_t EcsDuration; + ecs_entity_t EcsPicoSeconds; + ecs_entity_t EcsNanoSeconds; + ecs_entity_t EcsMicroSeconds; + ecs_entity_t EcsMilliSeconds; + ecs_entity_t EcsSeconds; + ecs_entity_t EcsMinutes; + ecs_entity_t EcsHours; + ecs_entity_t EcsDays; + +ecs_entity_t EcsTime; + ecs_entity_t EcsDate; + +ecs_entity_t EcsMass; + ecs_entity_t EcsGrams; + ecs_entity_t EcsKiloGrams; + +ecs_entity_t EcsElectricCurrent; + ecs_entity_t EcsAmpere; + +ecs_entity_t EcsAmount; + ecs_entity_t EcsMole; + +ecs_entity_t EcsLuminousIntensity; + ecs_entity_t EcsCandela; + +ecs_entity_t EcsForce; + ecs_entity_t EcsNewton; + +ecs_entity_t EcsLength; + ecs_entity_t EcsMeters; + ecs_entity_t EcsPicoMeters; + ecs_entity_t EcsNanoMeters; + ecs_entity_t EcsMicroMeters; + ecs_entity_t EcsMilliMeters; + ecs_entity_t EcsCentiMeters; + ecs_entity_t EcsKiloMeters; + ecs_entity_t EcsMiles; + ecs_entity_t EcsPixels; + +ecs_entity_t EcsPressure; + ecs_entity_t EcsPascal; + ecs_entity_t EcsBar; + +ecs_entity_t EcsSpeed; + ecs_entity_t EcsMetersPerSecond; + ecs_entity_t EcsKiloMetersPerSecond; + ecs_entity_t EcsKiloMetersPerHour; + ecs_entity_t EcsMilesPerHour; + +ecs_entity_t EcsAcceleration; + +ecs_entity_t EcsTemperature; + ecs_entity_t EcsKelvin; + ecs_entity_t EcsCelsius; + ecs_entity_t EcsFahrenheit; + +ecs_entity_t EcsData; + ecs_entity_t EcsBits; + ecs_entity_t EcsKiloBits; + ecs_entity_t EcsMegaBits; + ecs_entity_t EcsGigaBits; + ecs_entity_t EcsBytes; + ecs_entity_t EcsKiloBytes; + ecs_entity_t EcsMegaBytes; + ecs_entity_t EcsGigaBytes; + ecs_entity_t EcsKibiBytes; + ecs_entity_t EcsGibiBytes; + ecs_entity_t EcsMebiBytes; + +ecs_entity_t EcsDataRate; + ecs_entity_t EcsBitsPerSecond; + ecs_entity_t EcsKiloBitsPerSecond; + ecs_entity_t EcsMegaBitsPerSecond; + ecs_entity_t EcsGigaBitsPerSecond; + ecs_entity_t EcsBytesPerSecond; + ecs_entity_t EcsKiloBytesPerSecond; + ecs_entity_t EcsMegaBytesPerSecond; + ecs_entity_t EcsGigaBytesPerSecond; + +ecs_entity_t EcsPercentage; + +ecs_entity_t EcsAngle; + ecs_entity_t EcsRadians; + ecs_entity_t EcsDegrees; + +ecs_entity_t EcsColor; + ecs_entity_t EcsColorRgb; + ecs_entity_t EcsColorHsl; + ecs_entity_t EcsColorCss; + +ecs_entity_t EcsBel; +ecs_entity_t EcsDeciBel; + +ecs_entity_t EcsFrequency; + ecs_entity_t EcsHertz; + ecs_entity_t EcsKiloHertz; + ecs_entity_t EcsMegaHertz; + ecs_entity_t EcsGigaHertz; + +ecs_entity_t EcsUri; + ecs_entity_t EcsUriHyperlink; + ecs_entity_t EcsUriImage; + ecs_entity_t EcsUriFile; #endif /* -- Private functions -- */ diff --git a/distr/flecs.h b/distr/flecs.h index 488a822b4..f77a2c860 100644 --- a/distr/flecs.h +++ b/distr/flecs.h @@ -13758,37 +13758,37 @@ extern "C" { * @{ */ -FLECS_API extern ECS_DECLARE(EcsUnitPrefixes); /**< Parent scope for prefixes. */ - -FLECS_API extern ECS_DECLARE(EcsYocto); /**< Yocto unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsZepto); /**< Zepto unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsAtto); /**< Atto unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsFemto); /**< Femto unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsPico); /**< Pico unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsNano); /**< Nano unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsMicro); /**< Micro unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsMilli); /**< Milli unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsCenti); /**< Centi unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsDeci); /**< Deci unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsDeca); /**< Deca unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsHecto); /**< Hecto unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsKilo); /**< Kilo unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsMega); /**< Mega unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsGiga); /**< Giga unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsTera); /**< Tera unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsPeta); /**< Peta unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsExa); /**< Exa unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsZetta); /**< Zetta unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsYotta); /**< Yotta unit prefix. */ - -FLECS_API extern ECS_DECLARE(EcsKibi); /**< Kibi unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsMebi); /**< Mebi unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsGibi); /**< Gibi unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsTebi); /**< Tebi unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsPebi); /**< Pebi unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsExbi); /**< Exbi unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsZebi); /**< Zebi unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsYobi); /**< Yobi unit prefix. */ +FLECS_API extern ecs_entity_t EcsUnitPrefixes; /**< Parent scope for prefixes. */ + +FLECS_API extern ecs_entity_t EcsYocto; /**< Yocto unit prefix. */ +FLECS_API extern ecs_entity_t EcsZepto; /**< Zepto unit prefix. */ +FLECS_API extern ecs_entity_t EcsAtto; /**< Atto unit prefix. */ +FLECS_API extern ecs_entity_t EcsFemto; /**< Femto unit prefix. */ +FLECS_API extern ecs_entity_t EcsPico; /**< Pico unit prefix. */ +FLECS_API extern ecs_entity_t EcsNano; /**< Nano unit prefix. */ +FLECS_API extern ecs_entity_t EcsMicro; /**< Micro unit prefix. */ +FLECS_API extern ecs_entity_t EcsMilli; /**< Milli unit prefix. */ +FLECS_API extern ecs_entity_t EcsCenti; /**< Centi unit prefix. */ +FLECS_API extern ecs_entity_t EcsDeci; /**< Deci unit prefix. */ +FLECS_API extern ecs_entity_t EcsDeca; /**< Deca unit prefix. */ +FLECS_API extern ecs_entity_t EcsHecto; /**< Hecto unit prefix. */ +FLECS_API extern ecs_entity_t EcsKilo; /**< Kilo unit prefix. */ +FLECS_API extern ecs_entity_t EcsMega; /**< Mega unit prefix. */ +FLECS_API extern ecs_entity_t EcsGiga; /**< Giga unit prefix. */ +FLECS_API extern ecs_entity_t EcsTera; /**< Tera unit prefix. */ +FLECS_API extern ecs_entity_t EcsPeta; /**< Peta unit prefix. */ +FLECS_API extern ecs_entity_t EcsExa; /**< Exa unit prefix. */ +FLECS_API extern ecs_entity_t EcsZetta; /**< Zetta unit prefix. */ +FLECS_API extern ecs_entity_t EcsYotta; /**< Yotta unit prefix. */ + +FLECS_API extern ecs_entity_t EcsKibi; /**< Kibi unit prefix. */ +FLECS_API extern ecs_entity_t EcsMebi; /**< Mebi unit prefix. */ +FLECS_API extern ecs_entity_t EcsGibi; /**< Gibi unit prefix. */ +FLECS_API extern ecs_entity_t EcsTebi; /**< Tebi unit prefix. */ +FLECS_API extern ecs_entity_t EcsPebi; /**< Pebi unit prefix. */ +FLECS_API extern ecs_entity_t EcsExbi; /**< Exbi unit prefix. */ +FLECS_API extern ecs_entity_t EcsZebi; /**< Zebi unit prefix. */ +FLECS_API extern ecs_entity_t EcsYobi; /**< Yobi unit prefix. */ /** @} */ @@ -13798,15 +13798,15 @@ FLECS_API extern ECS_DECLARE(EcsYobi); /**< Yobi unit prefix. */ * @{ */ -FLECS_API extern ECS_DECLARE(EcsDuration); /**< Duration quantity. */ -FLECS_API extern ECS_DECLARE(EcsPicoSeconds); /**< PicoSeconds duration unit. */ -FLECS_API extern ECS_DECLARE(EcsNanoSeconds); /**< NanoSeconds duration unit. */ -FLECS_API extern ECS_DECLARE(EcsMicroSeconds); /**< MicroSeconds duration unit. */ -FLECS_API extern ECS_DECLARE(EcsMilliSeconds); /**< MilliSeconds duration unit. */ -FLECS_API extern ECS_DECLARE(EcsSeconds); /**< Seconds duration unit. */ -FLECS_API extern ECS_DECLARE(EcsMinutes); /**< Minutes duration unit. */ -FLECS_API extern ECS_DECLARE(EcsHours); /**< Hours duration unit. */ -FLECS_API extern ECS_DECLARE(EcsDays); /**< Days duration unit. */ +FLECS_API extern ecs_entity_t EcsDuration; /**< Duration quantity. */ +FLECS_API extern ecs_entity_t EcsPicoSeconds; /**< PicoSeconds duration unit. */ +FLECS_API extern ecs_entity_t EcsNanoSeconds; /**< NanoSeconds duration unit. */ +FLECS_API extern ecs_entity_t EcsMicroSeconds; /**< MicroSeconds duration unit. */ +FLECS_API extern ecs_entity_t EcsMilliSeconds; /**< MilliSeconds duration unit. */ +FLECS_API extern ecs_entity_t EcsSeconds; /**< Seconds duration unit. */ +FLECS_API extern ecs_entity_t EcsMinutes; /**< Minutes duration unit. */ +FLECS_API extern ecs_entity_t EcsHours; /**< Hours duration unit. */ +FLECS_API extern ecs_entity_t EcsDays; /**< Days duration unit. */ /** @} */ @@ -13816,8 +13816,8 @@ FLECS_API extern ECS_DECLARE(EcsDays); /**< Days duration unit. */ * @{ */ -FLECS_API extern ECS_DECLARE(EcsTime); /**< Time quantity. */ -FLECS_API extern ECS_DECLARE(EcsDate); /**< Date unit. */ +FLECS_API extern ecs_entity_t EcsTime; /**< Time quantity. */ +FLECS_API extern ecs_entity_t EcsDate; /**< Date unit. */ /** @} */ @@ -13827,9 +13827,9 @@ FLECS_API extern ECS_DECLARE(EcsDate); /**< Date unit. */ * @{ */ -FLECS_API extern ECS_DECLARE(EcsMass); /**< Mass quantity. */ -FLECS_API extern ECS_DECLARE(EcsGrams); /**< Grams unit. */ -FLECS_API extern ECS_DECLARE(EcsKiloGrams); /**< KiloGrams unit. */ +FLECS_API extern ecs_entity_t EcsMass; /**< Mass quantity. */ +FLECS_API extern ecs_entity_t EcsGrams; /**< Grams unit. */ +FLECS_API extern ecs_entity_t EcsKiloGrams; /**< KiloGrams unit. */ /** @} */ @@ -13839,8 +13839,8 @@ FLECS_API extern ECS_DECLARE(EcsKiloGrams); /**< KiloGrams unit. */ * @{ */ -FLECS_API extern ECS_DECLARE(EcsElectricCurrent); /**< ElectricCurrent quantity. */ -FLECS_API extern ECS_DECLARE(EcsAmpere); /**< Ampere unit. */ +FLECS_API extern ecs_entity_t EcsElectricCurrent; /**< ElectricCurrent quantity. */ +FLECS_API extern ecs_entity_t EcsAmpere; /**< Ampere unit. */ /** @} */ @@ -13850,8 +13850,8 @@ FLECS_API extern ECS_DECLARE(EcsAmpere); /**< Ampere unit. */ * @{ */ -FLECS_API extern ECS_DECLARE(EcsAmount); /**< Amount quantity. */ -FLECS_API extern ECS_DECLARE(EcsMole); /**< Mole unit. */ +FLECS_API extern ecs_entity_t EcsAmount; /**< Amount quantity. */ +FLECS_API extern ecs_entity_t EcsMole; /**< Mole unit. */ /** @} */ @@ -13861,8 +13861,8 @@ FLECS_API extern ECS_DECLARE(EcsMole); /**< Mole unit. */ * @{ */ -FLECS_API extern ECS_DECLARE(EcsLuminousIntensity); /**< LuminousIntensity quantity. */ -FLECS_API extern ECS_DECLARE(EcsCandela); /**< Candela unit. */ +FLECS_API extern ecs_entity_t EcsLuminousIntensity; /**< LuminousIntensity quantity. */ +FLECS_API extern ecs_entity_t EcsCandela; /**< Candela unit. */ /** @} */ @@ -13872,8 +13872,8 @@ FLECS_API extern ECS_DECLARE(EcsCandela); /**< Candela unit. */ * @{ */ -FLECS_API extern ECS_DECLARE(EcsForce); /**< Force quantity. */ -FLECS_API extern ECS_DECLARE(EcsNewton); /**< Newton unit. */ +FLECS_API extern ecs_entity_t EcsForce; /**< Force quantity. */ +FLECS_API extern ecs_entity_t EcsNewton; /**< Newton unit. */ /** @} */ @@ -13883,16 +13883,16 @@ FLECS_API extern ECS_DECLARE(EcsNewton); /**< Newton unit. */ * @{ */ -FLECS_API extern ECS_DECLARE(EcsLength); /**< Length quantity. */ -FLECS_API extern ECS_DECLARE(EcsMeters); /**< Meters unit. */ -FLECS_API extern ECS_DECLARE(EcsPicoMeters); /**< PicoMeters unit. */ -FLECS_API extern ECS_DECLARE(EcsNanoMeters); /**< NanoMeters unit. */ -FLECS_API extern ECS_DECLARE(EcsMicroMeters); /**< MicroMeters unit. */ -FLECS_API extern ECS_DECLARE(EcsMilliMeters); /**< MilliMeters unit. */ -FLECS_API extern ECS_DECLARE(EcsCentiMeters); /**< CentiMeters unit. */ -FLECS_API extern ECS_DECLARE(EcsKiloMeters); /**< KiloMeters unit. */ -FLECS_API extern ECS_DECLARE(EcsMiles); /**< Miles unit. */ -FLECS_API extern ECS_DECLARE(EcsPixels); /**< Pixels unit. */ +FLECS_API extern ecs_entity_t EcsLength; /**< Length quantity. */ +FLECS_API extern ecs_entity_t EcsMeters; /**< Meters unit. */ +FLECS_API extern ecs_entity_t EcsPicoMeters; /**< PicoMeters unit. */ +FLECS_API extern ecs_entity_t EcsNanoMeters; /**< NanoMeters unit. */ +FLECS_API extern ecs_entity_t EcsMicroMeters; /**< MicroMeters unit. */ +FLECS_API extern ecs_entity_t EcsMilliMeters; /**< MilliMeters unit. */ +FLECS_API extern ecs_entity_t EcsCentiMeters; /**< CentiMeters unit. */ +FLECS_API extern ecs_entity_t EcsKiloMeters; /**< KiloMeters unit. */ +FLECS_API extern ecs_entity_t EcsMiles; /**< Miles unit. */ +FLECS_API extern ecs_entity_t EcsPixels; /**< Pixels unit. */ /** @} */ @@ -13902,9 +13902,9 @@ FLECS_API extern ECS_DECLARE(EcsPixels); /**< Pixels unit. */ * @{ */ -FLECS_API extern ECS_DECLARE(EcsPressure); /**< Pressure quantity. */ -FLECS_API extern ECS_DECLARE(EcsPascal); /**< Pascal unit. */ -FLECS_API extern ECS_DECLARE(EcsBar); /**< Bar unit. */ +FLECS_API extern ecs_entity_t EcsPressure; /**< Pressure quantity. */ +FLECS_API extern ecs_entity_t EcsPascal; /**< Pascal unit. */ +FLECS_API extern ecs_entity_t EcsBar; /**< Bar unit. */ /** @} */ @@ -13914,11 +13914,11 @@ FLECS_API extern ECS_DECLARE(EcsBar); /**< Bar unit. */ * @{ */ -FLECS_API extern ECS_DECLARE(EcsSpeed); /**< Speed quantity. */ -FLECS_API extern ECS_DECLARE(EcsMetersPerSecond); /**< MetersPerSecond unit. */ -FLECS_API extern ECS_DECLARE(EcsKiloMetersPerSecond); /**< KiloMetersPerSecond unit. */ -FLECS_API extern ECS_DECLARE(EcsKiloMetersPerHour); /**< KiloMetersPerHour unit. */ -FLECS_API extern ECS_DECLARE(EcsMilesPerHour); /**< MilesPerHour unit. */ +FLECS_API extern ecs_entity_t EcsSpeed; /**< Speed quantity. */ +FLECS_API extern ecs_entity_t EcsMetersPerSecond; /**< MetersPerSecond unit. */ +FLECS_API extern ecs_entity_t EcsKiloMetersPerSecond; /**< KiloMetersPerSecond unit. */ +FLECS_API extern ecs_entity_t EcsKiloMetersPerHour; /**< KiloMetersPerHour unit. */ +FLECS_API extern ecs_entity_t EcsMilesPerHour; /**< MilesPerHour unit. */ /** @} */ @@ -13928,10 +13928,10 @@ FLECS_API extern ECS_DECLARE(EcsMilesPerHour); /**< MilesPerHour unit * @{ */ -FLECS_API extern ECS_DECLARE(EcsTemperature); /**< Temperature quantity. */ -FLECS_API extern ECS_DECLARE(EcsKelvin); /**< Kelvin unit. */ -FLECS_API extern ECS_DECLARE(EcsCelsius); /**< Celsius unit. */ -FLECS_API extern ECS_DECLARE(EcsFahrenheit); /**< Fahrenheit unit. */ +FLECS_API extern ecs_entity_t EcsTemperature; /**< Temperature quantity. */ +FLECS_API extern ecs_entity_t EcsKelvin; /**< Kelvin unit. */ +FLECS_API extern ecs_entity_t EcsCelsius; /**< Celsius unit. */ +FLECS_API extern ecs_entity_t EcsFahrenheit; /**< Fahrenheit unit. */ /** @} */ @@ -13941,18 +13941,18 @@ FLECS_API extern ECS_DECLARE(EcsFahrenheit); /**< Fahrenheit unit. */ * @{ */ -FLECS_API extern ECS_DECLARE(EcsData); /**< Data quantity. */ -FLECS_API extern ECS_DECLARE(EcsBits); /**< Bits unit. */ -FLECS_API extern ECS_DECLARE(EcsKiloBits); /**< KiloBits unit. */ -FLECS_API extern ECS_DECLARE(EcsMegaBits); /**< MegaBits unit. */ -FLECS_API extern ECS_DECLARE(EcsGigaBits); /**< GigaBits unit. */ -FLECS_API extern ECS_DECLARE(EcsBytes); /**< Bytes unit. */ -FLECS_API extern ECS_DECLARE(EcsKiloBytes); /**< KiloBytes unit. */ -FLECS_API extern ECS_DECLARE(EcsMegaBytes); /**< MegaBytes unit. */ -FLECS_API extern ECS_DECLARE(EcsGigaBytes); /**< GigaBytes unit. */ -FLECS_API extern ECS_DECLARE(EcsKibiBytes); /**< KibiBytes unit. */ -FLECS_API extern ECS_DECLARE(EcsMebiBytes); /**< MebiBytes unit. */ -FLECS_API extern ECS_DECLARE(EcsGibiBytes); /**< GibiBytes unit. */ +FLECS_API extern ecs_entity_t EcsData; /**< Data quantity. */ +FLECS_API extern ecs_entity_t EcsBits; /**< Bits unit. */ +FLECS_API extern ecs_entity_t EcsKiloBits; /**< KiloBits unit. */ +FLECS_API extern ecs_entity_t EcsMegaBits; /**< MegaBits unit. */ +FLECS_API extern ecs_entity_t EcsGigaBits; /**< GigaBits unit. */ +FLECS_API extern ecs_entity_t EcsBytes; /**< Bytes unit. */ +FLECS_API extern ecs_entity_t EcsKiloBytes; /**< KiloBytes unit. */ +FLECS_API extern ecs_entity_t EcsMegaBytes; /**< MegaBytes unit. */ +FLECS_API extern ecs_entity_t EcsGigaBytes; /**< GigaBytes unit. */ +FLECS_API extern ecs_entity_t EcsKibiBytes; /**< KibiBytes unit. */ +FLECS_API extern ecs_entity_t EcsMebiBytes; /**< MebiBytes unit. */ +FLECS_API extern ecs_entity_t EcsGibiBytes; /**< GibiBytes unit. */ /** @} */ @@ -13962,15 +13962,15 @@ FLECS_API extern ECS_DECLARE(EcsGibiBytes); /**< GibiBytes unit. */ * @{ */ -FLECS_API extern ECS_DECLARE(EcsDataRate); /**< DataRate quantity. */ -FLECS_API extern ECS_DECLARE(EcsBitsPerSecond); /**< BitsPerSecond unit. */ -FLECS_API extern ECS_DECLARE(EcsKiloBitsPerSecond); /**< KiloBitsPerSecond unit. */ -FLECS_API extern ECS_DECLARE(EcsMegaBitsPerSecond); /**< MegaBitsPerSecond unit. */ -FLECS_API extern ECS_DECLARE(EcsGigaBitsPerSecond); /**< GigaBitsPerSecond unit. */ -FLECS_API extern ECS_DECLARE(EcsBytesPerSecond); /**< BytesPerSecond unit. */ -FLECS_API extern ECS_DECLARE(EcsKiloBytesPerSecond); /**< KiloBytesPerSecond unit. */ -FLECS_API extern ECS_DECLARE(EcsMegaBytesPerSecond); /**< MegaBytesPerSecond unit. */ -FLECS_API extern ECS_DECLARE(EcsGigaBytesPerSecond); /**< GigaBytesPerSecond unit. */ +FLECS_API extern ecs_entity_t EcsDataRate; /**< DataRate quantity. */ +FLECS_API extern ecs_entity_t EcsBitsPerSecond; /**< BitsPerSecond unit. */ +FLECS_API extern ecs_entity_t EcsKiloBitsPerSecond; /**< KiloBitsPerSecond unit. */ +FLECS_API extern ecs_entity_t EcsMegaBitsPerSecond; /**< MegaBitsPerSecond unit. */ +FLECS_API extern ecs_entity_t EcsGigaBitsPerSecond; /**< GigaBitsPerSecond unit. */ +FLECS_API extern ecs_entity_t EcsBytesPerSecond; /**< BytesPerSecond unit. */ +FLECS_API extern ecs_entity_t EcsKiloBytesPerSecond; /**< KiloBytesPerSecond unit. */ +FLECS_API extern ecs_entity_t EcsMegaBytesPerSecond; /**< MegaBytesPerSecond unit. */ +FLECS_API extern ecs_entity_t EcsGigaBytesPerSecond; /**< GigaBytesPerSecond unit. */ /** @} */ @@ -13980,9 +13980,9 @@ FLECS_API extern ECS_DECLARE(EcsGigaBytesPerSecond); /**< GigaBytesPerSecond * @{ */ -FLECS_API extern ECS_DECLARE(EcsAngle); /**< Angle quantity. */ -FLECS_API extern ECS_DECLARE(EcsRadians); /**< Radians unit. */ -FLECS_API extern ECS_DECLARE(EcsDegrees); /**< Degrees unit. */ +FLECS_API extern ecs_entity_t EcsAngle; /**< Angle quantity. */ +FLECS_API extern ecs_entity_t EcsRadians; /**< Radians unit. */ +FLECS_API extern ecs_entity_t EcsDegrees; /**< Degrees unit. */ /** @} */ @@ -13992,11 +13992,11 @@ FLECS_API extern ECS_DECLARE(EcsDegrees); /**< Degrees unit. */ * @{ */ -FLECS_API extern ECS_DECLARE(EcsFrequency); /**< Frequency quantity. */ -FLECS_API extern ECS_DECLARE(EcsHertz); /**< Hertz unit. */ -FLECS_API extern ECS_DECLARE(EcsKiloHertz); /**< KiloHertz unit. */ -FLECS_API extern ECS_DECLARE(EcsMegaHertz); /**< MegaHertz unit. */ -FLECS_API extern ECS_DECLARE(EcsGigaHertz); /**< GigaHertz unit. */ +FLECS_API extern ecs_entity_t EcsFrequency; /**< Frequency quantity. */ +FLECS_API extern ecs_entity_t EcsHertz; /**< Hertz unit. */ +FLECS_API extern ecs_entity_t EcsKiloHertz; /**< KiloHertz unit. */ +FLECS_API extern ecs_entity_t EcsMegaHertz; /**< MegaHertz unit. */ +FLECS_API extern ecs_entity_t EcsGigaHertz; /**< GigaHertz unit. */ /** @} */ @@ -14006,10 +14006,10 @@ FLECS_API extern ECS_DECLARE(EcsGigaHertz); /**< GigaHertz unit. */ * @{ */ -FLECS_API extern ECS_DECLARE(EcsUri); /**< URI quantity. */ -FLECS_API extern ECS_DECLARE(EcsUriHyperlink); /**< UriHyperlink unit. */ -FLECS_API extern ECS_DECLARE(EcsUriImage); /**< UriImage unit. */ -FLECS_API extern ECS_DECLARE(EcsUriFile); /**< UriFile unit. */ +FLECS_API extern ecs_entity_t EcsUri; /**< URI quantity. */ +FLECS_API extern ecs_entity_t EcsUriHyperlink; /**< UriHyperlink unit. */ +FLECS_API extern ecs_entity_t EcsUriImage; /**< UriImage unit. */ +FLECS_API extern ecs_entity_t EcsUriFile; /**< UriFile unit. */ /** @} */ @@ -14019,18 +14019,18 @@ FLECS_API extern ECS_DECLARE(EcsUriFile); /**< UriFile unit. */ * @{ */ -FLECS_API extern ECS_DECLARE(EcsColor); /**< Color quantity. */ -FLECS_API extern ECS_DECLARE(EcsColorRgb); /**< ColorRgb unit. */ -FLECS_API extern ECS_DECLARE(EcsColorHsl); /**< ColorHsl unit. */ -FLECS_API extern ECS_DECLARE(EcsColorCss); /**< ColorCss unit. */ +FLECS_API extern ecs_entity_t EcsColor; /**< Color quantity. */ +FLECS_API extern ecs_entity_t EcsColorRgb; /**< ColorRgb unit. */ +FLECS_API extern ecs_entity_t EcsColorHsl; /**< ColorHsl unit. */ +FLECS_API extern ecs_entity_t EcsColorCss; /**< ColorCss unit. */ /** @} */ -FLECS_API extern ECS_DECLARE(EcsAcceleration); /**< Acceleration unit. */ -FLECS_API extern ECS_DECLARE(EcsPercentage); /**< Percentage unit. */ -FLECS_API extern ECS_DECLARE(EcsBel); /**< Bel unit. */ -FLECS_API extern ECS_DECLARE(EcsDeciBel); /**< DeciBel unit. */ +FLECS_API extern ecs_entity_t EcsAcceleration; /**< Acceleration unit. */ +FLECS_API extern ecs_entity_t EcsPercentage; /**< Percentage unit. */ +FLECS_API extern ecs_entity_t EcsBel; /**< Bel unit. */ +FLECS_API extern ecs_entity_t EcsDeciBel; /**< DeciBel unit. */ //////////////////////////////////////////////////////////////////////////////// //// Module diff --git a/include/flecs/addons/units.h b/include/flecs/addons/units.h index be6a01536..ab1d47dab 100644 --- a/include/flecs/addons/units.h +++ b/include/flecs/addons/units.h @@ -55,37 +55,37 @@ extern "C" { * @{ */ -FLECS_API extern ECS_DECLARE(EcsUnitPrefixes); /**< Parent scope for prefixes. */ - -FLECS_API extern ECS_DECLARE(EcsYocto); /**< Yocto unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsZepto); /**< Zepto unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsAtto); /**< Atto unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsFemto); /**< Femto unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsPico); /**< Pico unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsNano); /**< Nano unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsMicro); /**< Micro unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsMilli); /**< Milli unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsCenti); /**< Centi unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsDeci); /**< Deci unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsDeca); /**< Deca unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsHecto); /**< Hecto unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsKilo); /**< Kilo unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsMega); /**< Mega unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsGiga); /**< Giga unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsTera); /**< Tera unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsPeta); /**< Peta unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsExa); /**< Exa unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsZetta); /**< Zetta unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsYotta); /**< Yotta unit prefix. */ - -FLECS_API extern ECS_DECLARE(EcsKibi); /**< Kibi unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsMebi); /**< Mebi unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsGibi); /**< Gibi unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsTebi); /**< Tebi unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsPebi); /**< Pebi unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsExbi); /**< Exbi unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsZebi); /**< Zebi unit prefix. */ -FLECS_API extern ECS_DECLARE(EcsYobi); /**< Yobi unit prefix. */ +FLECS_API extern ecs_entity_t EcsUnitPrefixes; /**< Parent scope for prefixes. */ + +FLECS_API extern ecs_entity_t EcsYocto; /**< Yocto unit prefix. */ +FLECS_API extern ecs_entity_t EcsZepto; /**< Zepto unit prefix. */ +FLECS_API extern ecs_entity_t EcsAtto; /**< Atto unit prefix. */ +FLECS_API extern ecs_entity_t EcsFemto; /**< Femto unit prefix. */ +FLECS_API extern ecs_entity_t EcsPico; /**< Pico unit prefix. */ +FLECS_API extern ecs_entity_t EcsNano; /**< Nano unit prefix. */ +FLECS_API extern ecs_entity_t EcsMicro; /**< Micro unit prefix. */ +FLECS_API extern ecs_entity_t EcsMilli; /**< Milli unit prefix. */ +FLECS_API extern ecs_entity_t EcsCenti; /**< Centi unit prefix. */ +FLECS_API extern ecs_entity_t EcsDeci; /**< Deci unit prefix. */ +FLECS_API extern ecs_entity_t EcsDeca; /**< Deca unit prefix. */ +FLECS_API extern ecs_entity_t EcsHecto; /**< Hecto unit prefix. */ +FLECS_API extern ecs_entity_t EcsKilo; /**< Kilo unit prefix. */ +FLECS_API extern ecs_entity_t EcsMega; /**< Mega unit prefix. */ +FLECS_API extern ecs_entity_t EcsGiga; /**< Giga unit prefix. */ +FLECS_API extern ecs_entity_t EcsTera; /**< Tera unit prefix. */ +FLECS_API extern ecs_entity_t EcsPeta; /**< Peta unit prefix. */ +FLECS_API extern ecs_entity_t EcsExa; /**< Exa unit prefix. */ +FLECS_API extern ecs_entity_t EcsZetta; /**< Zetta unit prefix. */ +FLECS_API extern ecs_entity_t EcsYotta; /**< Yotta unit prefix. */ + +FLECS_API extern ecs_entity_t EcsKibi; /**< Kibi unit prefix. */ +FLECS_API extern ecs_entity_t EcsMebi; /**< Mebi unit prefix. */ +FLECS_API extern ecs_entity_t EcsGibi; /**< Gibi unit prefix. */ +FLECS_API extern ecs_entity_t EcsTebi; /**< Tebi unit prefix. */ +FLECS_API extern ecs_entity_t EcsPebi; /**< Pebi unit prefix. */ +FLECS_API extern ecs_entity_t EcsExbi; /**< Exbi unit prefix. */ +FLECS_API extern ecs_entity_t EcsZebi; /**< Zebi unit prefix. */ +FLECS_API extern ecs_entity_t EcsYobi; /**< Yobi unit prefix. */ /** @} */ @@ -95,15 +95,15 @@ FLECS_API extern ECS_DECLARE(EcsYobi); /**< Yobi unit prefix. */ * @{ */ -FLECS_API extern ECS_DECLARE(EcsDuration); /**< Duration quantity. */ -FLECS_API extern ECS_DECLARE(EcsPicoSeconds); /**< PicoSeconds duration unit. */ -FLECS_API extern ECS_DECLARE(EcsNanoSeconds); /**< NanoSeconds duration unit. */ -FLECS_API extern ECS_DECLARE(EcsMicroSeconds); /**< MicroSeconds duration unit. */ -FLECS_API extern ECS_DECLARE(EcsMilliSeconds); /**< MilliSeconds duration unit. */ -FLECS_API extern ECS_DECLARE(EcsSeconds); /**< Seconds duration unit. */ -FLECS_API extern ECS_DECLARE(EcsMinutes); /**< Minutes duration unit. */ -FLECS_API extern ECS_DECLARE(EcsHours); /**< Hours duration unit. */ -FLECS_API extern ECS_DECLARE(EcsDays); /**< Days duration unit. */ +FLECS_API extern ecs_entity_t EcsDuration; /**< Duration quantity. */ +FLECS_API extern ecs_entity_t EcsPicoSeconds; /**< PicoSeconds duration unit. */ +FLECS_API extern ecs_entity_t EcsNanoSeconds; /**< NanoSeconds duration unit. */ +FLECS_API extern ecs_entity_t EcsMicroSeconds; /**< MicroSeconds duration unit. */ +FLECS_API extern ecs_entity_t EcsMilliSeconds; /**< MilliSeconds duration unit. */ +FLECS_API extern ecs_entity_t EcsSeconds; /**< Seconds duration unit. */ +FLECS_API extern ecs_entity_t EcsMinutes; /**< Minutes duration unit. */ +FLECS_API extern ecs_entity_t EcsHours; /**< Hours duration unit. */ +FLECS_API extern ecs_entity_t EcsDays; /**< Days duration unit. */ /** @} */ @@ -113,8 +113,8 @@ FLECS_API extern ECS_DECLARE(EcsDays); /**< Days duration unit. */ * @{ */ -FLECS_API extern ECS_DECLARE(EcsTime); /**< Time quantity. */ -FLECS_API extern ECS_DECLARE(EcsDate); /**< Date unit. */ +FLECS_API extern ecs_entity_t EcsTime; /**< Time quantity. */ +FLECS_API extern ecs_entity_t EcsDate; /**< Date unit. */ /** @} */ @@ -124,9 +124,9 @@ FLECS_API extern ECS_DECLARE(EcsDate); /**< Date unit. */ * @{ */ -FLECS_API extern ECS_DECLARE(EcsMass); /**< Mass quantity. */ -FLECS_API extern ECS_DECLARE(EcsGrams); /**< Grams unit. */ -FLECS_API extern ECS_DECLARE(EcsKiloGrams); /**< KiloGrams unit. */ +FLECS_API extern ecs_entity_t EcsMass; /**< Mass quantity. */ +FLECS_API extern ecs_entity_t EcsGrams; /**< Grams unit. */ +FLECS_API extern ecs_entity_t EcsKiloGrams; /**< KiloGrams unit. */ /** @} */ @@ -136,8 +136,8 @@ FLECS_API extern ECS_DECLARE(EcsKiloGrams); /**< KiloGrams unit. */ * @{ */ -FLECS_API extern ECS_DECLARE(EcsElectricCurrent); /**< ElectricCurrent quantity. */ -FLECS_API extern ECS_DECLARE(EcsAmpere); /**< Ampere unit. */ +FLECS_API extern ecs_entity_t EcsElectricCurrent; /**< ElectricCurrent quantity. */ +FLECS_API extern ecs_entity_t EcsAmpere; /**< Ampere unit. */ /** @} */ @@ -147,8 +147,8 @@ FLECS_API extern ECS_DECLARE(EcsAmpere); /**< Ampere unit. */ * @{ */ -FLECS_API extern ECS_DECLARE(EcsAmount); /**< Amount quantity. */ -FLECS_API extern ECS_DECLARE(EcsMole); /**< Mole unit. */ +FLECS_API extern ecs_entity_t EcsAmount; /**< Amount quantity. */ +FLECS_API extern ecs_entity_t EcsMole; /**< Mole unit. */ /** @} */ @@ -158,8 +158,8 @@ FLECS_API extern ECS_DECLARE(EcsMole); /**< Mole unit. */ * @{ */ -FLECS_API extern ECS_DECLARE(EcsLuminousIntensity); /**< LuminousIntensity quantity. */ -FLECS_API extern ECS_DECLARE(EcsCandela); /**< Candela unit. */ +FLECS_API extern ecs_entity_t EcsLuminousIntensity; /**< LuminousIntensity quantity. */ +FLECS_API extern ecs_entity_t EcsCandela; /**< Candela unit. */ /** @} */ @@ -169,8 +169,8 @@ FLECS_API extern ECS_DECLARE(EcsCandela); /**< Candela unit. */ * @{ */ -FLECS_API extern ECS_DECLARE(EcsForce); /**< Force quantity. */ -FLECS_API extern ECS_DECLARE(EcsNewton); /**< Newton unit. */ +FLECS_API extern ecs_entity_t EcsForce; /**< Force quantity. */ +FLECS_API extern ecs_entity_t EcsNewton; /**< Newton unit. */ /** @} */ @@ -180,16 +180,16 @@ FLECS_API extern ECS_DECLARE(EcsNewton); /**< Newton unit. */ * @{ */ -FLECS_API extern ECS_DECLARE(EcsLength); /**< Length quantity. */ -FLECS_API extern ECS_DECLARE(EcsMeters); /**< Meters unit. */ -FLECS_API extern ECS_DECLARE(EcsPicoMeters); /**< PicoMeters unit. */ -FLECS_API extern ECS_DECLARE(EcsNanoMeters); /**< NanoMeters unit. */ -FLECS_API extern ECS_DECLARE(EcsMicroMeters); /**< MicroMeters unit. */ -FLECS_API extern ECS_DECLARE(EcsMilliMeters); /**< MilliMeters unit. */ -FLECS_API extern ECS_DECLARE(EcsCentiMeters); /**< CentiMeters unit. */ -FLECS_API extern ECS_DECLARE(EcsKiloMeters); /**< KiloMeters unit. */ -FLECS_API extern ECS_DECLARE(EcsMiles); /**< Miles unit. */ -FLECS_API extern ECS_DECLARE(EcsPixels); /**< Pixels unit. */ +FLECS_API extern ecs_entity_t EcsLength; /**< Length quantity. */ +FLECS_API extern ecs_entity_t EcsMeters; /**< Meters unit. */ +FLECS_API extern ecs_entity_t EcsPicoMeters; /**< PicoMeters unit. */ +FLECS_API extern ecs_entity_t EcsNanoMeters; /**< NanoMeters unit. */ +FLECS_API extern ecs_entity_t EcsMicroMeters; /**< MicroMeters unit. */ +FLECS_API extern ecs_entity_t EcsMilliMeters; /**< MilliMeters unit. */ +FLECS_API extern ecs_entity_t EcsCentiMeters; /**< CentiMeters unit. */ +FLECS_API extern ecs_entity_t EcsKiloMeters; /**< KiloMeters unit. */ +FLECS_API extern ecs_entity_t EcsMiles; /**< Miles unit. */ +FLECS_API extern ecs_entity_t EcsPixels; /**< Pixels unit. */ /** @} */ @@ -199,9 +199,9 @@ FLECS_API extern ECS_DECLARE(EcsPixels); /**< Pixels unit. */ * @{ */ -FLECS_API extern ECS_DECLARE(EcsPressure); /**< Pressure quantity. */ -FLECS_API extern ECS_DECLARE(EcsPascal); /**< Pascal unit. */ -FLECS_API extern ECS_DECLARE(EcsBar); /**< Bar unit. */ +FLECS_API extern ecs_entity_t EcsPressure; /**< Pressure quantity. */ +FLECS_API extern ecs_entity_t EcsPascal; /**< Pascal unit. */ +FLECS_API extern ecs_entity_t EcsBar; /**< Bar unit. */ /** @} */ @@ -211,11 +211,11 @@ FLECS_API extern ECS_DECLARE(EcsBar); /**< Bar unit. */ * @{ */ -FLECS_API extern ECS_DECLARE(EcsSpeed); /**< Speed quantity. */ -FLECS_API extern ECS_DECLARE(EcsMetersPerSecond); /**< MetersPerSecond unit. */ -FLECS_API extern ECS_DECLARE(EcsKiloMetersPerSecond); /**< KiloMetersPerSecond unit. */ -FLECS_API extern ECS_DECLARE(EcsKiloMetersPerHour); /**< KiloMetersPerHour unit. */ -FLECS_API extern ECS_DECLARE(EcsMilesPerHour); /**< MilesPerHour unit. */ +FLECS_API extern ecs_entity_t EcsSpeed; /**< Speed quantity. */ +FLECS_API extern ecs_entity_t EcsMetersPerSecond; /**< MetersPerSecond unit. */ +FLECS_API extern ecs_entity_t EcsKiloMetersPerSecond; /**< KiloMetersPerSecond unit. */ +FLECS_API extern ecs_entity_t EcsKiloMetersPerHour; /**< KiloMetersPerHour unit. */ +FLECS_API extern ecs_entity_t EcsMilesPerHour; /**< MilesPerHour unit. */ /** @} */ @@ -225,10 +225,10 @@ FLECS_API extern ECS_DECLARE(EcsMilesPerHour); /**< MilesPerHour unit * @{ */ -FLECS_API extern ECS_DECLARE(EcsTemperature); /**< Temperature quantity. */ -FLECS_API extern ECS_DECLARE(EcsKelvin); /**< Kelvin unit. */ -FLECS_API extern ECS_DECLARE(EcsCelsius); /**< Celsius unit. */ -FLECS_API extern ECS_DECLARE(EcsFahrenheit); /**< Fahrenheit unit. */ +FLECS_API extern ecs_entity_t EcsTemperature; /**< Temperature quantity. */ +FLECS_API extern ecs_entity_t EcsKelvin; /**< Kelvin unit. */ +FLECS_API extern ecs_entity_t EcsCelsius; /**< Celsius unit. */ +FLECS_API extern ecs_entity_t EcsFahrenheit; /**< Fahrenheit unit. */ /** @} */ @@ -238,18 +238,18 @@ FLECS_API extern ECS_DECLARE(EcsFahrenheit); /**< Fahrenheit unit. */ * @{ */ -FLECS_API extern ECS_DECLARE(EcsData); /**< Data quantity. */ -FLECS_API extern ECS_DECLARE(EcsBits); /**< Bits unit. */ -FLECS_API extern ECS_DECLARE(EcsKiloBits); /**< KiloBits unit. */ -FLECS_API extern ECS_DECLARE(EcsMegaBits); /**< MegaBits unit. */ -FLECS_API extern ECS_DECLARE(EcsGigaBits); /**< GigaBits unit. */ -FLECS_API extern ECS_DECLARE(EcsBytes); /**< Bytes unit. */ -FLECS_API extern ECS_DECLARE(EcsKiloBytes); /**< KiloBytes unit. */ -FLECS_API extern ECS_DECLARE(EcsMegaBytes); /**< MegaBytes unit. */ -FLECS_API extern ECS_DECLARE(EcsGigaBytes); /**< GigaBytes unit. */ -FLECS_API extern ECS_DECLARE(EcsKibiBytes); /**< KibiBytes unit. */ -FLECS_API extern ECS_DECLARE(EcsMebiBytes); /**< MebiBytes unit. */ -FLECS_API extern ECS_DECLARE(EcsGibiBytes); /**< GibiBytes unit. */ +FLECS_API extern ecs_entity_t EcsData; /**< Data quantity. */ +FLECS_API extern ecs_entity_t EcsBits; /**< Bits unit. */ +FLECS_API extern ecs_entity_t EcsKiloBits; /**< KiloBits unit. */ +FLECS_API extern ecs_entity_t EcsMegaBits; /**< MegaBits unit. */ +FLECS_API extern ecs_entity_t EcsGigaBits; /**< GigaBits unit. */ +FLECS_API extern ecs_entity_t EcsBytes; /**< Bytes unit. */ +FLECS_API extern ecs_entity_t EcsKiloBytes; /**< KiloBytes unit. */ +FLECS_API extern ecs_entity_t EcsMegaBytes; /**< MegaBytes unit. */ +FLECS_API extern ecs_entity_t EcsGigaBytes; /**< GigaBytes unit. */ +FLECS_API extern ecs_entity_t EcsKibiBytes; /**< KibiBytes unit. */ +FLECS_API extern ecs_entity_t EcsMebiBytes; /**< MebiBytes unit. */ +FLECS_API extern ecs_entity_t EcsGibiBytes; /**< GibiBytes unit. */ /** @} */ @@ -259,15 +259,15 @@ FLECS_API extern ECS_DECLARE(EcsGibiBytes); /**< GibiBytes unit. */ * @{ */ -FLECS_API extern ECS_DECLARE(EcsDataRate); /**< DataRate quantity. */ -FLECS_API extern ECS_DECLARE(EcsBitsPerSecond); /**< BitsPerSecond unit. */ -FLECS_API extern ECS_DECLARE(EcsKiloBitsPerSecond); /**< KiloBitsPerSecond unit. */ -FLECS_API extern ECS_DECLARE(EcsMegaBitsPerSecond); /**< MegaBitsPerSecond unit. */ -FLECS_API extern ECS_DECLARE(EcsGigaBitsPerSecond); /**< GigaBitsPerSecond unit. */ -FLECS_API extern ECS_DECLARE(EcsBytesPerSecond); /**< BytesPerSecond unit. */ -FLECS_API extern ECS_DECLARE(EcsKiloBytesPerSecond); /**< KiloBytesPerSecond unit. */ -FLECS_API extern ECS_DECLARE(EcsMegaBytesPerSecond); /**< MegaBytesPerSecond unit. */ -FLECS_API extern ECS_DECLARE(EcsGigaBytesPerSecond); /**< GigaBytesPerSecond unit. */ +FLECS_API extern ecs_entity_t EcsDataRate; /**< DataRate quantity. */ +FLECS_API extern ecs_entity_t EcsBitsPerSecond; /**< BitsPerSecond unit. */ +FLECS_API extern ecs_entity_t EcsKiloBitsPerSecond; /**< KiloBitsPerSecond unit. */ +FLECS_API extern ecs_entity_t EcsMegaBitsPerSecond; /**< MegaBitsPerSecond unit. */ +FLECS_API extern ecs_entity_t EcsGigaBitsPerSecond; /**< GigaBitsPerSecond unit. */ +FLECS_API extern ecs_entity_t EcsBytesPerSecond; /**< BytesPerSecond unit. */ +FLECS_API extern ecs_entity_t EcsKiloBytesPerSecond; /**< KiloBytesPerSecond unit. */ +FLECS_API extern ecs_entity_t EcsMegaBytesPerSecond; /**< MegaBytesPerSecond unit. */ +FLECS_API extern ecs_entity_t EcsGigaBytesPerSecond; /**< GigaBytesPerSecond unit. */ /** @} */ @@ -277,9 +277,9 @@ FLECS_API extern ECS_DECLARE(EcsGigaBytesPerSecond); /**< GigaBytesPerSecond * @{ */ -FLECS_API extern ECS_DECLARE(EcsAngle); /**< Angle quantity. */ -FLECS_API extern ECS_DECLARE(EcsRadians); /**< Radians unit. */ -FLECS_API extern ECS_DECLARE(EcsDegrees); /**< Degrees unit. */ +FLECS_API extern ecs_entity_t EcsAngle; /**< Angle quantity. */ +FLECS_API extern ecs_entity_t EcsRadians; /**< Radians unit. */ +FLECS_API extern ecs_entity_t EcsDegrees; /**< Degrees unit. */ /** @} */ @@ -289,11 +289,11 @@ FLECS_API extern ECS_DECLARE(EcsDegrees); /**< Degrees unit. */ * @{ */ -FLECS_API extern ECS_DECLARE(EcsFrequency); /**< Frequency quantity. */ -FLECS_API extern ECS_DECLARE(EcsHertz); /**< Hertz unit. */ -FLECS_API extern ECS_DECLARE(EcsKiloHertz); /**< KiloHertz unit. */ -FLECS_API extern ECS_DECLARE(EcsMegaHertz); /**< MegaHertz unit. */ -FLECS_API extern ECS_DECLARE(EcsGigaHertz); /**< GigaHertz unit. */ +FLECS_API extern ecs_entity_t EcsFrequency; /**< Frequency quantity. */ +FLECS_API extern ecs_entity_t EcsHertz; /**< Hertz unit. */ +FLECS_API extern ecs_entity_t EcsKiloHertz; /**< KiloHertz unit. */ +FLECS_API extern ecs_entity_t EcsMegaHertz; /**< MegaHertz unit. */ +FLECS_API extern ecs_entity_t EcsGigaHertz; /**< GigaHertz unit. */ /** @} */ @@ -303,10 +303,10 @@ FLECS_API extern ECS_DECLARE(EcsGigaHertz); /**< GigaHertz unit. */ * @{ */ -FLECS_API extern ECS_DECLARE(EcsUri); /**< URI quantity. */ -FLECS_API extern ECS_DECLARE(EcsUriHyperlink); /**< UriHyperlink unit. */ -FLECS_API extern ECS_DECLARE(EcsUriImage); /**< UriImage unit. */ -FLECS_API extern ECS_DECLARE(EcsUriFile); /**< UriFile unit. */ +FLECS_API extern ecs_entity_t EcsUri; /**< URI quantity. */ +FLECS_API extern ecs_entity_t EcsUriHyperlink; /**< UriHyperlink unit. */ +FLECS_API extern ecs_entity_t EcsUriImage; /**< UriImage unit. */ +FLECS_API extern ecs_entity_t EcsUriFile; /**< UriFile unit. */ /** @} */ @@ -316,18 +316,18 @@ FLECS_API extern ECS_DECLARE(EcsUriFile); /**< UriFile unit. */ * @{ */ -FLECS_API extern ECS_DECLARE(EcsColor); /**< Color quantity. */ -FLECS_API extern ECS_DECLARE(EcsColorRgb); /**< ColorRgb unit. */ -FLECS_API extern ECS_DECLARE(EcsColorHsl); /**< ColorHsl unit. */ -FLECS_API extern ECS_DECLARE(EcsColorCss); /**< ColorCss unit. */ +FLECS_API extern ecs_entity_t EcsColor; /**< Color quantity. */ +FLECS_API extern ecs_entity_t EcsColorRgb; /**< ColorRgb unit. */ +FLECS_API extern ecs_entity_t EcsColorHsl; /**< ColorHsl unit. */ +FLECS_API extern ecs_entity_t EcsColorCss; /**< ColorCss unit. */ /** @} */ -FLECS_API extern ECS_DECLARE(EcsAcceleration); /**< Acceleration unit. */ -FLECS_API extern ECS_DECLARE(EcsPercentage); /**< Percentage unit. */ -FLECS_API extern ECS_DECLARE(EcsBel); /**< Bel unit. */ -FLECS_API extern ECS_DECLARE(EcsDeciBel); /**< DeciBel unit. */ +FLECS_API extern ecs_entity_t EcsAcceleration; /**< Acceleration unit. */ +FLECS_API extern ecs_entity_t EcsPercentage; /**< Percentage unit. */ +FLECS_API extern ecs_entity_t EcsBel; /**< Bel unit. */ +FLECS_API extern ecs_entity_t EcsDeciBel; /**< DeciBel unit. */ //////////////////////////////////////////////////////////////////////////////// //// Module diff --git a/src/world.c b/src/world.c index 82b581c9a..b4ae67887 100644 --- a/src/world.c +++ b/src/world.c @@ -192,142 +192,142 @@ ECS_TAG_DECLARE(EcsAlertError); ECS_TAG_DECLARE(EcsAlertCritical); #endif #ifdef FLECS_UNITS -ECS_DECLARE(EcsUnitPrefixes); - -ECS_DECLARE(EcsYocto); -ECS_DECLARE(EcsZepto); -ECS_DECLARE(EcsAtto); -ECS_DECLARE(EcsFemto); -ECS_DECLARE(EcsPico); -ECS_DECLARE(EcsNano); -ECS_DECLARE(EcsMicro); -ECS_DECLARE(EcsMilli); -ECS_DECLARE(EcsCenti); -ECS_DECLARE(EcsDeci); -ECS_DECLARE(EcsDeca); -ECS_DECLARE(EcsHecto); -ECS_DECLARE(EcsKilo); -ECS_DECLARE(EcsMega); -ECS_DECLARE(EcsGiga); -ECS_DECLARE(EcsTera); -ECS_DECLARE(EcsPeta); -ECS_DECLARE(EcsExa); -ECS_DECLARE(EcsZetta); -ECS_DECLARE(EcsYotta); - -ECS_DECLARE(EcsKibi); -ECS_DECLARE(EcsMebi); -ECS_DECLARE(EcsGibi); -ECS_DECLARE(EcsTebi); -ECS_DECLARE(EcsPebi); -ECS_DECLARE(EcsExbi); -ECS_DECLARE(EcsZebi); -ECS_DECLARE(EcsYobi); - -ECS_DECLARE(EcsDuration); - ECS_DECLARE(EcsPicoSeconds); - ECS_DECLARE(EcsNanoSeconds); - ECS_DECLARE(EcsMicroSeconds); - ECS_DECLARE(EcsMilliSeconds); - ECS_DECLARE(EcsSeconds); - ECS_DECLARE(EcsMinutes); - ECS_DECLARE(EcsHours); - ECS_DECLARE(EcsDays); - -ECS_DECLARE(EcsTime); - ECS_DECLARE(EcsDate); - -ECS_DECLARE(EcsMass); - ECS_DECLARE(EcsGrams); - ECS_DECLARE(EcsKiloGrams); - -ECS_DECLARE(EcsElectricCurrent); - ECS_DECLARE(EcsAmpere); - -ECS_DECLARE(EcsAmount); - ECS_DECLARE(EcsMole); - -ECS_DECLARE(EcsLuminousIntensity); - ECS_DECLARE(EcsCandela); - -ECS_DECLARE(EcsForce); - ECS_DECLARE(EcsNewton); - -ECS_DECLARE(EcsLength); - ECS_DECLARE(EcsMeters); - ECS_DECLARE(EcsPicoMeters); - ECS_DECLARE(EcsNanoMeters); - ECS_DECLARE(EcsMicroMeters); - ECS_DECLARE(EcsMilliMeters); - ECS_DECLARE(EcsCentiMeters); - ECS_DECLARE(EcsKiloMeters); - ECS_DECLARE(EcsMiles); - ECS_DECLARE(EcsPixels); - -ECS_DECLARE(EcsPressure); - ECS_DECLARE(EcsPascal); - ECS_DECLARE(EcsBar); - -ECS_DECLARE(EcsSpeed); - ECS_DECLARE(EcsMetersPerSecond); - ECS_DECLARE(EcsKiloMetersPerSecond); - ECS_DECLARE(EcsKiloMetersPerHour); - ECS_DECLARE(EcsMilesPerHour); - -ECS_DECLARE(EcsAcceleration); - -ECS_DECLARE(EcsTemperature); - ECS_DECLARE(EcsKelvin); - ECS_DECLARE(EcsCelsius); - ECS_DECLARE(EcsFahrenheit); - -ECS_DECLARE(EcsData); - ECS_DECLARE(EcsBits); - ECS_DECLARE(EcsKiloBits); - ECS_DECLARE(EcsMegaBits); - ECS_DECLARE(EcsGigaBits); - ECS_DECLARE(EcsBytes); - ECS_DECLARE(EcsKiloBytes); - ECS_DECLARE(EcsMegaBytes); - ECS_DECLARE(EcsGigaBytes); - ECS_DECLARE(EcsKibiBytes); - ECS_DECLARE(EcsGibiBytes); - ECS_DECLARE(EcsMebiBytes); - -ECS_DECLARE(EcsDataRate); - ECS_DECLARE(EcsBitsPerSecond); - ECS_DECLARE(EcsKiloBitsPerSecond); - ECS_DECLARE(EcsMegaBitsPerSecond); - ECS_DECLARE(EcsGigaBitsPerSecond); - ECS_DECLARE(EcsBytesPerSecond); - ECS_DECLARE(EcsKiloBytesPerSecond); - ECS_DECLARE(EcsMegaBytesPerSecond); - ECS_DECLARE(EcsGigaBytesPerSecond); - -ECS_DECLARE(EcsPercentage); - -ECS_DECLARE(EcsAngle); - ECS_DECLARE(EcsRadians); - ECS_DECLARE(EcsDegrees); - -ECS_DECLARE(EcsColor); - ECS_DECLARE(EcsColorRgb); - ECS_DECLARE(EcsColorHsl); - ECS_DECLARE(EcsColorCss); - -ECS_DECLARE(EcsBel); -ECS_DECLARE(EcsDeciBel); - -ECS_DECLARE(EcsFrequency); - ECS_DECLARE(EcsHertz); - ECS_DECLARE(EcsKiloHertz); - ECS_DECLARE(EcsMegaHertz); - ECS_DECLARE(EcsGigaHertz); - -ECS_DECLARE(EcsUri); - ECS_DECLARE(EcsUriHyperlink); - ECS_DECLARE(EcsUriImage); - ECS_DECLARE(EcsUriFile); +ecs_entity_t EcsUnitPrefixes; + +ecs_entity_t EcsYocto; +ecs_entity_t EcsZepto; +ecs_entity_t EcsAtto; +ecs_entity_t EcsFemto; +ecs_entity_t EcsPico; +ecs_entity_t EcsNano; +ecs_entity_t EcsMicro; +ecs_entity_t EcsMilli; +ecs_entity_t EcsCenti; +ecs_entity_t EcsDeci; +ecs_entity_t EcsDeca; +ecs_entity_t EcsHecto; +ecs_entity_t EcsKilo; +ecs_entity_t EcsMega; +ecs_entity_t EcsGiga; +ecs_entity_t EcsTera; +ecs_entity_t EcsPeta; +ecs_entity_t EcsExa; +ecs_entity_t EcsZetta; +ecs_entity_t EcsYotta; + +ecs_entity_t EcsKibi; +ecs_entity_t EcsMebi; +ecs_entity_t EcsGibi; +ecs_entity_t EcsTebi; +ecs_entity_t EcsPebi; +ecs_entity_t EcsExbi; +ecs_entity_t EcsZebi; +ecs_entity_t EcsYobi; + +ecs_entity_t EcsDuration; + ecs_entity_t EcsPicoSeconds; + ecs_entity_t EcsNanoSeconds; + ecs_entity_t EcsMicroSeconds; + ecs_entity_t EcsMilliSeconds; + ecs_entity_t EcsSeconds; + ecs_entity_t EcsMinutes; + ecs_entity_t EcsHours; + ecs_entity_t EcsDays; + +ecs_entity_t EcsTime; + ecs_entity_t EcsDate; + +ecs_entity_t EcsMass; + ecs_entity_t EcsGrams; + ecs_entity_t EcsKiloGrams; + +ecs_entity_t EcsElectricCurrent; + ecs_entity_t EcsAmpere; + +ecs_entity_t EcsAmount; + ecs_entity_t EcsMole; + +ecs_entity_t EcsLuminousIntensity; + ecs_entity_t EcsCandela; + +ecs_entity_t EcsForce; + ecs_entity_t EcsNewton; + +ecs_entity_t EcsLength; + ecs_entity_t EcsMeters; + ecs_entity_t EcsPicoMeters; + ecs_entity_t EcsNanoMeters; + ecs_entity_t EcsMicroMeters; + ecs_entity_t EcsMilliMeters; + ecs_entity_t EcsCentiMeters; + ecs_entity_t EcsKiloMeters; + ecs_entity_t EcsMiles; + ecs_entity_t EcsPixels; + +ecs_entity_t EcsPressure; + ecs_entity_t EcsPascal; + ecs_entity_t EcsBar; + +ecs_entity_t EcsSpeed; + ecs_entity_t EcsMetersPerSecond; + ecs_entity_t EcsKiloMetersPerSecond; + ecs_entity_t EcsKiloMetersPerHour; + ecs_entity_t EcsMilesPerHour; + +ecs_entity_t EcsAcceleration; + +ecs_entity_t EcsTemperature; + ecs_entity_t EcsKelvin; + ecs_entity_t EcsCelsius; + ecs_entity_t EcsFahrenheit; + +ecs_entity_t EcsData; + ecs_entity_t EcsBits; + ecs_entity_t EcsKiloBits; + ecs_entity_t EcsMegaBits; + ecs_entity_t EcsGigaBits; + ecs_entity_t EcsBytes; + ecs_entity_t EcsKiloBytes; + ecs_entity_t EcsMegaBytes; + ecs_entity_t EcsGigaBytes; + ecs_entity_t EcsKibiBytes; + ecs_entity_t EcsGibiBytes; + ecs_entity_t EcsMebiBytes; + +ecs_entity_t EcsDataRate; + ecs_entity_t EcsBitsPerSecond; + ecs_entity_t EcsKiloBitsPerSecond; + ecs_entity_t EcsMegaBitsPerSecond; + ecs_entity_t EcsGigaBitsPerSecond; + ecs_entity_t EcsBytesPerSecond; + ecs_entity_t EcsKiloBytesPerSecond; + ecs_entity_t EcsMegaBytesPerSecond; + ecs_entity_t EcsGigaBytesPerSecond; + +ecs_entity_t EcsPercentage; + +ecs_entity_t EcsAngle; + ecs_entity_t EcsRadians; + ecs_entity_t EcsDegrees; + +ecs_entity_t EcsColor; + ecs_entity_t EcsColorRgb; + ecs_entity_t EcsColorHsl; + ecs_entity_t EcsColorCss; + +ecs_entity_t EcsBel; +ecs_entity_t EcsDeciBel; + +ecs_entity_t EcsFrequency; + ecs_entity_t EcsHertz; + ecs_entity_t EcsKiloHertz; + ecs_entity_t EcsMegaHertz; + ecs_entity_t EcsGigaHertz; + +ecs_entity_t EcsUri; + ecs_entity_t EcsUriHyperlink; + ecs_entity_t EcsUriImage; + ecs_entity_t EcsUriFile; #endif /* -- Private functions -- */