Adjust the namespace.
调整命名空间。
This commit is contained in:
parent
53f830d5a6
commit
18d9ccb8ab
|
@ -1,6 +1,6 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://cn10fimoem04m"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/item/Packsack.cs" id="1_slakl"]
|
||||
[ext_resource type="Script" path="res://scripts/inventory/Packsack.cs" id="1_slakl"]
|
||||
[ext_resource type="Texture2D" uid="uid://dvx10dfjctn7t" path="res://sprites/packsack.png" id="2_40jca"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_brthl"]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://dnnn2xyayiehk"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://e6670ykyq145" path="res://sprites/weapon/staffOfTheUndead.png" id="1_ms3us"]
|
||||
[ext_resource type="Script" path="res://scripts/item/weapon/ProjectileWeapon.cs" id="1_w8hhv"]
|
||||
[ext_resource type="Script" path="res://scripts/weapon/ProjectileWeapon.cs" id="1_w8hhv"]
|
||||
[ext_resource type="PackedScene" uid="uid://c01av43yk1q71" path="res://prefab/projectile/curseOfTheUndead.tscn" id="2_34250"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_obcq2"]
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
using ColdMint.scripts.character;
|
||||
using ColdMint.scripts.inventory;
|
||||
using ColdMint.scripts.item;
|
||||
using ColdMint.scripts.loader.uiLoader;
|
||||
using ColdMint.scripts.map.events;
|
||||
using ColdMint.scripts.utils;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using ColdMint.scripts.character;
|
||||
|
||||
using ColdMint.scripts.item.weapon;
|
||||
using WeaponTemplate = ColdMint.scripts.weapon.WeaponTemplate;
|
||||
|
||||
namespace ColdMint.scripts.behaviorTree.ai;
|
||||
|
||||
|
|
|
@ -1,36 +0,0 @@
|
|||
using ColdMint.scripts.behaviorTree.ai;
|
||||
using ColdMint.scripts.character;
|
||||
|
||||
namespace ColdMint.scripts.behaviorTree.behavior;
|
||||
|
||||
/// <summary>
|
||||
/// <para>Represents a behavior tree for patrol</para>
|
||||
/// <para>表示巡逻的行为树</para>
|
||||
/// </summary>
|
||||
public class PatrolBehaviorTree : BehaviorTreeTemplate
|
||||
{
|
||||
public AiCharacter? Character { get; set; }
|
||||
protected override IBehaviorTreeNode CreateRoot()
|
||||
{
|
||||
var patrolNode = new AiPatrolNode();
|
||||
var aiWalkNode = new AiWalkNode();
|
||||
var aiRotorNode = new AiRotorNode();
|
||||
var aIPickNode = new AiPickNode();
|
||||
var aiAttackNode = new AiAttackNode();
|
||||
aiWalkNode.Character = Character;
|
||||
patrolNode.Character = Character;
|
||||
aiRotorNode.Character = Character;
|
||||
aIPickNode.Character = Character;
|
||||
aiAttackNode.Character = Character;
|
||||
patrolNode.AddChild(aiWalkNode);
|
||||
patrolNode.AddChild(aiRotorNode);
|
||||
patrolNode.AddChild(aIPickNode);
|
||||
patrolNode.AddChild(aiAttackNode);
|
||||
return patrolNode;
|
||||
}
|
||||
|
||||
protected override string CreateId()
|
||||
{
|
||||
return Config.BehaviorTreeId.Patrol;
|
||||
}
|
||||
}
|
|
@ -6,12 +6,11 @@ using ColdMint.scripts.damage;
|
|||
using ColdMint.scripts.debug;
|
||||
using ColdMint.scripts.health;
|
||||
using ColdMint.scripts.inventory;
|
||||
using ColdMint.scripts.item;
|
||||
using ColdMint.scripts.utils;
|
||||
using ColdMint.scripts.item.weapon;
|
||||
using ColdMint.scripts.loot;
|
||||
using ColdMint.scripts.pickable;
|
||||
using Godot;
|
||||
using WeaponTemplate = ColdMint.scripts.weapon.WeaponTemplate;
|
||||
|
||||
namespace ColdMint.scripts.character;
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@ using System.Threading.Tasks;
|
|||
using ColdMint.scripts.damage;
|
||||
using ColdMint.scripts.deathInfo;
|
||||
using ColdMint.scripts.inventory;
|
||||
using ColdMint.scripts.item;
|
||||
using ColdMint.scripts.map.events;
|
||||
using ColdMint.scripts.utils;
|
||||
using ColdMint.scripts.pickable;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using Godot;
|
||||
|
||||
namespace ColdMint.scripts.item;
|
||||
namespace ColdMint.scripts.inventory;
|
||||
|
||||
public interface IItem
|
||||
{
|
|
@ -1,6 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using ColdMint.scripts.item;
|
||||
using ColdMint.scripts.map.events;
|
||||
using Godot;
|
||||
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using System;
|
||||
using System.Text.RegularExpressions;
|
||||
using ColdMint.scripts.item;
|
||||
using ColdMint.scripts.utils;
|
||||
using Godot;
|
||||
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
using System;
|
||||
|
||||
using Godot;
|
||||
|
||||
namespace ColdMint.scripts.item;
|
||||
namespace ColdMint.scripts.inventory;
|
||||
|
||||
public readonly struct ItemType(string id, Func<IItem?> newItemFunc, Texture2D? icon, int maxStackQuantity)
|
||||
{
|
|
@ -1,10 +1,8 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
using ColdMint.scripts.utils;
|
||||
|
||||
using Godot;
|
||||
|
||||
namespace ColdMint.scripts.item;
|
||||
namespace ColdMint.scripts.inventory;
|
||||
|
||||
/// <summary>
|
||||
/// <para>Item manager</para>
|
|
@ -6,9 +6,10 @@ using ColdMint.scripts.serialization;
|
|||
using ColdMint.scripts.utils;
|
||||
using Godot;
|
||||
|
||||
namespace ColdMint.scripts.item;
|
||||
namespace ColdMint.scripts.inventory;
|
||||
|
||||
/// <summary>
|
||||
/// Responsible for registering items from documents
|
||||
/// 负责从文件注册物品
|
||||
/// </summary>
|
||||
public static class ItemTypeRegister
|
|
@ -1,11 +1,9 @@
|
|||
using ColdMint.scripts.inventory;
|
||||
using ColdMint.scripts.pickable;
|
||||
using ColdMint.scripts.pickable;
|
||||
using ColdMint.scripts.utils;
|
||||
|
||||
using Godot;
|
||||
using PacksackUi = ColdMint.scripts.loader.uiLoader.PacksackUi;
|
||||
|
||||
namespace ColdMint.scripts.item;
|
||||
namespace ColdMint.scripts.inventory;
|
||||
|
||||
/// <summary>
|
||||
/// <para>packsack</para>
|
|
@ -2,7 +2,6 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using ColdMint.scripts.item;
|
||||
using ColdMint.scripts.map.events;
|
||||
using ColdMint.scripts.utils;
|
||||
using Godot;
|
||||
|
|
|
@ -6,7 +6,7 @@ using ColdMint.scripts.camp;
|
|||
using ColdMint.scripts.contribute;
|
||||
using ColdMint.scripts.deathInfo;
|
||||
using ColdMint.scripts.debug;
|
||||
using ColdMint.scripts.item;
|
||||
using ColdMint.scripts.inventory;
|
||||
using ColdMint.scripts.loot;
|
||||
using ColdMint.scripts.map;
|
||||
using ColdMint.scripts.map.roomInjectionProcessor;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
using ColdMint.scripts.camp;
|
||||
using ColdMint.scripts.character;
|
||||
using ColdMint.scripts.damage;
|
||||
using ColdMint.scripts.item;
|
||||
using ColdMint.scripts.inventory;
|
||||
using Godot;
|
||||
|
||||
namespace ColdMint.scripts.pickable;
|
||||
|
|
|
@ -3,8 +3,7 @@ using System;
|
|||
using ColdMint.scripts.camp;
|
||||
using ColdMint.scripts.character;
|
||||
using ColdMint.scripts.damage;
|
||||
using ColdMint.scripts.item;
|
||||
using ColdMint.scripts.item.weapon;
|
||||
using ColdMint.scripts.inventory;
|
||||
using ColdMint.scripts.pickable;
|
||||
using Godot;
|
||||
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using ColdMint.scripts.debug;
|
||||
using ColdMint.scripts.item;
|
||||
using ColdMint.scripts.item.weapon;
|
||||
using Godot;
|
||||
using Packsack = ColdMint.scripts.inventory.Packsack;
|
||||
using PacksackUi = ColdMint.scripts.loader.uiLoader.PacksackUi;
|
||||
using WeaponTemplate = ColdMint.scripts.weapon.WeaponTemplate;
|
||||
|
||||
|
||||
namespace ColdMint.scripts.utils;
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
using ColdMint.scripts.debug;
|
||||
using ColdMint.scripts.projectile;
|
||||
using ColdMint.scripts.utils;
|
||||
|
||||
using Godot;
|
||||
|
||||
namespace ColdMint.scripts.item.weapon;
|
||||
namespace ColdMint.scripts.weapon;
|
||||
|
||||
/// <summary>
|
||||
/// <para>Projectile weapons</para>
|
|
@ -1,10 +1,9 @@
|
|||
using System;
|
||||
|
||||
using ColdMint.scripts.character;
|
||||
using ColdMint.scripts.pickable;
|
||||
using Godot;
|
||||
|
||||
namespace ColdMint.scripts.item.weapon;
|
||||
namespace ColdMint.scripts.weapon;
|
||||
|
||||
/// <summary>
|
||||
/// <para>WeaponTemplate</para>
|
Loading…
Reference in New Issue
Block a user