refactoring command post mini project 2
This commit is contained in:
parent
66e6008ab8
commit
93c3ee323c
|
@ -1,6 +1,6 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://viqdvqrnn5c7"]
|
||||
|
||||
[ext_resource type="Script" path="res://assets/cp/controllers/attacker/CommandPostAttackers.gd" id="1_71i6h"]
|
||||
[ext_resource type="Script" path="res://scripts/controllers/cp/attacker/CommandPostAttackers.gd" id="1_71i6h"]
|
||||
[ext_resource type="PackedScene" uid="uid://cc3xcu8ipc6mu" path="res://assets/character/attacker/attacker_character.tscn" id="2_itmdl"]
|
||||
|
||||
[node name="CommandPostAttackers" type="Node3D"]
|
|
@ -1,6 +1,6 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://fjmd7edm67ps"]
|
||||
|
||||
[ext_resource type="Script" path="res://assets/cp/controllers/CommandPostController.gd" id="1_ljrld"]
|
||||
[ext_resource type="Script" path="res://scripts/controllers/cp/CommandPostController.gd" id="1_ljrld"]
|
||||
|
||||
[node name="CommandPostController" type="Node3D"]
|
||||
script = ExtResource("1_ljrld")
|
|
@ -1,6 +1,6 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://d3wabfyfccfs8"]
|
||||
|
||||
[ext_resource type="Script" path="res://assets/cp/controllers/defender/CommandPostDefenders.gd" id="1_t3jlv"]
|
||||
[ext_resource type="Script" path="res://scripts/controllers/cp/defender/CommandPostDefenders.gd" id="1_t3jlv"]
|
||||
[ext_resource type="PackedScene" uid="uid://bijsg61uyql4t" path="res://assets/character/defender/defender_character.tscn" id="2_7efxs"]
|
||||
|
||||
[node name="CommandPostDefenders" type="Node3D"]
|
|
@ -1,6 +1,6 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://dqx5s14sb162x"]
|
||||
|
||||
[ext_resource type="Script" path="res://assets/cp/controllers/neutral/CommandPostNeutral.gd" id="1_tfbyg"]
|
||||
[ext_resource type="Script" path="res://scripts/controllers/cp/neutral/CommandPostNeutral.gd" id="1_tfbyg"]
|
||||
|
||||
[node name="CommandPostNeutral" type="Node3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5, 0)
|
|
@ -1,6 +1,6 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://c8sqb7smoc253"]
|
||||
|
||||
[ext_resource type="Script" path="res://assets/cp/controllers/nonaligned/command_post_non_aligned.gd" id="1_dqg0t"]
|
||||
[ext_resource type="Script" path="res://scripts/controllers/cp/nonaligned/command_post_non_aligned.gd" id="1_dqg0t"]
|
||||
[ext_resource type="PackedScene" uid="uid://6ngrwq73dgcn" path="res://assets/character/non_aligned/non_aligned_character.tscn" id="2_txjnm"]
|
||||
|
||||
[node name="CommandPostNonAligned" type="Node3D"]
|
|
@ -1,4 +1,4 @@
|
|||
class_name GameManager extends Node3D
|
||||
class_name GameController extends Node3D
|
||||
|
||||
|
||||
@export var attacker_spawn_pool: int = 100
|
|
@ -1,4 +1,4 @@
|
|||
class_name GameManagerAssault extends GameManager
|
||||
class_name GameControllerAssault extends GameController
|
||||
|
||||
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://0l5bb77bjxh1"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/controllers/game/assault/GameManagerAssault.gd" id="1_3de00"]
|
||||
[ext_resource type="Script" path="res://scripts/controllers/game/assault/GameControllerAssault.gd" id="1_3de00"]
|
||||
|
||||
[node name="GameManagerAssault" type="Node3D"]
|
||||
[node name="GameControllerAssault" type="Node3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5, 0)
|
||||
script = ExtResource("1_3de00")
|
||||
attacker_spawn_pool = 32
|
|
@ -1,4 +1,4 @@
|
|||
class_name GameManagerCTF extends GameManager
|
||||
class_name GameControllerCTF extends GameController
|
||||
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://yc16c57cvxed"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/controllers/game/ctf/GameManagerCTF.gd" id="1_8hqtg"]
|
||||
[ext_resource type="Script" path="res://scripts/controllers/game/ctf/GameControllerCTF.gd" id="1_8hqtg"]
|
||||
|
||||
[node name="GameManagerCTF" type="Node3D"]
|
||||
[node name="GameControllerCTF" type="Node3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5, 0)
|
||||
script = ExtResource("1_8hqtg")
|
|
@ -1,6 +1,6 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://fttl5l83hgkx"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/controllers/game/game_manager.gd" id="1_ok0hn"]
|
||||
[ext_resource type="Script" path="res://scripts/controllers/game/GameController.gd" id="1_fd8es"]
|
||||
|
||||
[node name="game_manager" type="Node3D"]
|
||||
script = ExtResource("1_ok0hn")
|
||||
script = ExtResource("1_fd8es")
|
|
@ -1,4 +1,4 @@
|
|||
class_name GameManagerHeros extends GameManager
|
||||
class_name GameControllerHeros extends GameController
|
||||
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://c68qnbgmxxjgy"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/controllers/game/heros/GameManagerHeros.gd" id="1_hdicy"]
|
||||
[ext_resource type="Script" path="res://scripts/controllers/game/heros/GameControllerHeros.gd" id="1_hdicy"]
|
||||
|
||||
[node name="GameManagerHeros" type="Node3D"]
|
||||
[node name="GameControllerHeros" type="Node3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5, 0)
|
||||
script = ExtResource("1_hdicy")
|
|
@ -1,11 +1,11 @@
|
|||
[gd_scene load_steps=13 format=3 uid="uid://oi1rlj4a58gr"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://0l5bb77bjxh1" path="res://scripts/controllers/game/assault/game_manager_assault.tscn" id="1_170qh"]
|
||||
[ext_resource type="PackedScene" uid="uid://0l5bb77bjxh1" path="res://scripts/controllers/game/assault/game_controller_assault.tscn" id="1_170qh"]
|
||||
[ext_resource type="PackedScene" uid="uid://ctbug001xo01q" path="res://assets/cp/command_post.tscn" id="1_i3oxs"]
|
||||
[ext_resource type="PackedScene" uid="uid://dqx5s14sb162x" path="res://assets/cp/controllers/neutral/command_post_neutral.tscn" id="3_460gl"]
|
||||
[ext_resource type="PackedScene" uid="uid://viqdvqrnn5c7" path="res://assets/cp/controllers/attacker/command_post_attackers.tscn" id="4_v0ljc"]
|
||||
[ext_resource type="PackedScene" uid="uid://d3wabfyfccfs8" path="res://assets/cp/controllers/defender/command_post_defenders.tscn" id="5_djntp"]
|
||||
[ext_resource type="PackedScene" uid="uid://c8sqb7smoc253" path="res://assets/cp/controllers/nonaligned/command_post_non_aligned.tscn" id="6_o56jr"]
|
||||
[ext_resource type="PackedScene" uid="uid://dqx5s14sb162x" path="res://scripts/controllers/cp/neutral/command_post_neutral.tscn" id="3_460gl"]
|
||||
[ext_resource type="PackedScene" uid="uid://viqdvqrnn5c7" path="res://scripts/controllers/cp/attacker/command_post_attackers.tscn" id="4_v0ljc"]
|
||||
[ext_resource type="PackedScene" uid="uid://d3wabfyfccfs8" path="res://scripts/controllers/cp/defender/command_post_defenders.tscn" id="5_djntp"]
|
||||
[ext_resource type="PackedScene" uid="uid://c8sqb7smoc253" path="res://scripts/controllers/cp/nonaligned/command_post_non_aligned.tscn" id="6_o56jr"]
|
||||
|
||||
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_diy8s"]
|
||||
sky_top_color = Color(0.219608, 0.486275, 0.580392, 1)
|
||||
|
@ -56,10 +56,8 @@ skeleton = NodePath("../..")
|
|||
transform = Transform3D(0.384326, -0.718956, 0.579134, 0, 0.627313, 0.778767, -0.923197, -0.2993, 0.241093, 11.7269, 15.7692, 4.88189)
|
||||
current = true
|
||||
|
||||
[node name="GameManagerAssault" parent="." instance=ExtResource("1_170qh")]
|
||||
attacker_max_active = 3
|
||||
defender_max_active = 3
|
||||
non_aligned_max_active = 3
|
||||
[node name="GameControllerAssault" parent="." instance=ExtResource("1_170qh")]
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="CommandPostNeutral" parent="." instance=ExtResource("3_460gl")]
|
||||
metadata/_edit_lock_ = true
|
||||
|
|
Loading…
Reference in New Issue