mirror of
https://github.com/BlackMATov/evolved.lua.git
synced 2025-12-15 04:15:28 +07:00
fix: remove teal types for internal usage
This commit is contained in:
12
evolved.d.tl
12
evolved.d.tl
@@ -14,11 +14,9 @@ local record Evolved
|
|||||||
type Component = any
|
type Component = any
|
||||||
|
|
||||||
type Storage = { Component }
|
type Storage = { Component }
|
||||||
type EachState = { integer, Chunk, integer, integer }
|
|
||||||
type ExecuteState = { integer, { Chunk }, integer, {Fragment: integer} | nil }
|
|
||||||
|
|
||||||
type EachIterator = function(state?: EachState): (Fragment | nil, Component | nil)
|
type EachIterator = function(): (Fragment, Component)
|
||||||
type ExecuteIterator = function(state?: ExecuteState): (Chunk | nil, { Entity } | nil, integer | nil)
|
type ExecuteIterator = function(): (Chunk, { Entity }, integer)
|
||||||
|
|
||||||
type Execute = function(chunk: Chunk, entity_list: { Entity }, entity_count: integer)
|
type Execute = function(chunk: Chunk, entity_list: { Entity }, entity_count: integer)
|
||||||
type Prologue = function()
|
type Prologue = function()
|
||||||
@@ -150,9 +148,9 @@ local record Evolved
|
|||||||
batch_clear: function(...: Query)
|
batch_clear: function(...: Query)
|
||||||
batch_destroy: function(...: Query)
|
batch_destroy: function(...: Query)
|
||||||
|
|
||||||
each: function(entity: Entity): (EachIterator, EachState | nil)
|
each: function(entity: Entity): EachIterator
|
||||||
execute: function(query: Query): (ExecuteIterator, ExecuteState | nil)
|
execute: function(query: Query): ExecuteIterator
|
||||||
locate: function(entity: Entity): (any | nil, number)
|
locate: function(entity: Entity): (any, number)
|
||||||
|
|
||||||
process: function(...: System)
|
process: function(...: System)
|
||||||
debug_mode: function(yesno: boolean)
|
debug_mode: function(yesno: boolean)
|
||||||
|
|||||||
Reference in New Issue
Block a user