-
Notifications
You must be signed in to change notification settings - Fork 7
server.components.Essential.Essential
server/components/Essential.Essential
The base class for both the shield and sword.
states - "Enabled", "Disabled"
| Name | Type |
|---|---|
A |
extends ToolAttributes
|
I |
extends ToolInstance
|
- Actions
- Disable
- DisableAnimation
- DisabledLimb
- Enable
- EnableAnimation
- EnabledLimb
- EssentialAnimation
- InputInfo
- Motor6D
- Player
- attributes
- id
- instance
- janitor
- maid
- state
- stateChanged
- timeCreated
- GetLimb
- Init
- PlayerInit
- SetMotor6D
- Setup
- create
- destroy
- getState
- onAttributeChanged
- onStart
- setAttribute
- setInstance
- setState
• new Essential<A, I>()
| Name | Type |
|---|---|
A |
extends ToolAttributes
|
I |
extends ToolInstance<I> |
• Actions: Actions
src/server/components/Essential.ts:118
• Disable: (End: Callback) => void
▸ (End): void
| Name | Type |
|---|---|
End |
Callback |
void
src/server/components/Essential.ts:116
• Protected Abstract DisableAnimation: number
src/server/components/Essential.ts:15
• Protected Abstract DisabledLimb: CharacterLimb
src/server/components/Essential.ts:17
• Enable: (End: Callback) => void
▸ (End): void
| Name | Type |
|---|---|
End |
Callback |
void
src/server/components/Essential.ts:114
• Protected Abstract EnableAnimation: number
src/server/components/Essential.ts:14
• Protected Abstract EnabledLimb: CharacterLimb
src/server/components/Essential.ts:16
• Private Optional EssentialAnimation: AnimationTrack
src/server/components/Essential.ts:19
• InputInfo: InputInfo
src/server/components/Essential.ts:22
• Private Optional Motor6D: Motor6D
src/server/components/Essential.ts:20
• Optional Player: Player
src/server/components/Tool.ts:64
• attributes: A
Attributes attached to this instance.
node_modules/@flamework/components/out/index.d.ts:20
• id: string
src/server/components/Tool.ts:61
• instance: I
The instance this component is attached to. This should only be called in a component lifecycle event.
node_modules/@flamework/components/out/index.d.ts:25
• Protected janitor: Janitor<void>
src/server/components/Tool.ts:59
• maid: Maid
A maid that will be destroyed when the component is.
node_modules/@flamework/components/out/index.d.ts:16
• state: string = "nil"
src/server/components/Tool.ts:62
• stateChanged: Signal<fn, false>
src/server/components/Tool.ts:65
• timeCreated: number
src/server/components/Tool.ts:63
▸ Private GetLimb(limbName): BasePart
| Name | Type |
|---|---|
limbName |
CharacterLimb |
BasePart
src/server/components/Essential.ts:46
▸ Optional Abstract Init(): void
void
src/server/components/Tool.ts:56
▸ Optional Abstract PlayerInit(): void
void
src/server/components/Tool.ts:57
▸ Private SetMotor6D(limb): void
| Name | Type |
|---|---|
limb |
BasePart |
void
src/server/components/Essential.ts:66
▸ Private Setup(): void
void
src/server/components/Essential.ts:76
▸ Private create(option): (End: Callback) => void
| Name | Type |
|---|---|
option |
"Enable" | "Disable"
|
fn
▸ (End): void
| Name | Type |
|---|---|
End |
Callback |
void
src/server/components/Essential.ts:85
▸ destroy(): void
Destroys this component instance.
void
node_modules/@flamework/components/out/index.d.ts:39
▸ getState(): string
string
src/server/components/Tool.ts:67
▸ onAttributeChanged<K>(name, cb): void
Connect a callback to the change of a specific attribute.
| Name | Type |
|---|---|
K |
extends string | number | symbol
|
| Name | Type | Description |
|---|---|---|
name |
K |
The name of the attribute |
cb |
(newValue: A[K], oldValue: A[K]) => void
|
The callback |
void
node_modules/@flamework/components/out/index.d.ts:35
▸ onStart(): void
void
src/server/components/Tool.ts:76
▸ setAttribute<T>(key, value, postfix?): A[T]
| Name | Type |
|---|---|
T |
extends string | number | symbol
|
| Name | Type |
|---|---|
key |
T |
value |
A[T] |
postfix? |
boolean |
A[T]
node_modules/@flamework/components/out/index.d.ts:27
▸ setInstance(instance, attributes): void
| Name | Type |
|---|---|
instance |
I |
attributes |
unknown |
void
node_modules/@flamework/components/out/index.d.ts:26
▸ setState(state): void
| Name | Type |
|---|---|
state |
string |
void
- client/controllers/SpringCam
- client/controllers/Direction
- client/controllers/Rotation
- client/controllers/Shake
- client/controllers/Input
- server/modules/InputParser
- server/modules/Middleware
- server/modules/AnimPlayer
- server/modules/Action
- server/modules/Defer