mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-11-11 00:36:00 +00:00
update
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
public static class ExternalTypeUtil
|
||||
{
|
||||
public static UnityEngine.Vector2 NewVector2(cfg.vec2 v)
|
||||
{
|
||||
return new UnityEngine.Vector2(v.X, v.Y);
|
||||
}
|
||||
|
||||
public static UnityEngine.Vector3 NewVector3(cfg.vec3 v)
|
||||
{
|
||||
return new UnityEngine.Vector3(v.X, v.Y, v.Z);
|
||||
}
|
||||
|
||||
public static UnityEngine.Vector4 NewVector4(cfg.vec4 v)
|
||||
{
|
||||
return new UnityEngine.Vector4(v.X, v.Y, v.Z, v.W);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 57f206e1fd7a0a149a661cb7b7ceccad
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1f51b80845c14ce4e8015f0e7c83c1c3
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,22 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
public enum AudioType
|
||||
{
|
||||
UNKNOWN = 0,
|
||||
ACC = 1,
|
||||
AIFF = 2,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 50aee43678937604d9e85b9338acf79c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,120 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
public sealed partial class DefineFromExcel2 : Luban.BeanBase
|
||||
{
|
||||
public DefineFromExcel2(JSONNode _buf)
|
||||
{
|
||||
{ if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; }
|
||||
{ if(!_buf["x1"].IsBoolean) { throw new SerializationException(); } X1 = _buf["x1"]; }
|
||||
{ if(!_buf["x5"].IsNumber) { throw new SerializationException(); } X5 = _buf["x5"]; }
|
||||
{ if(!_buf["x6"].IsNumber) { throw new SerializationException(); } X6 = _buf["x6"]; }
|
||||
{ if(!_buf["x8"].IsNumber) { throw new SerializationException(); } X8 = _buf["x8"]; }
|
||||
{ if(!_buf["x10"].IsString) { throw new SerializationException(); } X10 = _buf["x10"]; }
|
||||
{ if(!_buf["x13"].IsNumber) { throw new SerializationException(); } X13 = (test.DemoEnum)_buf["x13"].AsInt; }
|
||||
{ if(!_buf["x13_2"].IsNumber) { throw new SerializationException(); } X132 = (test.DemoFlag)_buf["x13_2"].AsInt; }
|
||||
{ if(!_buf["x14"].IsObject) { throw new SerializationException(); } X14 = test.DemoDynamic.DeserializeDemoDynamic(_buf["x14"]); }
|
||||
{ if(!_buf["x15"].IsObject) { throw new SerializationException(); } X15 = test.Shape.DeserializeShape(_buf["x15"]); }
|
||||
{ if(!_buf["v2"].IsObject) { throw new SerializationException(); } V2 = ExternalTypeUtil.NewVector2(vec2.Deserializevec2(_buf["v2"])); }
|
||||
{ if(!_buf["t1"].IsNumber) { throw new SerializationException(); } T1 = _buf["t1"]; }
|
||||
{ var __json0 = _buf["k1"]; if(!__json0.IsArray) { throw new SerializationException(); } int _n0 = __json0.Count; K1 = new int[_n0]; int __index0=0; foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } K1[__index0++] = __v0; } }
|
||||
{ var __json0 = _buf["k2"]; if(!__json0.IsArray) { throw new SerializationException(); } int _n0 = __json0.Count; K2 = new int[_n0]; int __index0=0; foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } K2[__index0++] = __v0; } }
|
||||
{ var __json0 = _buf["k8"]; if(!__json0.IsArray) { throw new SerializationException(); } K8 = new System.Collections.Generic.Dictionary<int, int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int _k0; { if(!__e0[0].IsNumber) { throw new SerializationException(); } _k0 = __e0[0]; } int _v0; { if(!__e0[1].IsNumber) { throw new SerializationException(); } _v0 = __e0[1]; } K8.Add(_k0, _v0); } }
|
||||
{ var __json0 = _buf["k9"]; if(!__json0.IsArray) { throw new SerializationException(); } K9 = new System.Collections.Generic.List<test.DemoE2>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { test.DemoE2 __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = test.DemoE2.DeserializeDemoE2(__e0); } K9.Add(__v0); } }
|
||||
{ var __json0 = _buf["k10"]; if(!__json0.IsArray) { throw new SerializationException(); } K10 = new System.Collections.Generic.List<UnityEngine.Vector3>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { UnityEngine.Vector3 __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = ExternalTypeUtil.NewVector3(vec3.Deserializevec3(__e0)); } K10.Add(__v0); } }
|
||||
{ var __json0 = _buf["k11"]; if(!__json0.IsArray) { throw new SerializationException(); } K11 = new System.Collections.Generic.List<UnityEngine.Vector4>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { UnityEngine.Vector4 __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = ExternalTypeUtil.NewVector4(vec4.Deserializevec4(__e0)); } K11.Add(__v0); } }
|
||||
}
|
||||
|
||||
public static DefineFromExcel2 DeserializeDefineFromExcel2(JSONNode _buf)
|
||||
{
|
||||
return new DefineFromExcel2(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 这是id
|
||||
/// </summary>
|
||||
public readonly int Id;
|
||||
/// <summary>
|
||||
/// 字段x1
|
||||
/// </summary>
|
||||
public readonly bool X1;
|
||||
public readonly long X5;
|
||||
public readonly float X6;
|
||||
public readonly int X8;
|
||||
public readonly string X10;
|
||||
public readonly test.DemoEnum X13;
|
||||
public readonly test.DemoFlag X132;
|
||||
public readonly test.DemoDynamic X14;
|
||||
public readonly test.Shape X15;
|
||||
public readonly UnityEngine.Vector2 V2;
|
||||
public readonly long T1;
|
||||
public readonly int[] K1;
|
||||
public readonly int[] K2;
|
||||
public readonly System.Collections.Generic.Dictionary<int, int> K8;
|
||||
public readonly System.Collections.Generic.List<test.DemoE2> K9;
|
||||
public readonly System.Collections.Generic.List<UnityEngine.Vector3> K10;
|
||||
public readonly System.Collections.Generic.List<UnityEngine.Vector4> K11;
|
||||
|
||||
public const int __ID__ = 482045152;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
X14?.ResolveRef(tables);
|
||||
X15?.ResolveRef(tables);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "x1:" + X1 + ","
|
||||
+ "x5:" + X5 + ","
|
||||
+ "x6:" + X6 + ","
|
||||
+ "x8:" + X8 + ","
|
||||
+ "x10:" + X10 + ","
|
||||
+ "x13:" + X13 + ","
|
||||
+ "x132:" + X132 + ","
|
||||
+ "x14:" + X14 + ","
|
||||
+ "x15:" + X15 + ","
|
||||
+ "v2:" + V2 + ","
|
||||
+ "t1:" + T1 + ","
|
||||
+ "k1:" + Luban.StringUtil.CollectionToString(K1) + ","
|
||||
+ "k2:" + Luban.StringUtil.CollectionToString(K2) + ","
|
||||
+ "k8:" + Luban.StringUtil.CollectionToString(K8) + ","
|
||||
+ "k9:" + Luban.StringUtil.CollectionToString(K9) + ","
|
||||
+ "k10:" + Luban.StringUtil.CollectionToString(K10) + ","
|
||||
+ "k11:" + Luban.StringUtil.CollectionToString(K11) + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 92cd1c84fe21d2646b040501ce5fd38c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
151
luban_examples/Projects/Csharp_Unity_json/Assets/Gen/Tables.cs
Normal file
151
luban_examples/Projects/Csharp_Unity_json/Assets/Gen/Tables.cs
Normal file
@@ -0,0 +1,151 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
public partial class Tables
|
||||
{
|
||||
public ai.TbBlackboard TbBlackboard {get; }
|
||||
public ai.TbBehaviorTree TbBehaviorTree {get; }
|
||||
public common.TbGlobalConfig TbGlobalConfig {get; }
|
||||
/// <summary>
|
||||
/// 道具表
|
||||
/// </summary>
|
||||
public item.TbItem TbItem {get; }
|
||||
public l10n.TbL10NDemo TbL10NDemo {get; }
|
||||
public l10n.TbPatchDemo TbPatchDemo {get; }
|
||||
public tag.TbTestTag TbTestTag {get; }
|
||||
public test.TbFullTypes TbFullTypes {get; }
|
||||
public test.TbSingleton TbSingleton {get; }
|
||||
public test.TbNotIndexList TbNotIndexList {get; }
|
||||
public test.TbMultiUnionIndexList TbMultiUnionIndexList {get; }
|
||||
public test.TbMultiIndexList TbMultiIndexList {get; }
|
||||
public test.TbDataFromMisc TbDataFromMisc {get; }
|
||||
public test.TbMultiRowRecord TbMultiRowRecord {get; }
|
||||
public test.TbTestMultiColumn TbTestMultiColumn {get; }
|
||||
public test.TbMultiRowTitle TbMultiRowTitle {get; }
|
||||
public test.TbTestNull TbTestNull {get; }
|
||||
public test.TbDemoPrimitive TbDemoPrimitive {get; }
|
||||
public test.TbTestString TbTestString {get; }
|
||||
public test.TbDemoGroup TbDemoGroup {get; }
|
||||
public test.TbDemoGroup_C TbDemoGroupC {get; }
|
||||
public test.TbTestGlobal TbTestGlobal {get; }
|
||||
public test.TbTestBeRef TbTestBeRef {get; }
|
||||
public test.TbTestBeRef2 TbTestBeRef2 {get; }
|
||||
public test.TbTestRef TbTestRef {get; }
|
||||
public test.TbTestSize TbTestSize {get; }
|
||||
public test.TbTestSet TbTestSet {get; }
|
||||
public test.TbDetectCsvEncoding TbDetectCsvEncoding {get; }
|
||||
public test.TbItem2 TbItem2 {get; }
|
||||
public test.TbTestIndex TbTestIndex {get; }
|
||||
public test.TbTestMap TbTestMap {get; }
|
||||
public test.TbExcelFromJson TbExcelFromJson {get; }
|
||||
public test.TbCompositeJsonTable1 TbCompositeJsonTable1 {get; }
|
||||
public test.TbCompositeJsonTable2 TbCompositeJsonTable2 {get; }
|
||||
public test.TbCompositeJsonTable3 TbCompositeJsonTable3 {get; }
|
||||
public test.TbExcelFromJsonMultiRow TbExcelFromJsonMultiRow {get; }
|
||||
public test.TbTestScriptableObject TbTestScriptableObject {get; }
|
||||
public test.TbPath TbPath {get; }
|
||||
public test.TbTestMapper TbTestMapper {get; }
|
||||
public test.TbDefineFromExcel2 TbDefineFromExcel2 {get; }
|
||||
|
||||
public Tables(System.Func<string, JSONNode> loader)
|
||||
{
|
||||
TbBlackboard = new ai.TbBlackboard(loader("ai_tbblackboard"));
|
||||
TbBehaviorTree = new ai.TbBehaviorTree(loader("ai_tbbehaviortree"));
|
||||
TbGlobalConfig = new common.TbGlobalConfig(loader("common_tbglobalconfig"));
|
||||
TbItem = new item.TbItem(loader("item_tbitem"));
|
||||
TbL10NDemo = new l10n.TbL10NDemo(loader("l10n_tbl10ndemo"));
|
||||
TbPatchDemo = new l10n.TbPatchDemo(loader("l10n_tbpatchdemo"));
|
||||
TbTestTag = new tag.TbTestTag(loader("tag_tbtesttag"));
|
||||
TbFullTypes = new test.TbFullTypes(loader("test_tbfulltypes"));
|
||||
TbSingleton = new test.TbSingleton(loader("test_tbsingleton"));
|
||||
TbNotIndexList = new test.TbNotIndexList(loader("test_tbnotindexlist"));
|
||||
TbMultiUnionIndexList = new test.TbMultiUnionIndexList(loader("test_tbmultiunionindexlist"));
|
||||
TbMultiIndexList = new test.TbMultiIndexList(loader("test_tbmultiindexlist"));
|
||||
TbDataFromMisc = new test.TbDataFromMisc(loader("test_tbdatafrommisc"));
|
||||
TbMultiRowRecord = new test.TbMultiRowRecord(loader("test_tbmultirowrecord"));
|
||||
TbTestMultiColumn = new test.TbTestMultiColumn(loader("test_tbtestmulticolumn"));
|
||||
TbMultiRowTitle = new test.TbMultiRowTitle(loader("test_tbmultirowtitle"));
|
||||
TbTestNull = new test.TbTestNull(loader("test_tbtestnull"));
|
||||
TbDemoPrimitive = new test.TbDemoPrimitive(loader("test_tbdemoprimitive"));
|
||||
TbTestString = new test.TbTestString(loader("test_tbteststring"));
|
||||
TbDemoGroup = new test.TbDemoGroup(loader("test_tbdemogroup"));
|
||||
TbDemoGroupC = new test.TbDemoGroup_C(loader("test_tbdemogroup_c"));
|
||||
TbTestGlobal = new test.TbTestGlobal(loader("test_tbtestglobal"));
|
||||
TbTestBeRef = new test.TbTestBeRef(loader("test_tbtestberef"));
|
||||
TbTestBeRef2 = new test.TbTestBeRef2(loader("test_tbtestberef2"));
|
||||
TbTestRef = new test.TbTestRef(loader("test_tbtestref"));
|
||||
TbTestSize = new test.TbTestSize(loader("test_tbtestsize"));
|
||||
TbTestSet = new test.TbTestSet(loader("test_tbtestset"));
|
||||
TbDetectCsvEncoding = new test.TbDetectCsvEncoding(loader("test_tbdetectcsvencoding"));
|
||||
TbItem2 = new test.TbItem2(loader("test_tbitem2"));
|
||||
TbTestIndex = new test.TbTestIndex(loader("test_tbtestindex"));
|
||||
TbTestMap = new test.TbTestMap(loader("test_tbtestmap"));
|
||||
TbExcelFromJson = new test.TbExcelFromJson(loader("test_tbexcelfromjson"));
|
||||
TbCompositeJsonTable1 = new test.TbCompositeJsonTable1(loader("test_tbcompositejsontable1"));
|
||||
TbCompositeJsonTable2 = new test.TbCompositeJsonTable2(loader("test_tbcompositejsontable2"));
|
||||
TbCompositeJsonTable3 = new test.TbCompositeJsonTable3(loader("test_tbcompositejsontable3"));
|
||||
TbExcelFromJsonMultiRow = new test.TbExcelFromJsonMultiRow(loader("test_tbexcelfromjsonmultirow"));
|
||||
TbTestScriptableObject = new test.TbTestScriptableObject(loader("test_tbtestscriptableobject"));
|
||||
TbPath = new test.TbPath(loader("test_tbpath"));
|
||||
TbTestMapper = new test.TbTestMapper(loader("test_tbtestmapper"));
|
||||
TbDefineFromExcel2 = new test.TbDefineFromExcel2(loader("test_tbdefinefromexcel2"));
|
||||
ResolveRef();
|
||||
}
|
||||
|
||||
private void ResolveRef()
|
||||
{
|
||||
TbBlackboard.ResolveRef(this);
|
||||
TbBehaviorTree.ResolveRef(this);
|
||||
TbGlobalConfig.ResolveRef(this);
|
||||
TbItem.ResolveRef(this);
|
||||
TbL10NDemo.ResolveRef(this);
|
||||
TbPatchDemo.ResolveRef(this);
|
||||
TbTestTag.ResolveRef(this);
|
||||
TbFullTypes.ResolveRef(this);
|
||||
TbSingleton.ResolveRef(this);
|
||||
TbNotIndexList.ResolveRef(this);
|
||||
TbMultiUnionIndexList.ResolveRef(this);
|
||||
TbMultiIndexList.ResolveRef(this);
|
||||
TbDataFromMisc.ResolveRef(this);
|
||||
TbMultiRowRecord.ResolveRef(this);
|
||||
TbTestMultiColumn.ResolveRef(this);
|
||||
TbMultiRowTitle.ResolveRef(this);
|
||||
TbTestNull.ResolveRef(this);
|
||||
TbDemoPrimitive.ResolveRef(this);
|
||||
TbTestString.ResolveRef(this);
|
||||
TbDemoGroup.ResolveRef(this);
|
||||
TbDemoGroupC.ResolveRef(this);
|
||||
TbTestGlobal.ResolveRef(this);
|
||||
TbTestBeRef.ResolveRef(this);
|
||||
TbTestBeRef2.ResolveRef(this);
|
||||
TbTestRef.ResolveRef(this);
|
||||
TbTestSize.ResolveRef(this);
|
||||
TbTestSet.ResolveRef(this);
|
||||
TbDetectCsvEncoding.ResolveRef(this);
|
||||
TbItem2.ResolveRef(this);
|
||||
TbTestIndex.ResolveRef(this);
|
||||
TbTestMap.ResolveRef(this);
|
||||
TbExcelFromJson.ResolveRef(this);
|
||||
TbCompositeJsonTable1.ResolveRef(this);
|
||||
TbCompositeJsonTable2.ResolveRef(this);
|
||||
TbCompositeJsonTable3.ResolveRef(this);
|
||||
TbExcelFromJsonMultiRow.ResolveRef(this);
|
||||
TbTestScriptableObject.ResolveRef(this);
|
||||
TbPath.ResolveRef(this);
|
||||
TbTestMapper.ResolveRef(this);
|
||||
TbDefineFromExcel2.ResolveRef(this);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9a6262edd0fce31469ba5eae1bff3cef
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,64 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public sealed partial class BehaviorTree : Luban.BeanBase
|
||||
{
|
||||
public BehaviorTree(JSONNode _buf)
|
||||
{
|
||||
{ if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; }
|
||||
{ if(!_buf["name"].IsString) { throw new SerializationException(); } Name = _buf["name"]; }
|
||||
{ if(!_buf["desc"].IsString) { throw new SerializationException(); } Desc = _buf["desc"]; }
|
||||
{ if(!_buf["blackboard_id"].IsString) { throw new SerializationException(); } BlackboardId = _buf["blackboard_id"]; }
|
||||
BlackboardId_Ref = null;
|
||||
{ if(!_buf["root"].IsObject) { throw new SerializationException(); } Root = ai.ComposeNode.DeserializeComposeNode(_buf["root"]); }
|
||||
}
|
||||
|
||||
public static BehaviorTree DeserializeBehaviorTree(JSONNode _buf)
|
||||
{
|
||||
return new ai.BehaviorTree(_buf);
|
||||
}
|
||||
|
||||
public readonly int Id;
|
||||
public readonly string Name;
|
||||
public readonly string Desc;
|
||||
public readonly string BlackboardId;
|
||||
public ai.Blackboard BlackboardId_Ref;
|
||||
public readonly ai.ComposeNode Root;
|
||||
|
||||
public const int __ID__ = 159552822;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
|
||||
|
||||
BlackboardId_Ref = tables.TbBlackboard.GetOrDefault(BlackboardId);
|
||||
Root?.ResolveRef(tables);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "name:" + Name + ","
|
||||
+ "desc:" + Desc + ","
|
||||
+ "blackboardId:" + BlackboardId + ","
|
||||
+ "root:" + Root + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 89fb4d1b77cec5745a913819f1530d3e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,51 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public sealed partial class BinaryOperator : ai.KeyQueryOperator
|
||||
{
|
||||
public BinaryOperator(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
{ if(!_buf["oper"].IsNumber) { throw new SerializationException(); } Oper = (ai.EOperator)_buf["oper"].AsInt; }
|
||||
{ if(!_buf["data"].IsObject) { throw new SerializationException(); } Data = ai.KeyData.DeserializeKeyData(_buf["data"]); }
|
||||
}
|
||||
|
||||
public static BinaryOperator DeserializeBinaryOperator(JSONNode _buf)
|
||||
{
|
||||
return new ai.BinaryOperator(_buf);
|
||||
}
|
||||
|
||||
public readonly ai.EOperator Oper;
|
||||
public readonly ai.KeyData Data;
|
||||
|
||||
public const int __ID__ = -979891605;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
|
||||
Data?.ResolveRef(tables);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "oper:" + Oper + ","
|
||||
+ "data:" + Data + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8264d14087ed44b4abf6d64df0f7b778
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,58 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public sealed partial class Blackboard : Luban.BeanBase
|
||||
{
|
||||
public Blackboard(JSONNode _buf)
|
||||
{
|
||||
{ if(!_buf["name"].IsString) { throw new SerializationException(); } Name = _buf["name"]; }
|
||||
{ if(!_buf["desc"].IsString) { throw new SerializationException(); } Desc = _buf["desc"]; }
|
||||
{ if(!_buf["parent_name"].IsString) { throw new SerializationException(); } ParentName = _buf["parent_name"]; }
|
||||
{ var __json0 = _buf["keys"]; if(!__json0.IsArray) { throw new SerializationException(); } Keys = new System.Collections.Generic.List<ai.BlackboardKey>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { ai.BlackboardKey __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = ai.BlackboardKey.DeserializeBlackboardKey(__e0); } Keys.Add(__v0); } }
|
||||
}
|
||||
|
||||
public static Blackboard DeserializeBlackboard(JSONNode _buf)
|
||||
{
|
||||
return new ai.Blackboard(_buf);
|
||||
}
|
||||
|
||||
public readonly string Name;
|
||||
public readonly string Desc;
|
||||
public readonly string ParentName;
|
||||
public readonly System.Collections.Generic.List<ai.BlackboardKey> Keys;
|
||||
|
||||
public const int __ID__ = 1576193005;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
|
||||
|
||||
foreach (var _e in Keys) { _e?.ResolveRef(tables); }
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "name:" + Name + ","
|
||||
+ "desc:" + Desc + ","
|
||||
+ "parentName:" + ParentName + ","
|
||||
+ "keys:" + Luban.StringUtil.CollectionToString(Keys) + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 54b95b01308eda545a56fa5e63a9cab3
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,62 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public sealed partial class BlackboardKey : Luban.BeanBase
|
||||
{
|
||||
public BlackboardKey(JSONNode _buf)
|
||||
{
|
||||
{ if(!_buf["name"].IsString) { throw new SerializationException(); } Name = _buf["name"]; }
|
||||
{ if(!_buf["desc"].IsString) { throw new SerializationException(); } Desc = _buf["desc"]; }
|
||||
{ if(!_buf["is_static"].IsBoolean) { throw new SerializationException(); } IsStatic = _buf["is_static"]; }
|
||||
{ if(!_buf["type"].IsNumber) { throw new SerializationException(); } Type = (ai.EKeyType)_buf["type"].AsInt; }
|
||||
{ if(!_buf["type_class_name"].IsString) { throw new SerializationException(); } TypeClassName = _buf["type_class_name"]; }
|
||||
}
|
||||
|
||||
public static BlackboardKey DeserializeBlackboardKey(JSONNode _buf)
|
||||
{
|
||||
return new ai.BlackboardKey(_buf);
|
||||
}
|
||||
|
||||
public readonly string Name;
|
||||
public readonly string Desc;
|
||||
public readonly bool IsStatic;
|
||||
public readonly ai.EKeyType Type;
|
||||
public readonly string TypeClassName;
|
||||
|
||||
public const int __ID__ = -511559886;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "name:" + Name + ","
|
||||
+ "desc:" + Desc + ","
|
||||
+ "isStatic:" + IsStatic + ","
|
||||
+ "type:" + Type + ","
|
||||
+ "typeClassName:" + TypeClassName + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0a925070e9b5cb640a296091ed7348b4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,47 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public sealed partial class BlackboardKeyData : ai.KeyData
|
||||
{
|
||||
public BlackboardKeyData(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
{ if(!_buf["value"].IsString) { throw new SerializationException(); } Value = _buf["value"]; }
|
||||
}
|
||||
|
||||
public static BlackboardKeyData DeserializeBlackboardKeyData(JSONNode _buf)
|
||||
{
|
||||
return new ai.BlackboardKeyData(_buf);
|
||||
}
|
||||
|
||||
public readonly string Value;
|
||||
|
||||
public const int __ID__ = 1517269500;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "value:" + Value + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 15913039393d5ff44bbcc53e72caf7e0
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,56 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public sealed partial class ChooseSkill : ai.Task
|
||||
{
|
||||
public ChooseSkill(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
{ if(!_buf["target_actor_key"].IsString) { throw new SerializationException(); } TargetActorKey = _buf["target_actor_key"]; }
|
||||
{ if(!_buf["result_skill_id_key"].IsString) { throw new SerializationException(); } ResultSkillIdKey = _buf["result_skill_id_key"]; }
|
||||
}
|
||||
|
||||
public static ChooseSkill DeserializeChooseSkill(JSONNode _buf)
|
||||
{
|
||||
return new ai.ChooseSkill(_buf);
|
||||
}
|
||||
|
||||
public readonly string TargetActorKey;
|
||||
public readonly string ResultSkillIdKey;
|
||||
|
||||
public const int __ID__ = -918812268;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "nodeName:" + NodeName + ","
|
||||
+ "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + ","
|
||||
+ "services:" + Luban.StringUtil.CollectionToString(Services) + ","
|
||||
+ "ignoreRestartSelf:" + IgnoreRestartSelf + ","
|
||||
+ "targetActorKey:" + TargetActorKey + ","
|
||||
+ "resultSkillIdKey:" + ResultSkillIdKey + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 36bace1ca3e2fcc4b846f99ac8fdf35e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,49 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public sealed partial class ChooseTarget : ai.Service
|
||||
{
|
||||
public ChooseTarget(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
{ if(!_buf["result_target_key"].IsString) { throw new SerializationException(); } ResultTargetKey = _buf["result_target_key"]; }
|
||||
}
|
||||
|
||||
public static ChooseTarget DeserializeChooseTarget(JSONNode _buf)
|
||||
{
|
||||
return new ai.ChooseTarget(_buf);
|
||||
}
|
||||
|
||||
public readonly string ResultTargetKey;
|
||||
|
||||
public const int __ID__ = 1601247918;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "nodeName:" + NodeName + ","
|
||||
+ "resultTargetKey:" + ResultTargetKey + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2b0e848e3d9c7cc4686fe11e4cda1846
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,51 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public abstract partial class ComposeNode : ai.FlowNode
|
||||
{
|
||||
public ComposeNode(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
}
|
||||
|
||||
public static ComposeNode DeserializeComposeNode(JSONNode _buf)
|
||||
{
|
||||
switch ((string)_buf["$type"])
|
||||
{
|
||||
case "Sequence": return new ai.Sequence(_buf);
|
||||
case "Selector": return new ai.Selector(_buf);
|
||||
case "SimpleParallel": return new ai.SimpleParallel(_buf);
|
||||
default: throw new SerializationException();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "nodeName:" + NodeName + ","
|
||||
+ "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + ","
|
||||
+ "services:" + Luban.StringUtil.CollectionToString(Services) + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 66277b9eb31e67947a2b2957126e84d5
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,52 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public sealed partial class DebugPrint : ai.Task
|
||||
{
|
||||
public DebugPrint(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
{ if(!_buf["text"].IsString) { throw new SerializationException(); } Text = _buf["text"]; }
|
||||
}
|
||||
|
||||
public static DebugPrint DeserializeDebugPrint(JSONNode _buf)
|
||||
{
|
||||
return new ai.DebugPrint(_buf);
|
||||
}
|
||||
|
||||
public readonly string Text;
|
||||
|
||||
public const int __ID__ = 1357409728;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "nodeName:" + NodeName + ","
|
||||
+ "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + ","
|
||||
+ "services:" + Luban.StringUtil.CollectionToString(Services) + ","
|
||||
+ "ignoreRestartSelf:" + IgnoreRestartSelf + ","
|
||||
+ "text:" + Text + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 80d0fc17b940e084893b89ad997e0ad4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,57 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public abstract partial class Decorator : ai.Node
|
||||
{
|
||||
public Decorator(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
{ if(!_buf["flow_abort_mode"].IsNumber) { throw new SerializationException(); } FlowAbortMode = (ai.EFlowAbortMode)_buf["flow_abort_mode"].AsInt; }
|
||||
}
|
||||
|
||||
public static Decorator DeserializeDecorator(JSONNode _buf)
|
||||
{
|
||||
switch ((string)_buf["$type"])
|
||||
{
|
||||
case "UeLoop": return new ai.UeLoop(_buf);
|
||||
case "UeCooldown": return new ai.UeCooldown(_buf);
|
||||
case "UeTimeLimit": return new ai.UeTimeLimit(_buf);
|
||||
case "UeBlackboard": return new ai.UeBlackboard(_buf);
|
||||
case "UeForceSuccess": return new ai.UeForceSuccess(_buf);
|
||||
case "IsAtLocation": return new ai.IsAtLocation(_buf);
|
||||
case "DistanceLessThan": return new ai.DistanceLessThan(_buf);
|
||||
default: throw new SerializationException();
|
||||
}
|
||||
}
|
||||
|
||||
public readonly ai.EFlowAbortMode FlowAbortMode;
|
||||
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "nodeName:" + NodeName + ","
|
||||
+ "flowAbortMode:" + FlowAbortMode + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 08f21ee8568b5c4469cc426f7711cfb2
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,62 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public sealed partial class DistanceLessThan : ai.Decorator
|
||||
{
|
||||
public DistanceLessThan(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
{ if(!_buf["actor1_key"].IsString) { throw new SerializationException(); } Actor1Key = _buf["actor1_key"]; }
|
||||
{ if(!_buf["actor2_key"].IsString) { throw new SerializationException(); } Actor2Key = _buf["actor2_key"]; }
|
||||
{ if(!_buf["distance"].IsNumber) { throw new SerializationException(); } Distance = _buf["distance"]; }
|
||||
{ if(!_buf["reverse_result"].IsBoolean) { throw new SerializationException(); } ReverseResult = _buf["reverse_result"]; }
|
||||
}
|
||||
|
||||
public static DistanceLessThan DeserializeDistanceLessThan(JSONNode _buf)
|
||||
{
|
||||
return new ai.DistanceLessThan(_buf);
|
||||
}
|
||||
|
||||
public readonly string Actor1Key;
|
||||
public readonly string Actor2Key;
|
||||
public readonly float Distance;
|
||||
public readonly bool ReverseResult;
|
||||
|
||||
public const int __ID__ = -1207170283;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "nodeName:" + NodeName + ","
|
||||
+ "flowAbortMode:" + FlowAbortMode + ","
|
||||
+ "actor1Key:" + Actor1Key + ","
|
||||
+ "actor2Key:" + Actor2Key + ","
|
||||
+ "distance:" + Distance + ","
|
||||
+ "reverseResult:" + ReverseResult + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0b5c48d88dfc0f34e90661377ba54fed
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,21 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public enum EExecutor
|
||||
{
|
||||
CLIENT = 0,
|
||||
SERVER = 1,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 97c88d22139330b4881f2263f2b8f50f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,21 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public enum EFinishMode
|
||||
{
|
||||
IMMEDIATE = 0,
|
||||
DELAYED = 1,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: dc4ce665371dfeb408c2636428a95a98
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,23 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public enum EFlowAbortMode
|
||||
{
|
||||
NONE = 0,
|
||||
LOWER_PRIORITY = 1,
|
||||
SELF = 2,
|
||||
BOTH = 3,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: deafc3bb9c146f04193d0fdb27e5af29
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,29 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public enum EKeyType
|
||||
{
|
||||
BOOL = 1,
|
||||
INT = 2,
|
||||
FLOAT = 3,
|
||||
STRING = 4,
|
||||
VECTOR = 5,
|
||||
ROTATOR = 6,
|
||||
NAME = 7,
|
||||
CLASS = 8,
|
||||
ENUM = 9,
|
||||
OBJECT = 10,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b00b222d5dc4a254cab877ad5ceae785
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,21 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public enum ENotifyObserverMode
|
||||
{
|
||||
ON_VALUE_CHANGE = 0,
|
||||
ON_RESULT_CHANGE = 1,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7195946c6527fc94fb84dd151ac234cf
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,27 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public enum EOperator
|
||||
{
|
||||
IS_EQUAL_TO = 0,
|
||||
IS_NOT_EQUAL_TO = 1,
|
||||
IS_LESS_THAN = 2,
|
||||
IS_LESS_THAN_OR_EQUAL_TO = 3,
|
||||
IS_GREAT_THAN = 4,
|
||||
IS_GREAT_THAN_OR_EQUAL_TO = 5,
|
||||
CONTAINS = 6,
|
||||
NOT_CONTAINS = 7,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 28450abfa2198b540b7a4d2fb62f4f25
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,45 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public sealed partial class ExecuteTimeStatistic : ai.Service
|
||||
{
|
||||
public ExecuteTimeStatistic(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
}
|
||||
|
||||
public static ExecuteTimeStatistic DeserializeExecuteTimeStatistic(JSONNode _buf)
|
||||
{
|
||||
return new ai.ExecuteTimeStatistic(_buf);
|
||||
}
|
||||
|
||||
|
||||
public const int __ID__ = 990693812;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "nodeName:" + NodeName + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f46c1da7be9b16840b3b6ee85e8de2d8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,47 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public sealed partial class FloatKeyData : ai.KeyData
|
||||
{
|
||||
public FloatKeyData(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
{ if(!_buf["value"].IsNumber) { throw new SerializationException(); } Value = _buf["value"]; }
|
||||
}
|
||||
|
||||
public static FloatKeyData DeserializeFloatKeyData(JSONNode _buf)
|
||||
{
|
||||
return new ai.FloatKeyData(_buf);
|
||||
}
|
||||
|
||||
public readonly float Value;
|
||||
|
||||
public const int __ID__ = -719747885;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "value:" + Value + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c43f9516eecd5f24b8367c7237202986
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,64 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public abstract partial class FlowNode : ai.Node
|
||||
{
|
||||
public FlowNode(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
{ var __json0 = _buf["decorators"]; if(!__json0.IsArray) { throw new SerializationException(); } Decorators = new System.Collections.Generic.List<ai.Decorator>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { ai.Decorator __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = ai.Decorator.DeserializeDecorator(__e0); } Decorators.Add(__v0); } }
|
||||
{ var __json0 = _buf["services"]; if(!__json0.IsArray) { throw new SerializationException(); } Services = new System.Collections.Generic.List<ai.Service>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { ai.Service __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = ai.Service.DeserializeService(__e0); } Services.Add(__v0); } }
|
||||
}
|
||||
|
||||
public static FlowNode DeserializeFlowNode(JSONNode _buf)
|
||||
{
|
||||
switch ((string)_buf["$type"])
|
||||
{
|
||||
case "Sequence": return new ai.Sequence(_buf);
|
||||
case "Selector": return new ai.Selector(_buf);
|
||||
case "SimpleParallel": return new ai.SimpleParallel(_buf);
|
||||
case "UeWait": return new ai.UeWait(_buf);
|
||||
case "UeWaitBlackboardTime": return new ai.UeWaitBlackboardTime(_buf);
|
||||
case "MoveToTarget": return new ai.MoveToTarget(_buf);
|
||||
case "ChooseSkill": return new ai.ChooseSkill(_buf);
|
||||
case "MoveToRandomLocation": return new ai.MoveToRandomLocation(_buf);
|
||||
case "MoveToLocation": return new ai.MoveToLocation(_buf);
|
||||
case "DebugPrint": return new ai.DebugPrint(_buf);
|
||||
default: throw new SerializationException();
|
||||
}
|
||||
}
|
||||
|
||||
public readonly System.Collections.Generic.List<ai.Decorator> Decorators;
|
||||
public readonly System.Collections.Generic.List<ai.Service> Services;
|
||||
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
foreach (var _e in Decorators) { _e?.ResolveRef(tables); }
|
||||
foreach (var _e in Services) { _e?.ResolveRef(tables); }
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "nodeName:" + NodeName + ","
|
||||
+ "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + ","
|
||||
+ "services:" + Luban.StringUtil.CollectionToString(Services) + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f17b98829ddfa8544a28d756c4765d7a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,49 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public sealed partial class GetOwnerPlayer : ai.Service
|
||||
{
|
||||
public GetOwnerPlayer(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
{ if(!_buf["player_actor_key"].IsString) { throw new SerializationException(); } PlayerActorKey = _buf["player_actor_key"]; }
|
||||
}
|
||||
|
||||
public static GetOwnerPlayer DeserializeGetOwnerPlayer(JSONNode _buf)
|
||||
{
|
||||
return new ai.GetOwnerPlayer(_buf);
|
||||
}
|
||||
|
||||
public readonly string PlayerActorKey;
|
||||
|
||||
public const int __ID__ = -999247644;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "nodeName:" + NodeName + ","
|
||||
+ "playerActorKey:" + PlayerActorKey + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cc4897b964383f44d87b06ca0585efaa
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,47 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public sealed partial class IntKeyData : ai.KeyData
|
||||
{
|
||||
public IntKeyData(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
{ if(!_buf["value"].IsNumber) { throw new SerializationException(); } Value = _buf["value"]; }
|
||||
}
|
||||
|
||||
public static IntKeyData DeserializeIntKeyData(JSONNode _buf)
|
||||
{
|
||||
return new ai.IntKeyData(_buf);
|
||||
}
|
||||
|
||||
public readonly int Value;
|
||||
|
||||
public const int __ID__ = -342751904;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "value:" + Value + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6b986f2e91e5a9e4fafd273e983b5e11
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,58 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public sealed partial class IsAtLocation : ai.Decorator
|
||||
{
|
||||
public IsAtLocation(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
{ if(!_buf["acceptable_radius"].IsNumber) { throw new SerializationException(); } AcceptableRadius = _buf["acceptable_radius"]; }
|
||||
{ if(!_buf["keyboard_key"].IsString) { throw new SerializationException(); } KeyboardKey = _buf["keyboard_key"]; }
|
||||
{ if(!_buf["inverse_condition"].IsBoolean) { throw new SerializationException(); } InverseCondition = _buf["inverse_condition"]; }
|
||||
}
|
||||
|
||||
public static IsAtLocation DeserializeIsAtLocation(JSONNode _buf)
|
||||
{
|
||||
return new ai.IsAtLocation(_buf);
|
||||
}
|
||||
|
||||
public readonly float AcceptableRadius;
|
||||
public readonly string KeyboardKey;
|
||||
public readonly bool InverseCondition;
|
||||
|
||||
public const int __ID__ = 1255972344;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "nodeName:" + NodeName + ","
|
||||
+ "flowAbortMode:" + FlowAbortMode + ","
|
||||
+ "acceptableRadius:" + AcceptableRadius + ","
|
||||
+ "keyboardKey:" + KeyboardKey + ","
|
||||
+ "inverseCondition:" + InverseCondition + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c715aa4e54e3e3e4c98229108321befd
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,43 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public sealed partial class IsNotSet : ai.KeyQueryOperator
|
||||
{
|
||||
public IsNotSet(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
}
|
||||
|
||||
public static IsNotSet DeserializeIsNotSet(JSONNode _buf)
|
||||
{
|
||||
return new ai.IsNotSet(_buf);
|
||||
}
|
||||
|
||||
|
||||
public const int __ID__ = 790736255;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: dee3de33a5bc9b74d844e8ddcd2a54ff
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,43 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public sealed partial class IsSet : ai.KeyQueryOperator
|
||||
{
|
||||
public IsSet(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
}
|
||||
|
||||
public static IsSet DeserializeIsSet(JSONNode _buf)
|
||||
{
|
||||
return new ai.IsSet(_buf);
|
||||
}
|
||||
|
||||
|
||||
public const int __ID__ = 1635350898;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 23177d877a811a040ac0052fa9532f85
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,49 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public sealed partial class KeepFaceTarget : ai.Service
|
||||
{
|
||||
public KeepFaceTarget(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
{ if(!_buf["target_actor_key"].IsString) { throw new SerializationException(); } TargetActorKey = _buf["target_actor_key"]; }
|
||||
}
|
||||
|
||||
public static KeepFaceTarget DeserializeKeepFaceTarget(JSONNode _buf)
|
||||
{
|
||||
return new ai.KeepFaceTarget(_buf);
|
||||
}
|
||||
|
||||
public readonly string TargetActorKey;
|
||||
|
||||
public const int __ID__ = 1195270745;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "nodeName:" + NodeName + ","
|
||||
+ "targetActorKey:" + TargetActorKey + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9918a7d0893be30408cd0a4f68b9e57c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,47 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public abstract partial class KeyData : Luban.BeanBase
|
||||
{
|
||||
public KeyData(JSONNode _buf)
|
||||
{
|
||||
}
|
||||
|
||||
public static KeyData DeserializeKeyData(JSONNode _buf)
|
||||
{
|
||||
switch ((string)_buf["$type"])
|
||||
{
|
||||
case "FloatKeyData": return new ai.FloatKeyData(_buf);
|
||||
case "IntKeyData": return new ai.IntKeyData(_buf);
|
||||
case "StringKeyData": return new ai.StringKeyData(_buf);
|
||||
case "BlackboardKeyData": return new ai.BlackboardKeyData(_buf);
|
||||
default: throw new SerializationException();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public virtual void ResolveRef(Tables tables)
|
||||
{
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e48c6368f13fb1e4ea62d69d0402ae05
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,46 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public abstract partial class KeyQueryOperator : Luban.BeanBase
|
||||
{
|
||||
public KeyQueryOperator(JSONNode _buf)
|
||||
{
|
||||
}
|
||||
|
||||
public static KeyQueryOperator DeserializeKeyQueryOperator(JSONNode _buf)
|
||||
{
|
||||
switch ((string)_buf["$type"])
|
||||
{
|
||||
case "IsSet": return new ai.IsSet(_buf);
|
||||
case "IsNotSet": return new ai.IsNotSet(_buf);
|
||||
case "BinaryOperator": return new ai.BinaryOperator(_buf);
|
||||
default: throw new SerializationException();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public virtual void ResolveRef(Tables tables)
|
||||
{
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f37ac02ecad6b004fb7f841b62d936dd
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,52 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public sealed partial class MoveToLocation : ai.Task
|
||||
{
|
||||
public MoveToLocation(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
{ if(!_buf["acceptable_radius"].IsNumber) { throw new SerializationException(); } AcceptableRadius = _buf["acceptable_radius"]; }
|
||||
}
|
||||
|
||||
public static MoveToLocation DeserializeMoveToLocation(JSONNode _buf)
|
||||
{
|
||||
return new ai.MoveToLocation(_buf);
|
||||
}
|
||||
|
||||
public readonly float AcceptableRadius;
|
||||
|
||||
public const int __ID__ = -969953113;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "nodeName:" + NodeName + ","
|
||||
+ "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + ","
|
||||
+ "services:" + Luban.StringUtil.CollectionToString(Services) + ","
|
||||
+ "ignoreRestartSelf:" + IgnoreRestartSelf + ","
|
||||
+ "acceptableRadius:" + AcceptableRadius + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ea8bdd7650bc9c747a0323245045274a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,56 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public sealed partial class MoveToRandomLocation : ai.Task
|
||||
{
|
||||
public MoveToRandomLocation(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
{ if(!_buf["origin_position_key"].IsString) { throw new SerializationException(); } OriginPositionKey = _buf["origin_position_key"]; }
|
||||
{ if(!_buf["radius"].IsNumber) { throw new SerializationException(); } Radius = _buf["radius"]; }
|
||||
}
|
||||
|
||||
public static MoveToRandomLocation DeserializeMoveToRandomLocation(JSONNode _buf)
|
||||
{
|
||||
return new ai.MoveToRandomLocation(_buf);
|
||||
}
|
||||
|
||||
public readonly string OriginPositionKey;
|
||||
public readonly float Radius;
|
||||
|
||||
public const int __ID__ = -2140042998;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "nodeName:" + NodeName + ","
|
||||
+ "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + ","
|
||||
+ "services:" + Luban.StringUtil.CollectionToString(Services) + ","
|
||||
+ "ignoreRestartSelf:" + IgnoreRestartSelf + ","
|
||||
+ "originPositionKey:" + OriginPositionKey + ","
|
||||
+ "radius:" + Radius + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9a9909a6116ce2043957dc85dc3c5305
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,56 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public sealed partial class MoveToTarget : ai.Task
|
||||
{
|
||||
public MoveToTarget(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
{ if(!_buf["target_actor_key"].IsString) { throw new SerializationException(); } TargetActorKey = _buf["target_actor_key"]; }
|
||||
{ if(!_buf["acceptable_radius"].IsNumber) { throw new SerializationException(); } AcceptableRadius = _buf["acceptable_radius"]; }
|
||||
}
|
||||
|
||||
public static MoveToTarget DeserializeMoveToTarget(JSONNode _buf)
|
||||
{
|
||||
return new ai.MoveToTarget(_buf);
|
||||
}
|
||||
|
||||
public readonly string TargetActorKey;
|
||||
public readonly float AcceptableRadius;
|
||||
|
||||
public const int __ID__ = 514987779;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "nodeName:" + NodeName + ","
|
||||
+ "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + ","
|
||||
+ "services:" + Luban.StringUtil.CollectionToString(Services) + ","
|
||||
+ "ignoreRestartSelf:" + IgnoreRestartSelf + ","
|
||||
+ "targetActorKey:" + TargetActorKey + ","
|
||||
+ "acceptableRadius:" + AcceptableRadius + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 81aa389dbf74dee4aa892edba1d15b12
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,74 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public abstract partial class Node : Luban.BeanBase
|
||||
{
|
||||
public Node(JSONNode _buf)
|
||||
{
|
||||
{ if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; }
|
||||
{ if(!_buf["node_name"].IsString) { throw new SerializationException(); } NodeName = _buf["node_name"]; }
|
||||
}
|
||||
|
||||
public static Node DeserializeNode(JSONNode _buf)
|
||||
{
|
||||
switch ((string)_buf["$type"])
|
||||
{
|
||||
case "UeSetDefaultFocus": return new ai.UeSetDefaultFocus(_buf);
|
||||
case "ExecuteTimeStatistic": return new ai.ExecuteTimeStatistic(_buf);
|
||||
case "ChooseTarget": return new ai.ChooseTarget(_buf);
|
||||
case "KeepFaceTarget": return new ai.KeepFaceTarget(_buf);
|
||||
case "GetOwnerPlayer": return new ai.GetOwnerPlayer(_buf);
|
||||
case "UpdateDailyBehaviorProps": return new ai.UpdateDailyBehaviorProps(_buf);
|
||||
case "UeLoop": return new ai.UeLoop(_buf);
|
||||
case "UeCooldown": return new ai.UeCooldown(_buf);
|
||||
case "UeTimeLimit": return new ai.UeTimeLimit(_buf);
|
||||
case "UeBlackboard": return new ai.UeBlackboard(_buf);
|
||||
case "UeForceSuccess": return new ai.UeForceSuccess(_buf);
|
||||
case "IsAtLocation": return new ai.IsAtLocation(_buf);
|
||||
case "DistanceLessThan": return new ai.DistanceLessThan(_buf);
|
||||
case "Sequence": return new ai.Sequence(_buf);
|
||||
case "Selector": return new ai.Selector(_buf);
|
||||
case "SimpleParallel": return new ai.SimpleParallel(_buf);
|
||||
case "UeWait": return new ai.UeWait(_buf);
|
||||
case "UeWaitBlackboardTime": return new ai.UeWaitBlackboardTime(_buf);
|
||||
case "MoveToTarget": return new ai.MoveToTarget(_buf);
|
||||
case "ChooseSkill": return new ai.ChooseSkill(_buf);
|
||||
case "MoveToRandomLocation": return new ai.MoveToRandomLocation(_buf);
|
||||
case "MoveToLocation": return new ai.MoveToLocation(_buf);
|
||||
case "DebugPrint": return new ai.DebugPrint(_buf);
|
||||
default: throw new SerializationException();
|
||||
}
|
||||
}
|
||||
|
||||
public readonly int Id;
|
||||
public readonly string NodeName;
|
||||
|
||||
|
||||
public virtual void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "nodeName:" + NodeName + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7e4925c95315aaa4abe4e376919baa04
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,51 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public sealed partial class Selector : ai.ComposeNode
|
||||
{
|
||||
public Selector(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
{ var __json0 = _buf["children"]; if(!__json0.IsArray) { throw new SerializationException(); } Children = new System.Collections.Generic.List<ai.FlowNode>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { ai.FlowNode __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = ai.FlowNode.DeserializeFlowNode(__e0); } Children.Add(__v0); } }
|
||||
}
|
||||
|
||||
public static Selector DeserializeSelector(JSONNode _buf)
|
||||
{
|
||||
return new ai.Selector(_buf);
|
||||
}
|
||||
|
||||
public readonly System.Collections.Generic.List<ai.FlowNode> Children;
|
||||
|
||||
public const int __ID__ = -1946981627;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
foreach (var _e in Children) { _e?.ResolveRef(tables); }
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "nodeName:" + NodeName + ","
|
||||
+ "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + ","
|
||||
+ "services:" + Luban.StringUtil.CollectionToString(Services) + ","
|
||||
+ "children:" + Luban.StringUtil.CollectionToString(Children) + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8d403bfbc1b0aad468af44a78240b9fa
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,51 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public sealed partial class Sequence : ai.ComposeNode
|
||||
{
|
||||
public Sequence(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
{ var __json0 = _buf["children"]; if(!__json0.IsArray) { throw new SerializationException(); } Children = new System.Collections.Generic.List<ai.FlowNode>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { ai.FlowNode __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = ai.FlowNode.DeserializeFlowNode(__e0); } Children.Add(__v0); } }
|
||||
}
|
||||
|
||||
public static Sequence DeserializeSequence(JSONNode _buf)
|
||||
{
|
||||
return new ai.Sequence(_buf);
|
||||
}
|
||||
|
||||
public readonly System.Collections.Generic.List<ai.FlowNode> Children;
|
||||
|
||||
public const int __ID__ = -1789006105;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
foreach (var _e in Children) { _e?.ResolveRef(tables); }
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "nodeName:" + NodeName + ","
|
||||
+ "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + ","
|
||||
+ "services:" + Luban.StringUtil.CollectionToString(Services) + ","
|
||||
+ "children:" + Luban.StringUtil.CollectionToString(Children) + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cf36793314333364ebb6afc4e48d98a6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,52 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public abstract partial class Service : ai.Node
|
||||
{
|
||||
public Service(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
}
|
||||
|
||||
public static Service DeserializeService(JSONNode _buf)
|
||||
{
|
||||
switch ((string)_buf["$type"])
|
||||
{
|
||||
case "UeSetDefaultFocus": return new ai.UeSetDefaultFocus(_buf);
|
||||
case "ExecuteTimeStatistic": return new ai.ExecuteTimeStatistic(_buf);
|
||||
case "ChooseTarget": return new ai.ChooseTarget(_buf);
|
||||
case "KeepFaceTarget": return new ai.KeepFaceTarget(_buf);
|
||||
case "GetOwnerPlayer": return new ai.GetOwnerPlayer(_buf);
|
||||
case "UpdateDailyBehaviorProps": return new ai.UpdateDailyBehaviorProps(_buf);
|
||||
default: throw new SerializationException();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "nodeName:" + NodeName + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fc45ec7bef5dfcc4abc30fed2239ebdc
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,59 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public sealed partial class SimpleParallel : ai.ComposeNode
|
||||
{
|
||||
public SimpleParallel(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
{ if(!_buf["finish_mode"].IsNumber) { throw new SerializationException(); } FinishMode = (ai.EFinishMode)_buf["finish_mode"].AsInt; }
|
||||
{ if(!_buf["main_task"].IsObject) { throw new SerializationException(); } MainTask = ai.Task.DeserializeTask(_buf["main_task"]); }
|
||||
{ if(!_buf["background_node"].IsObject) { throw new SerializationException(); } BackgroundNode = ai.FlowNode.DeserializeFlowNode(_buf["background_node"]); }
|
||||
}
|
||||
|
||||
public static SimpleParallel DeserializeSimpleParallel(JSONNode _buf)
|
||||
{
|
||||
return new ai.SimpleParallel(_buf);
|
||||
}
|
||||
|
||||
public readonly ai.EFinishMode FinishMode;
|
||||
public readonly ai.Task MainTask;
|
||||
public readonly ai.FlowNode BackgroundNode;
|
||||
|
||||
public const int __ID__ = -1952582529;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
|
||||
MainTask?.ResolveRef(tables);
|
||||
BackgroundNode?.ResolveRef(tables);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "nodeName:" + NodeName + ","
|
||||
+ "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + ","
|
||||
+ "services:" + Luban.StringUtil.CollectionToString(Services) + ","
|
||||
+ "finishMode:" + FinishMode + ","
|
||||
+ "mainTask:" + MainTask + ","
|
||||
+ "backgroundNode:" + BackgroundNode + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b6be716bf2f39ca46b0f6bd2c17430b8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,47 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public sealed partial class StringKeyData : ai.KeyData
|
||||
{
|
||||
public StringKeyData(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
{ if(!_buf["value"].IsString) { throw new SerializationException(); } Value = _buf["value"]; }
|
||||
}
|
||||
|
||||
public static StringKeyData DeserializeStringKeyData(JSONNode _buf)
|
||||
{
|
||||
return new ai.StringKeyData(_buf);
|
||||
}
|
||||
|
||||
public readonly string Value;
|
||||
|
||||
public const int __ID__ = -307888654;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "value:" + Value + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: af76e75f90f290447a63dca647a9aa76
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,59 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public abstract partial class Task : ai.FlowNode
|
||||
{
|
||||
public Task(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
{ if(!_buf["ignore_restart_self"].IsBoolean) { throw new SerializationException(); } IgnoreRestartSelf = _buf["ignore_restart_self"]; }
|
||||
}
|
||||
|
||||
public static Task DeserializeTask(JSONNode _buf)
|
||||
{
|
||||
switch ((string)_buf["$type"])
|
||||
{
|
||||
case "UeWait": return new ai.UeWait(_buf);
|
||||
case "UeWaitBlackboardTime": return new ai.UeWaitBlackboardTime(_buf);
|
||||
case "MoveToTarget": return new ai.MoveToTarget(_buf);
|
||||
case "ChooseSkill": return new ai.ChooseSkill(_buf);
|
||||
case "MoveToRandomLocation": return new ai.MoveToRandomLocation(_buf);
|
||||
case "MoveToLocation": return new ai.MoveToLocation(_buf);
|
||||
case "DebugPrint": return new ai.DebugPrint(_buf);
|
||||
default: throw new SerializationException();
|
||||
}
|
||||
}
|
||||
|
||||
public readonly bool IgnoreRestartSelf;
|
||||
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "nodeName:" + NodeName + ","
|
||||
+ "decorators:" + Luban.StringUtil.CollectionToString(Decorators) + ","
|
||||
+ "services:" + Luban.StringUtil.CollectionToString(Services) + ","
|
||||
+ "ignoreRestartSelf:" + IgnoreRestartSelf + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f68f9192e463cdf4f8ef877bb70e4d5e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,52 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public partial class TbBehaviorTree
|
||||
{
|
||||
private readonly System.Collections.Generic.Dictionary<int, ai.BehaviorTree> _dataMap;
|
||||
private readonly System.Collections.Generic.List<ai.BehaviorTree> _dataList;
|
||||
|
||||
public TbBehaviorTree(JSONNode _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, ai.BehaviorTree>();
|
||||
_dataList = new System.Collections.Generic.List<ai.BehaviorTree>();
|
||||
|
||||
foreach(JSONNode _ele in _buf.Children)
|
||||
{
|
||||
ai.BehaviorTree _v;
|
||||
{ if(!_ele.IsObject) { throw new SerializationException(); } _v = ai.BehaviorTree.DeserializeBehaviorTree(_ele); }
|
||||
_dataList.Add(_v);
|
||||
_dataMap.Add(_v.Id, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<int, ai.BehaviorTree> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<ai.BehaviorTree> DataList => _dataList;
|
||||
|
||||
public ai.BehaviorTree GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public ai.BehaviorTree Get(int key) => _dataMap[key];
|
||||
public ai.BehaviorTree this[int key] => _dataMap[key];
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
foreach(var _v in _dataList)
|
||||
{
|
||||
_v.ResolveRef(tables);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e1d8d62d05174a14ea6ac84a20633048
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,52 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public partial class TbBlackboard
|
||||
{
|
||||
private readonly System.Collections.Generic.Dictionary<string, ai.Blackboard> _dataMap;
|
||||
private readonly System.Collections.Generic.List<ai.Blackboard> _dataList;
|
||||
|
||||
public TbBlackboard(JSONNode _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<string, ai.Blackboard>();
|
||||
_dataList = new System.Collections.Generic.List<ai.Blackboard>();
|
||||
|
||||
foreach(JSONNode _ele in _buf.Children)
|
||||
{
|
||||
ai.Blackboard _v;
|
||||
{ if(!_ele.IsObject) { throw new SerializationException(); } _v = ai.Blackboard.DeserializeBlackboard(_ele); }
|
||||
_dataList.Add(_v);
|
||||
_dataMap.Add(_v.Name, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<string, ai.Blackboard> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<ai.Blackboard> DataList => _dataList;
|
||||
|
||||
public ai.Blackboard GetOrDefault(string key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public ai.Blackboard Get(string key) => _dataMap[key];
|
||||
public ai.Blackboard this[string key] => _dataMap[key];
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
foreach(var _v in _dataList)
|
||||
{
|
||||
_v.ResolveRef(tables);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 92e6356a4f0b3c94a9a12fd69d28a19f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,58 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public sealed partial class UeBlackboard : ai.Decorator
|
||||
{
|
||||
public UeBlackboard(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
{ if(!_buf["notify_observer"].IsNumber) { throw new SerializationException(); } NotifyObserver = (ai.ENotifyObserverMode)_buf["notify_observer"].AsInt; }
|
||||
{ if(!_buf["blackboard_key"].IsString) { throw new SerializationException(); } BlackboardKey = _buf["blackboard_key"]; }
|
||||
{ if(!_buf["key_query"].IsObject) { throw new SerializationException(); } KeyQuery = ai.KeyQueryOperator.DeserializeKeyQueryOperator(_buf["key_query"]); }
|
||||
}
|
||||
|
||||
public static UeBlackboard DeserializeUeBlackboard(JSONNode _buf)
|
||||
{
|
||||
return new ai.UeBlackboard(_buf);
|
||||
}
|
||||
|
||||
public readonly ai.ENotifyObserverMode NotifyObserver;
|
||||
public readonly string BlackboardKey;
|
||||
public readonly ai.KeyQueryOperator KeyQuery;
|
||||
|
||||
public const int __ID__ = -315297507;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
|
||||
|
||||
KeyQuery?.ResolveRef(tables);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "nodeName:" + NodeName + ","
|
||||
+ "flowAbortMode:" + FlowAbortMode + ","
|
||||
+ "notifyObserver:" + NotifyObserver + ","
|
||||
+ "blackboardKey:" + BlackboardKey + ","
|
||||
+ "keyQuery:" + KeyQuery + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fdad05b10ab1f5241ac9c579ea0ecf30
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,50 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public sealed partial class UeCooldown : ai.Decorator
|
||||
{
|
||||
public UeCooldown(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
{ if(!_buf["cooldown_time"].IsNumber) { throw new SerializationException(); } CooldownTime = _buf["cooldown_time"]; }
|
||||
}
|
||||
|
||||
public static UeCooldown DeserializeUeCooldown(JSONNode _buf)
|
||||
{
|
||||
return new ai.UeCooldown(_buf);
|
||||
}
|
||||
|
||||
public readonly float CooldownTime;
|
||||
|
||||
public const int __ID__ = -951439423;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "nodeName:" + NodeName + ","
|
||||
+ "flowAbortMode:" + FlowAbortMode + ","
|
||||
+ "cooldownTime:" + CooldownTime + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 655594dc88300b7479f481b36d9f297f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,46 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public sealed partial class UeForceSuccess : ai.Decorator
|
||||
{
|
||||
public UeForceSuccess(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
}
|
||||
|
||||
public static UeForceSuccess DeserializeUeForceSuccess(JSONNode _buf)
|
||||
{
|
||||
return new ai.UeForceSuccess(_buf);
|
||||
}
|
||||
|
||||
|
||||
public const int __ID__ = 195054574;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "nodeName:" + NodeName + ","
|
||||
+ "flowAbortMode:" + FlowAbortMode + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b255a08e1bdcc45459abef56b490c89e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,58 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public sealed partial class UeLoop : ai.Decorator
|
||||
{
|
||||
public UeLoop(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
{ if(!_buf["num_loops"].IsNumber) { throw new SerializationException(); } NumLoops = _buf["num_loops"]; }
|
||||
{ if(!_buf["infinite_loop"].IsBoolean) { throw new SerializationException(); } InfiniteLoop = _buf["infinite_loop"]; }
|
||||
{ if(!_buf["infinite_loop_timeout_time"].IsNumber) { throw new SerializationException(); } InfiniteLoopTimeoutTime = _buf["infinite_loop_timeout_time"]; }
|
||||
}
|
||||
|
||||
public static UeLoop DeserializeUeLoop(JSONNode _buf)
|
||||
{
|
||||
return new ai.UeLoop(_buf);
|
||||
}
|
||||
|
||||
public readonly int NumLoops;
|
||||
public readonly bool InfiniteLoop;
|
||||
public readonly float InfiniteLoopTimeoutTime;
|
||||
|
||||
public const int __ID__ = -513308166;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "nodeName:" + NodeName + ","
|
||||
+ "flowAbortMode:" + FlowAbortMode + ","
|
||||
+ "numLoops:" + NumLoops + ","
|
||||
+ "infiniteLoop:" + InfiniteLoop + ","
|
||||
+ "infiniteLoopTimeoutTime:" + InfiniteLoopTimeoutTime + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 77046358d3c25de4cb41c9ea6935a3e2
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,49 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public sealed partial class UeSetDefaultFocus : ai.Service
|
||||
{
|
||||
public UeSetDefaultFocus(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
{ if(!_buf["keyboard_key"].IsString) { throw new SerializationException(); } KeyboardKey = _buf["keyboard_key"]; }
|
||||
}
|
||||
|
||||
public static UeSetDefaultFocus DeserializeUeSetDefaultFocus(JSONNode _buf)
|
||||
{
|
||||
return new ai.UeSetDefaultFocus(_buf);
|
||||
}
|
||||
|
||||
public readonly string KeyboardKey;
|
||||
|
||||
public const int __ID__ = 1812449155;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "nodeName:" + NodeName + ","
|
||||
+ "keyboardKey:" + KeyboardKey + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 838afdda2a504594f9706ba3357e84f5
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,50 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg.ai
|
||||
{
|
||||
public sealed partial class UeTimeLimit : ai.Decorator
|
||||
{
|
||||
public UeTimeLimit(JSONNode _buf) : base(_buf)
|
||||
{
|
||||
{ if(!_buf["limit_time"].IsNumber) { throw new SerializationException(); } LimitTime = _buf["limit_time"]; }
|
||||
}
|
||||
|
||||
public static UeTimeLimit DeserializeUeTimeLimit(JSONNode _buf)
|
||||
{
|
||||
return new ai.UeTimeLimit(_buf);
|
||||
}
|
||||
|
||||
public readonly float LimitTime;
|
||||
|
||||
public const int __ID__ = 338469720;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public override void ResolveRef(Tables tables)
|
||||
{
|
||||
base.ResolveRef(tables);
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "nodeName:" + NodeName + ","
|
||||
+ "flowAbortMode:" + FlowAbortMode + ","
|
||||
+ "limitTime:" + LimitTime + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user