rojo/.cursor/rules/roblox/reference/engine/classes/IntConstrainedValue.yaml
2026-02-02 12:08:47 -06:00

153 lines
4.7 KiB
YAML

# This file is automatically generated. Please don't edit it manually.
# To submit a bug report on the content, see
# https://devforum.roblox.com/c/bug-reports/documentation-issues/72
name: IntConstrainedValue
type: class
memory_category: Instances
summary: |
An IntConstrainedValue is used to store a value which can never be less than
MinValue and can never be more than MaxValue.
description: |
An IntConstrainedValue is used to store a value which can never be less than
MinValue and can never be more than MaxValue.
code_samples: []
inherits:
- ValueBase
descendants: []
tags:
- Deprecated
deprecation_message: |
The IntConstrainedValue object has been deprecated as developers can now use
the `Library.math.clamp()` function to constrain values.
properties:
- name: IntConstrainedValue.ConstrainedValue
summary: |
Hold an `Integer` value between `Class.IntConstrainedValue.MinValue` and
`Class.IntConstrainedValue.MaxValue`. Replaced by
`Class.IntConstrainedValue.Value`, but still functional.
description: |
Hold an `Integer` value between `Class.IntConstrainedValue.MinValue` and
`Class.IntConstrainedValue.MaxValue`. Replaced by
`Class.IntConstrainedValue.Value`, but still functional.
code_samples: []
type: int64
tags:
- Hidden
- NotReplicated
deprecation_message: |
The IntConstrainedValue object has been deprecated as developers can now
use the `Library.math.clamp()` function to constrain values.
security:
read: None
write: None
thread_safety: ReadSafe
category: Data
serialization:
can_load: true
can_save: false
capabilities: []
- name: IntConstrainedValue.MaxValue
summary: |
The highest number that the `Class.IntConstrainedValue.Value` property can
be.
description: |
The highest number that the `Class.IntConstrainedValue.Value` property can
be.
code_samples: []
type: int64
tags: []
deprecation_message: |
The IntConstrainedValue object has been deprecated as developers can now
use the `Library.math.clamp()` function to constrain values.
security:
read: None
write: None
thread_safety: ReadSafe
category: Data
serialization:
can_load: true
can_save: true
capabilities: []
- name: IntConstrainedValue.MinValue
summary: |
The lowest number that the `Class.IntConstrainedValue.Value` property can
be.
description: |
The lowest number that the `Class.IntConstrainedValue.Value` property can
be.
code_samples: []
type: int64
tags: []
deprecation_message: |
The IntConstrainedValue object has been deprecated as developers can now
use the `Library.math.clamp()` function to constrain values.
security:
read: None
write: None
thread_safety: ReadSafe
category: Data
serialization:
can_load: true
can_save: true
capabilities: []
- name: IntConstrainedValue.Value
summary: |
Used to hold an integer value between `Class.IntConstrainedValue.MinValue`
and `Class.IntConstrainedValue.MaxValue`.
description: |
Used to hold an integer value between `Class.IntConstrainedValue.MinValue`
and `Class.IntConstrainedValue.MaxValue`.
code_samples: []
type: int64
tags:
- NotReplicated
deprecation_message: |
The IntConstrainedValue object has been deprecated as developers can now
use the `Library.math.clamp()` function to constrain values.
security:
read: None
write: None
thread_safety: ReadSafe
category: Data
serialization:
can_load: true
can_save: false
capabilities: []
methods: []
events:
- name: IntConstrainedValue.Changed
summary: |
Fired whenever the Value of the IntConstrainedValue is changed.
description: |
Fired whenever the Value of the IntConstrainedValue is changed.
code_samples:
- IntConstrainedValue-Changed1
parameters:
- name: value
type: int64
default:
summary: ''
tags: []
deprecation_message: |
The IntConstrainedValue object has been deprecated as developers can now
use the `Library.math.clamp()` function to constrain values.
security: None
capabilities: []
- name: IntConstrainedValue.changed
summary: ''
description: ''
code_samples: []
parameters:
- name: value
type: int64
default:
summary: ''
tags:
- Deprecated
deprecation_message: |
This deprecated event is a variant of `Class.IntConstrainedValue.Changed`
which has also been deprecated. Neither event should be used in new work.
security: None
capabilities: []
callbacks: []