(client) chore:支持unity的方式加载资源,调整文件名与定义的分布
This commit is contained in:
7
Client/Assets/Scripts/Data/AffiliationDef.cs
Normal file
7
Client/Assets/Scripts/Data/AffiliationDef.cs
Normal file
@ -0,0 +1,7 @@
|
||||
namespace Data
|
||||
{
|
||||
public class AffiliationDef : Define
|
||||
{
|
||||
|
||||
}
|
||||
}
|
3
Client/Assets/Scripts/Data/AffiliationDef.cs.meta
Normal file
3
Client/Assets/Scripts/Data/AffiliationDef.cs.meta
Normal file
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bdca0abb717148269b84fe8884ebbf02
|
||||
timeCreated: 1754545405
|
@ -1,25 +1,9 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace Data
|
||||
{
|
||||
public class PawnDef : Define
|
||||
{
|
||||
public AttributesDef attributes;
|
||||
public DrawingOrderDef drawingOrder;
|
||||
|
||||
public BehaviorTreeDef behaviorTree;
|
||||
public string affiliation;
|
||||
|
||||
|
||||
}
|
||||
public class MonsterDef:PawnDef
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public class BehaviorTreeDef : Define
|
||||
{
|
||||
public BehaviorTreeDef[] childTree;
|
||||
@ -53,8 +37,4 @@ namespace Data
|
||||
}
|
||||
}
|
||||
|
||||
public class AffiliationDef : Define
|
||||
{
|
||||
|
||||
}
|
||||
}
|
3
Client/Assets/Scripts/Data/BehaviorTreeDef.cs.meta
Normal file
3
Client/Assets/Scripts/Data/BehaviorTreeDef.cs.meta
Normal file
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8513d8eee75e4b9f92179e29f88221b3
|
||||
timeCreated: 1754545380
|
@ -2,6 +2,6 @@ namespace Data
|
||||
{
|
||||
public class BuildingDef:PawnDef
|
||||
{
|
||||
|
||||
public bool IsBlocked = true;
|
||||
}
|
||||
}
|
16
Client/Assets/Scripts/Data/CharacterDef.cs
Normal file
16
Client/Assets/Scripts/Data/CharacterDef.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Xml.Linq;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Data
|
||||
{
|
||||
public class CharacterDef : PawnDef
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Xml.Linq;
|
||||
using UnityEngine;
|
||||
@ -20,11 +19,6 @@ namespace Data
|
||||
Image,
|
||||
Animation
|
||||
}
|
||||
|
||||
public class CharacterDef : PawnDef
|
||||
{
|
||||
}
|
||||
|
||||
public class DrawingOrderDef : Define
|
||||
{
|
||||
public DrawNodeDef drawingOrder_down;
|
||||
@ -143,5 +137,4 @@ namespace Data
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
3
Client/Assets/Scripts/Data/DrawingOrderDef.cs.meta
Normal file
3
Client/Assets/Scripts/Data/DrawingOrderDef.cs.meta
Normal file
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6360fb04b7a9454d9ac6d8f4864ee31f
|
||||
timeCreated: 1754545254
|
7
Client/Assets/Scripts/Data/MonsterDef.cs
Normal file
7
Client/Assets/Scripts/Data/MonsterDef.cs
Normal file
@ -0,0 +1,7 @@
|
||||
namespace Data
|
||||
{
|
||||
public class MonsterDef:PawnDef
|
||||
{
|
||||
|
||||
}
|
||||
}
|
3
Client/Assets/Scripts/Data/MonsterDef.cs.meta
Normal file
3
Client/Assets/Scripts/Data/MonsterDef.cs.meta
Normal file
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: eeac50195bd94af4a21039131cdb77d6
|
||||
timeCreated: 1754545363
|
22
Client/Assets/Scripts/Data/PawnDef.cs
Normal file
22
Client/Assets/Scripts/Data/PawnDef.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace Data
|
||||
{
|
||||
public class PawnDef : Define
|
||||
{
|
||||
public AttributesDef attributes;
|
||||
public DrawingOrderDef drawingOrder;
|
||||
|
||||
public BehaviorTreeDef behaviorTree;
|
||||
public string affiliation;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user