mirror of
http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite.git
synced 2025-11-20 03:07:12 +08:00
(client) feat:添加基地界面到游玩界面的过程,添加存档管理,技能树变得可用 (#58)
Co-authored-by: m0_75251201 <m0_75251201@noreply.gitcode.com> Reviewed-on: http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite/pulls/58
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Xml.Linq;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Data
|
||||
{
|
||||
@@ -23,13 +24,11 @@ namespace Data
|
||||
var xElements = nodes as XElement[] ?? nodes.ToArray();
|
||||
if (!xElements.Any())
|
||||
return false;
|
||||
|
||||
List<BehaviorTreeDef> children = new();
|
||||
foreach (var node in xElements)
|
||||
{
|
||||
var childNode = new BehaviorTreeDef();
|
||||
if (!childNode.Init(node))
|
||||
return false;
|
||||
childNode.Init(node);
|
||||
children.Add(childNode);
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ namespace Data
|
||||
{
|
||||
public class CharacterDef : EntityDef
|
||||
{
|
||||
public DimensionDef insideDimensionDef;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -3,6 +3,8 @@ namespace Data
|
||||
public class DimensionDef:Define
|
||||
{
|
||||
public MapGeneratorDef[] mapGenerators;
|
||||
|
||||
public string icon;
|
||||
public bool canSelect = true;
|
||||
public StoryDef story;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user