# `tecs.ecs.phases` The ordered frame phase constants. ## Functions ### `at` _function_ ```nupp function at(index: integer): Phase? ``` Returns a phase by its one-based frame position. #### Arguments | Name | Type | Description | | --- | --- | --- | | `index` | `integer` | the one-based phase position | #### Returns | Type | Description | | --- | --- | | `Phase?` | the phase, or nil outside the frame order | ### `selectionAt` _function_ ```nupp function selectionAt(selection: Selection, index: integer): Phase? ``` Returns one leaf from a phase or predefined group. #### Arguments | Name | Type | Description | | --- | --- | --- | | `selection` | `Selection` | the leaf or group to traverse | | `index` | `integer` | the one-based position inside the selection | #### Returns | Type | Description | | --- | --- | | `Phase?` | the selected leaf, or nil after the selection is exhausted | ### `shutdownAt` _function_ ```nupp function shutdownAt(index: integer): Phase? ``` Returns a shutdown phase by its one-based lifecycle position. #### Arguments | Name | Type | Description | | --- | --- | --- | | `index` | `integer` | the one-based shutdown position | #### Returns | Type | Description | | --- | --- | | `Phase?` | the phase, or nil outside the shutdown order | ### `startupAt` _function_ ```nupp function startupAt(index: integer): Phase? ``` Returns a startup phase by its one-based lifecycle position. #### Arguments | Name | Type | Description | | --- | --- | --- | | `index` | `integer` | the one-based startup position | #### Returns | Type | Description | | --- | --- | | `Phase?` | the phase, or nil outside the startup order | ## Values ### `AllGroups` _variable_ ```nupp const AllGroups: PhaseGroup ``` ### `beforeFixedCount` _variable_ ```nupp const beforeFixedCount: integer ``` ### `count` _variable_ ```nupp const count: integer ``` ### `First` _variable_ ```nupp const First: Phase ``` ### `FixedFirst` _variable_ ```nupp const FixedFirst: Phase ``` ### `fixedFirstIndex` _variable_ ```nupp const fixedFirstIndex: integer ``` ### `FixedLast` _variable_ ```nupp const FixedLast: Phase ``` ### `fixedLastIndex` _variable_ ```nupp const fixedLastIndex: integer ``` ### `FixedPostUpdate` _variable_ ```nupp const FixedPostUpdate: Phase ``` ### `FixedPreUpdate` _variable_ ```nupp const FixedPreUpdate: Phase ``` ### `FixedUpdate` _variable_ ```nupp const FixedUpdate: Phase ``` ### `FixedUpdateGroup` _variable_ ```nupp const FixedUpdateGroup: PhaseGroup ``` ### `Ingress` _variable_ ```nupp const Ingress: Phase ``` ### `Last` _variable_ ```nupp const Last: Phase ``` ### `MainGroup` _variable_ ```nupp const MainGroup: PhaseGroup ``` ### `PostRender` _variable_ ```nupp const PostRender: Phase ``` ### `PostShutdown` _variable_ ```nupp const PostShutdown: Phase ``` ### `PostStartup` _variable_ ```nupp const PostStartup: Phase ``` ### `PostUpdate` _variable_ ```nupp const PostUpdate: Phase ``` ### `PreRender` _variable_ ```nupp const PreRender: Phase ``` ### `PreShutdown` _variable_ ```nupp const PreShutdown: Phase ``` ### `PreStartup` _variable_ ```nupp const PreStartup: Phase ``` ### `PreUpdate` _variable_ ```nupp const PreUpdate: Phase ``` ### `Render` _variable_ ```nupp const Render: Phase ``` ### `RenderFirst` _variable_ ```nupp const RenderFirst: Phase ``` ### `RenderGroup` _variable_ ```nupp const RenderGroup: PhaseGroup ``` ### `RenderLast` _variable_ ```nupp const RenderLast: Phase ``` ### `Shutdown` _variable_ ```nupp const Shutdown: Phase ``` ### `shutdownCount` _variable_ ```nupp const shutdownCount: integer ``` ### `ShutdownGroup` _variable_ ```nupp const ShutdownGroup: PhaseGroup ``` ### `Startup` _variable_ ```nupp const Startup: Phase ``` ### `startupCount` _variable_ ```nupp const startupCount: integer ``` ### `StartupGroup` _variable_ ```nupp const StartupGroup: PhaseGroup ``` ### `Update` _variable_ ```nupp const Update: Phase ```