Host typegenerated
Profiles
Reading settings from a profile, a data file shared across a project, such as a weapon's damage and fire rate.
9 members · engine 0.1.0
Profiles.count(profile: Profile, collection: String) -> numberHow many items a list in the profile has.Profiles.flag(profile: Profile, key: String, fallback: bool) -> boolA true/false setting from the profile, orfallbackif it is missing.Profiles.flag_at(profile: Profile, collection: String, index: number, key: String, fallback: bool) -> boolA true/false setting from one item in a list in the profile, orfallback.Profiles.kind(profile: Profile) -> StringWhat kind of profile it is.Profiles.name(profile: Profile) -> StringThe profile's name.Profiles.number(profile: Profile, key: String, fallback: number) -> numberA number setting from the profile, orfallbackif it is missing:Profiles.number(this.tuning, "damage", 1.0).Profiles.number_at(profile: Profile, collection: String, index: number, key: String, fallback: number) -> numberA number setting from one item in a list in the profile, orfallback.Profiles.text(profile: Profile, key: String, fallback: String) -> StringA text setting from the profile, orfallbackif it is missing.Profiles.text_at(profile: Profile, collection: String, index: number, key: String, fallback: String) -> StringA text setting from one item in a list in the profile, orfallback.
- Source
- docs/generated/decay-api.json
- Schema
- v1
- Engine version
- 0.1.0
- Source commit
909aca81368b