-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make 'ManagingProduction' a 'ProductionQueue' trait
- Loading branch information
Showing
15 changed files
with
40 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1 @@ | ||
extends "res://source/match/units/Structure.gd" | ||
|
||
const ManagingProduction = preload("res://source/match/units/actions/ManagingProduction.gd") | ||
|
||
|
||
func _ready(): | ||
await super() | ||
if not is_constructed(): | ||
await constructed | ||
action = ManagingProduction.new() | ||
|
||
|
||
func _set_action(action_node): | ||
if not _action_locked and action == null: | ||
super(action_node) | ||
elif action_node != null: | ||
action_node.queue_free() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1 @@ | ||
extends "res://source/match/units/Structure.gd" | ||
|
||
const ManagingProduction = preload("res://source/match/units/actions/ManagingProduction.gd") | ||
|
||
|
||
func _ready(): | ||
await super() | ||
if not is_constructed(): | ||
await constructed | ||
action = ManagingProduction.new() | ||
|
||
|
||
func _set_action(action_node): | ||
if not _action_locked and action == null: | ||
super(action_node) | ||
elif action_node != null: | ||
action_node.queue_free() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1 @@ | ||
extends "res://source/match/units/Structure.gd" | ||
|
||
const ManagingProduction = preload("res://source/match/units/actions/ManagingProduction.gd") | ||
|
||
|
||
func _ready(): | ||
await super() | ||
if not is_constructed(): | ||
await constructed | ||
action = ManagingProduction.new() | ||
|
||
|
||
func _set_action(action_node): | ||
if not _action_locked and action == null: | ||
super(action_node) | ||
elif action_node != null: | ||
action_node.queue_free() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[gd_scene load_steps=2 format=3 uid="uid://cd3v6508vjcu3"] | ||
|
||
[ext_resource type="Script" path="res://source/match/units/traits/ProductionQueue.gd" id="1_krjoq"] | ||
|
||
[node name="ProductionQueue" type="Node"] | ||
script = ExtResource("1_krjoq") |