22 lines
438 B
Text
22 lines
438 B
Text
class AtmosphereData:
|
|
enum {
|
|
WATER,
|
|
AIR,
|
|
SMOKY,
|
|
}
|
|
var _toxigen :float
|
|
var _type :int
|
|
|
|
func _init(type := AIR, toxigen := 0.0):
|
|
_type = type
|
|
_toxigen = toxigen
|
|
# some comment, and an row staring with an space to simmulate invalid formatting
|
|
|
|
|
|
# seter func with default values
|
|
func set_data(type := AIR, toxigen := 0.0) :
|
|
_type = type
|
|
_toxigen = toxigen
|
|
|
|
static func to_atmosphere(_value :Dictionary) -> AtmosphereData:
|
|
return null
|