mirror of
https://github.com/mrusme/neonmodem.git
synced 2024-09-01 04:14:15 -04:00
24 lines
353 B
Go
24 lines
353 B
Go
package ctx
|
|
|
|
import "github.com/mrusme/gobbs/system"
|
|
|
|
type Ctx struct {
|
|
Screen [2]int
|
|
Content [2]int
|
|
Systems []*system.System
|
|
Loading bool
|
|
}
|
|
|
|
func New() Ctx {
|
|
return Ctx{
|
|
Screen: [2]int{0, 0},
|
|
Content: [2]int{0, 0},
|
|
Loading: false,
|
|
}
|
|
}
|
|
|
|
func (c *Ctx) AddSystem(sys *system.System) error {
|
|
c.Systems = append(c.Systems, sys)
|
|
return nil
|
|
}
|