Initial commit
This commit is contained in:
@@ -0,0 +1 @@
|
||||
uid://dq17s7r52klxe
|
||||
@@ -0,0 +1,18 @@
|
||||
extends Object
|
||||
class_name GridCell
|
||||
|
||||
var position: Vector2i
|
||||
var spaceTaken: bool = false
|
||||
var door: bool = false
|
||||
var doorOrientation: int
|
||||
enum doorOrientations {north,east,south,west}
|
||||
|
||||
var biome: String
|
||||
|
||||
func duplicate() -> GridCell:
|
||||
var returnData := GridCell.new()
|
||||
returnData.spaceTaken = spaceTaken
|
||||
returnData.door = door
|
||||
returnData.doorOrientation = doorOrientation
|
||||
returnData.biome = biome
|
||||
return returnData
|
||||
Reference in New Issue
Block a user