mirror of
https://github.com/bloeys/nmage.git
synced 2025-12-29 05:18:21 +00:00
18 lines
222 B
Go
Executable File
18 lines
222 B
Go
Executable File
package level
|
|
|
|
import (
|
|
"github.com/bloeys/nmage/assert"
|
|
)
|
|
|
|
type Level struct {
|
|
Name string
|
|
}
|
|
|
|
func NewLevel(name string) *Level {
|
|
|
|
assert.T(name != "", "Level name can not be empty")
|
|
return &Level{
|
|
Name: name,
|
|
}
|
|
}
|