Forest Logo
search
package_2

river

By @hawdevelopment

Roblox

Mirrored

River

River is a fast and simple ECS made specifically with data in mind. Make your games faster and easier to manage. It has a simple syntax and lets you use Luau type system. River gets your data right when you want it.

Read more here: https://HawDevelopment.github.io/River/


Heres some examples! Create some data first!

local Component = River.Component
local Type = River.Type
local Entity = River.Entity

local MyComponent = Component({
    Name = Type("string"),
    Age = Type("number"),
})

local MyEntity = Entity({
    Person = MyComponent({
        Name = "Dave",
        Age = 69,
    }),
})

Change some data!

local System = River.System
local Query = River.Query

local MyQuery = Query(MyComponent)

local MySystem = System(function(query)
    for _, entity in pairs(query) do
        entity.Person.Age += 1
    end
end)
MySystem:add(MyQuery)

Call the system!

MySystem:call()

-- OR

local World = River.World

local MyWorld = World()
MyWorld:add(MySystem, "update")
MyWorld:start()

Package Details

Install command (Click to copy)


Version

1.1.0

License

MIT

check_circle

Safe for commercial use

infoLicense identified from the packaged LICENSE file; the manifest declared none.

Automated license review — not legal advice.