This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-11-05 03:26:09 +08:00
parent ec4d6a15d7
commit 0014eff5e0
4034 changed files with 623229 additions and 41 deletions

View File

@@ -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,
}
}

View File

@@ -0,0 +1,119 @@
//------------------------------------------------------------------------------
// <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;
namespace cfg
{
public sealed partial class DefineFromExcel2 : Luban.BeanBase
{
public DefineFromExcel2(ByteBuf _buf)
{
Id = _buf.ReadInt();
X1 = _buf.ReadBool();
X5 = _buf.ReadLong();
X6 = _buf.ReadFloat();
X8 = _buf.ReadInt();
X10 = _buf.ReadString();
X13 = (test.DemoEnum)_buf.ReadInt();
X132 = (test.DemoFlag)_buf.ReadInt();
X14 = test.DemoDynamic.DeserializeDemoDynamic(_buf);
X15 = test.Shape.DeserializeShape(_buf);
V2 = ExternalTypeUtil.NewVector2(vec2.Deserializevec2(_buf));
T1 = _buf.ReadLong();
{int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K1 = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); K1[__index0] = __e0;}}
{int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K2 = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); K2[__index0] = __e0;}}
{int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K8 = new System.Collections.Generic.Dictionary<int, int>(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); int _v0; _v0 = _buf.ReadInt(); K8.Add(_k0, _v0);}}
{int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K9 = new System.Collections.Generic.List<test.DemoE2>(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.DemoE2 _e0; _e0 = test.DemoE2.DeserializeDemoE2(_buf); K9.Add(_e0);}}
{int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K10 = new System.Collections.Generic.List<System.Numerics.Vector3>(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { System.Numerics.Vector3 _e0; _e0 = ExternalTypeUtil.NewVector3(vec3.Deserializevec3(_buf)); K10.Add(_e0);}}
{int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K11 = new System.Collections.Generic.List<System.Numerics.Vector4>(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { System.Numerics.Vector4 _e0; _e0 = ExternalTypeUtil.NewVector4(vec4.Deserializevec4(_buf)); K11.Add(_e0);}}
}
public static DefineFromExcel2 DeserializeDefineFromExcel2(ByteBuf _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 System.Numerics.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<System.Numerics.Vector3> K10;
public readonly System.Collections.Generic.List<System.Numerics.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) + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,147 @@
//------------------------------------------------------------------------------
// <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;
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_S TbDemoGroupS {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.TbTestMapper TbTestMapper {get; }
public test.TbDefineFromExcel2 TbDefineFromExcel2 {get; }
public Tables(System.Func<string, ByteBuf> 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"));
TbDemoGroupS = new test.TbDemoGroup_S(loader("test_tbdemogroup_s"));
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"));
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);
TbDemoGroupS.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);
TbTestMapper.ResolveRef(this);
TbDefineFromExcel2.ResolveRef(this);
}
}
}

View File

@@ -0,0 +1,63 @@
//------------------------------------------------------------------------------
// <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;
namespace cfg.ai
{
public sealed partial class BehaviorTree : Luban.BeanBase
{
public BehaviorTree(ByteBuf _buf)
{
Id = _buf.ReadInt();
Name = _buf.ReadString();
Desc = _buf.ReadString();
BlackboardId = _buf.ReadString();
BlackboardId_Ref = null;
Root = ai.ComposeNode.DeserializeComposeNode(_buf);
}
public static BehaviorTree DeserializeBehaviorTree(ByteBuf _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 + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.ai
{
public sealed partial class BinaryOperator : ai.KeyQueryOperator
{
public BinaryOperator(ByteBuf _buf) : base(_buf)
{
Oper = (ai.EOperator)_buf.ReadInt();
Data = ai.KeyData.DeserializeKeyData(_buf);
}
public static BinaryOperator DeserializeBinaryOperator(ByteBuf _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 + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.ai
{
public sealed partial class Blackboard : Luban.BeanBase
{
public Blackboard(ByteBuf _buf)
{
Name = _buf.ReadString();
Desc = _buf.ReadString();
ParentName = _buf.ReadString();
{int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Keys = new System.Collections.Generic.List<ai.BlackboardKey>(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { ai.BlackboardKey _e0; _e0 = ai.BlackboardKey.DeserializeBlackboardKey(_buf); Keys.Add(_e0);}}
}
public static Blackboard DeserializeBlackboard(ByteBuf _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) + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,61 @@
//------------------------------------------------------------------------------
// <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;
namespace cfg.ai
{
public sealed partial class BlackboardKey : Luban.BeanBase
{
public BlackboardKey(ByteBuf _buf)
{
Name = _buf.ReadString();
Desc = _buf.ReadString();
IsStatic = _buf.ReadBool();
Type = (ai.EKeyType)_buf.ReadInt();
TypeClassName = _buf.ReadString();
}
public static BlackboardKey DeserializeBlackboardKey(ByteBuf _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 + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.ai
{
public sealed partial class BlackboardKeyData : ai.KeyData
{
public BlackboardKeyData(ByteBuf _buf) : base(_buf)
{
Value = _buf.ReadString();
}
public static BlackboardKeyData DeserializeBlackboardKeyData(ByteBuf _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 + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,55 @@
//------------------------------------------------------------------------------
// <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;
namespace cfg.ai
{
public sealed partial class ChooseSkill : ai.Task
{
public ChooseSkill(ByteBuf _buf) : base(_buf)
{
TargetActorKey = _buf.ReadString();
ResultSkillIdKey = _buf.ReadString();
}
public static ChooseSkill DeserializeChooseSkill(ByteBuf _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 + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,48 @@
//------------------------------------------------------------------------------
// <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;
namespace cfg.ai
{
public sealed partial class ChooseTarget : ai.Service
{
public ChooseTarget(ByteBuf _buf) : base(_buf)
{
ResultTargetKey = _buf.ReadString();
}
public static ChooseTarget DeserializeChooseTarget(ByteBuf _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 + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.ai
{
public abstract partial class ComposeNode : ai.FlowNode
{
public ComposeNode(ByteBuf _buf) : base(_buf)
{
}
public static ComposeNode DeserializeComposeNode(ByteBuf _buf)
{
switch (_buf.ReadInt())
{
case ai.Sequence.__ID__: return new ai.Sequence(_buf);
case ai.Selector.__ID__: return new ai.Selector(_buf);
case ai.SimpleParallel.__ID__: 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) + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.ai
{
public sealed partial class DebugPrint : ai.Task
{
public DebugPrint(ByteBuf _buf) : base(_buf)
{
Text = _buf.ReadString();
}
public static DebugPrint DeserializeDebugPrint(ByteBuf _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 + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.ai
{
public abstract partial class Decorator : ai.Node
{
public Decorator(ByteBuf _buf) : base(_buf)
{
FlowAbortMode = (ai.EFlowAbortMode)_buf.ReadInt();
}
public static Decorator DeserializeDecorator(ByteBuf _buf)
{
switch (_buf.ReadInt())
{
case ai.UeLoop.__ID__: return new ai.UeLoop(_buf);
case ai.UeCooldown.__ID__: return new ai.UeCooldown(_buf);
case ai.UeTimeLimit.__ID__: return new ai.UeTimeLimit(_buf);
case ai.UeBlackboard.__ID__: return new ai.UeBlackboard(_buf);
case ai.UeForceSuccess.__ID__: return new ai.UeForceSuccess(_buf);
case ai.IsAtLocation.__ID__: return new ai.IsAtLocation(_buf);
case ai.DistanceLessThan.__ID__: 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 + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,61 @@
//------------------------------------------------------------------------------
// <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;
namespace cfg.ai
{
public sealed partial class DistanceLessThan : ai.Decorator
{
public DistanceLessThan(ByteBuf _buf) : base(_buf)
{
Actor1Key = _buf.ReadString();
Actor2Key = _buf.ReadString();
Distance = _buf.ReadFloat();
ReverseResult = _buf.ReadBool();
}
public static DistanceLessThan DeserializeDistanceLessThan(ByteBuf _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 + ","
+ "}";
}
}
}

View File

@@ -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,
}
}

View File

@@ -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,
}
}

View File

@@ -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,
}
}

View File

@@ -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,
}
}

View File

@@ -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,
}
}

View File

@@ -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,
}
}

View File

@@ -0,0 +1,44 @@
//------------------------------------------------------------------------------
// <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;
namespace cfg.ai
{
public sealed partial class ExecuteTimeStatistic : ai.Service
{
public ExecuteTimeStatistic(ByteBuf _buf) : base(_buf)
{
}
public static ExecuteTimeStatistic DeserializeExecuteTimeStatistic(ByteBuf _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 + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.ai
{
public sealed partial class FloatKeyData : ai.KeyData
{
public FloatKeyData(ByteBuf _buf) : base(_buf)
{
Value = _buf.ReadFloat();
}
public static FloatKeyData DeserializeFloatKeyData(ByteBuf _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 + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,63 @@
//------------------------------------------------------------------------------
// <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;
namespace cfg.ai
{
public abstract partial class FlowNode : ai.Node
{
public FlowNode(ByteBuf _buf) : base(_buf)
{
{int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Decorators = new System.Collections.Generic.List<ai.Decorator>(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { ai.Decorator _e0; _e0 = ai.Decorator.DeserializeDecorator(_buf); Decorators.Add(_e0);}}
{int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Services = new System.Collections.Generic.List<ai.Service>(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { ai.Service _e0; _e0 = ai.Service.DeserializeService(_buf); Services.Add(_e0);}}
}
public static FlowNode DeserializeFlowNode(ByteBuf _buf)
{
switch (_buf.ReadInt())
{
case ai.Sequence.__ID__: return new ai.Sequence(_buf);
case ai.Selector.__ID__: return new ai.Selector(_buf);
case ai.SimpleParallel.__ID__: return new ai.SimpleParallel(_buf);
case ai.UeWait.__ID__: return new ai.UeWait(_buf);
case ai.UeWaitBlackboardTime.__ID__: return new ai.UeWaitBlackboardTime(_buf);
case ai.MoveToTarget.__ID__: return new ai.MoveToTarget(_buf);
case ai.ChooseSkill.__ID__: return new ai.ChooseSkill(_buf);
case ai.MoveToRandomLocation.__ID__: return new ai.MoveToRandomLocation(_buf);
case ai.MoveToLocation.__ID__: return new ai.MoveToLocation(_buf);
case ai.DebugPrint.__ID__: 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) + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,48 @@
//------------------------------------------------------------------------------
// <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;
namespace cfg.ai
{
public sealed partial class GetOwnerPlayer : ai.Service
{
public GetOwnerPlayer(ByteBuf _buf) : base(_buf)
{
PlayerActorKey = _buf.ReadString();
}
public static GetOwnerPlayer DeserializeGetOwnerPlayer(ByteBuf _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 + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.ai
{
public sealed partial class IntKeyData : ai.KeyData
{
public IntKeyData(ByteBuf _buf) : base(_buf)
{
Value = _buf.ReadInt();
}
public static IntKeyData DeserializeIntKeyData(ByteBuf _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 + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.ai
{
public sealed partial class IsAtLocation : ai.Decorator
{
public IsAtLocation(ByteBuf _buf) : base(_buf)
{
AcceptableRadius = _buf.ReadFloat();
KeyboardKey = _buf.ReadString();
InverseCondition = _buf.ReadBool();
}
public static IsAtLocation DeserializeIsAtLocation(ByteBuf _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 + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,42 @@
//------------------------------------------------------------------------------
// <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;
namespace cfg.ai
{
public sealed partial class IsNotSet : ai.KeyQueryOperator
{
public IsNotSet(ByteBuf _buf) : base(_buf)
{
}
public static IsNotSet DeserializeIsNotSet(ByteBuf _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 "{ "
+ "}";
}
}
}

View File

@@ -0,0 +1,42 @@
//------------------------------------------------------------------------------
// <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;
namespace cfg.ai
{
public sealed partial class IsSet : ai.KeyQueryOperator
{
public IsSet(ByteBuf _buf) : base(_buf)
{
}
public static IsSet DeserializeIsSet(ByteBuf _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 "{ "
+ "}";
}
}
}

View File

@@ -0,0 +1,48 @@
//------------------------------------------------------------------------------
// <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;
namespace cfg.ai
{
public sealed partial class KeepFaceTarget : ai.Service
{
public KeepFaceTarget(ByteBuf _buf) : base(_buf)
{
TargetActorKey = _buf.ReadString();
}
public static KeepFaceTarget DeserializeKeepFaceTarget(ByteBuf _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 + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.ai
{
public abstract partial class KeyData : Luban.BeanBase
{
public KeyData(ByteBuf _buf)
{
}
public static KeyData DeserializeKeyData(ByteBuf _buf)
{
switch (_buf.ReadInt())
{
case ai.FloatKeyData.__ID__: return new ai.FloatKeyData(_buf);
case ai.IntKeyData.__ID__: return new ai.IntKeyData(_buf);
case ai.StringKeyData.__ID__: return new ai.StringKeyData(_buf);
case ai.BlackboardKeyData.__ID__: return new ai.BlackboardKeyData(_buf);
default: throw new SerializationException();
}
}
public virtual void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.ai
{
public abstract partial class KeyQueryOperator : Luban.BeanBase
{
public KeyQueryOperator(ByteBuf _buf)
{
}
public static KeyQueryOperator DeserializeKeyQueryOperator(ByteBuf _buf)
{
switch (_buf.ReadInt())
{
case ai.IsSet.__ID__: return new ai.IsSet(_buf);
case ai.IsNotSet.__ID__: return new ai.IsNotSet(_buf);
case ai.BinaryOperator.__ID__: return new ai.BinaryOperator(_buf);
default: throw new SerializationException();
}
}
public virtual void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.ai
{
public sealed partial class MoveToLocation : ai.Task
{
public MoveToLocation(ByteBuf _buf) : base(_buf)
{
AcceptableRadius = _buf.ReadFloat();
}
public static MoveToLocation DeserializeMoveToLocation(ByteBuf _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 + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,55 @@
//------------------------------------------------------------------------------
// <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;
namespace cfg.ai
{
public sealed partial class MoveToRandomLocation : ai.Task
{
public MoveToRandomLocation(ByteBuf _buf) : base(_buf)
{
OriginPositionKey = _buf.ReadString();
Radius = _buf.ReadFloat();
}
public static MoveToRandomLocation DeserializeMoveToRandomLocation(ByteBuf _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 + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,55 @@
//------------------------------------------------------------------------------
// <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;
namespace cfg.ai
{
public sealed partial class MoveToTarget : ai.Task
{
public MoveToTarget(ByteBuf _buf) : base(_buf)
{
TargetActorKey = _buf.ReadString();
AcceptableRadius = _buf.ReadFloat();
}
public static MoveToTarget DeserializeMoveToTarget(ByteBuf _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 + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,73 @@
//------------------------------------------------------------------------------
// <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;
namespace cfg.ai
{
public abstract partial class Node : Luban.BeanBase
{
public Node(ByteBuf _buf)
{
Id = _buf.ReadInt();
NodeName = _buf.ReadString();
}
public static Node DeserializeNode(ByteBuf _buf)
{
switch (_buf.ReadInt())
{
case ai.UeSetDefaultFocus.__ID__: return new ai.UeSetDefaultFocus(_buf);
case ai.ExecuteTimeStatistic.__ID__: return new ai.ExecuteTimeStatistic(_buf);
case ai.ChooseTarget.__ID__: return new ai.ChooseTarget(_buf);
case ai.KeepFaceTarget.__ID__: return new ai.KeepFaceTarget(_buf);
case ai.GetOwnerPlayer.__ID__: return new ai.GetOwnerPlayer(_buf);
case ai.UpdateDailyBehaviorProps.__ID__: return new ai.UpdateDailyBehaviorProps(_buf);
case ai.UeLoop.__ID__: return new ai.UeLoop(_buf);
case ai.UeCooldown.__ID__: return new ai.UeCooldown(_buf);
case ai.UeTimeLimit.__ID__: return new ai.UeTimeLimit(_buf);
case ai.UeBlackboard.__ID__: return new ai.UeBlackboard(_buf);
case ai.UeForceSuccess.__ID__: return new ai.UeForceSuccess(_buf);
case ai.IsAtLocation.__ID__: return new ai.IsAtLocation(_buf);
case ai.DistanceLessThan.__ID__: return new ai.DistanceLessThan(_buf);
case ai.Sequence.__ID__: return new ai.Sequence(_buf);
case ai.Selector.__ID__: return new ai.Selector(_buf);
case ai.SimpleParallel.__ID__: return new ai.SimpleParallel(_buf);
case ai.UeWait.__ID__: return new ai.UeWait(_buf);
case ai.UeWaitBlackboardTime.__ID__: return new ai.UeWaitBlackboardTime(_buf);
case ai.MoveToTarget.__ID__: return new ai.MoveToTarget(_buf);
case ai.ChooseSkill.__ID__: return new ai.ChooseSkill(_buf);
case ai.MoveToRandomLocation.__ID__: return new ai.MoveToRandomLocation(_buf);
case ai.MoveToLocation.__ID__: return new ai.MoveToLocation(_buf);
case ai.DebugPrint.__ID__: 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 + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.ai
{
public sealed partial class Selector : ai.ComposeNode
{
public Selector(ByteBuf _buf) : base(_buf)
{
{int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Children = new System.Collections.Generic.List<ai.FlowNode>(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { ai.FlowNode _e0; _e0 = ai.FlowNode.DeserializeFlowNode(_buf); Children.Add(_e0);}}
}
public static Selector DeserializeSelector(ByteBuf _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) + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.ai
{
public sealed partial class Sequence : ai.ComposeNode
{
public Sequence(ByteBuf _buf) : base(_buf)
{
{int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Children = new System.Collections.Generic.List<ai.FlowNode>(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { ai.FlowNode _e0; _e0 = ai.FlowNode.DeserializeFlowNode(_buf); Children.Add(_e0);}}
}
public static Sequence DeserializeSequence(ByteBuf _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) + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.ai
{
public abstract partial class Service : ai.Node
{
public Service(ByteBuf _buf) : base(_buf)
{
}
public static Service DeserializeService(ByteBuf _buf)
{
switch (_buf.ReadInt())
{
case ai.UeSetDefaultFocus.__ID__: return new ai.UeSetDefaultFocus(_buf);
case ai.ExecuteTimeStatistic.__ID__: return new ai.ExecuteTimeStatistic(_buf);
case ai.ChooseTarget.__ID__: return new ai.ChooseTarget(_buf);
case ai.KeepFaceTarget.__ID__: return new ai.KeepFaceTarget(_buf);
case ai.GetOwnerPlayer.__ID__: return new ai.GetOwnerPlayer(_buf);
case ai.UpdateDailyBehaviorProps.__ID__: 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 + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.ai
{
public sealed partial class SimpleParallel : ai.ComposeNode
{
public SimpleParallel(ByteBuf _buf) : base(_buf)
{
FinishMode = (ai.EFinishMode)_buf.ReadInt();
MainTask = ai.Task.DeserializeTask(_buf);
BackgroundNode = ai.FlowNode.DeserializeFlowNode(_buf);
}
public static SimpleParallel DeserializeSimpleParallel(ByteBuf _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 + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.ai
{
public sealed partial class StringKeyData : ai.KeyData
{
public StringKeyData(ByteBuf _buf) : base(_buf)
{
Value = _buf.ReadString();
}
public static StringKeyData DeserializeStringKeyData(ByteBuf _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 + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.ai
{
public abstract partial class Task : ai.FlowNode
{
public Task(ByteBuf _buf) : base(_buf)
{
IgnoreRestartSelf = _buf.ReadBool();
}
public static Task DeserializeTask(ByteBuf _buf)
{
switch (_buf.ReadInt())
{
case ai.UeWait.__ID__: return new ai.UeWait(_buf);
case ai.UeWaitBlackboardTime.__ID__: return new ai.UeWaitBlackboardTime(_buf);
case ai.MoveToTarget.__ID__: return new ai.MoveToTarget(_buf);
case ai.ChooseSkill.__ID__: return new ai.ChooseSkill(_buf);
case ai.MoveToRandomLocation.__ID__: return new ai.MoveToRandomLocation(_buf);
case ai.MoveToLocation.__ID__: return new ai.MoveToLocation(_buf);
case ai.DebugPrint.__ID__: 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 + ","
+ "}";
}
}
}

View File

@@ -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;
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(ByteBuf _buf)
{
_dataMap = new System.Collections.Generic.Dictionary<int, ai.BehaviorTree>();
_dataList = new System.Collections.Generic.List<ai.BehaviorTree>();
for(int n = _buf.ReadSize() ; n > 0 ; --n)
{
ai.BehaviorTree _v;
_v = ai.BehaviorTree.DeserializeBehaviorTree(_buf);
_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);
}
}
}
}

View File

@@ -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;
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(ByteBuf _buf)
{
_dataMap = new System.Collections.Generic.Dictionary<string, ai.Blackboard>();
_dataList = new System.Collections.Generic.List<ai.Blackboard>();
for(int n = _buf.ReadSize() ; n > 0 ; --n)
{
ai.Blackboard _v;
_v = ai.Blackboard.DeserializeBlackboard(_buf);
_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);
}
}
}
}

View File

@@ -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;
namespace cfg.ai
{
public sealed partial class UeBlackboard : ai.Decorator
{
public UeBlackboard(ByteBuf _buf) : base(_buf)
{
NotifyObserver = (ai.ENotifyObserverMode)_buf.ReadInt();
BlackboardKey = _buf.ReadString();
KeyQuery = ai.KeyQueryOperator.DeserializeKeyQueryOperator(_buf);
}
public static UeBlackboard DeserializeUeBlackboard(ByteBuf _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 + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.ai
{
public sealed partial class UeCooldown : ai.Decorator
{
public UeCooldown(ByteBuf _buf) : base(_buf)
{
CooldownTime = _buf.ReadFloat();
}
public static UeCooldown DeserializeUeCooldown(ByteBuf _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 + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.ai
{
public sealed partial class UeForceSuccess : ai.Decorator
{
public UeForceSuccess(ByteBuf _buf) : base(_buf)
{
}
public static UeForceSuccess DeserializeUeForceSuccess(ByteBuf _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 + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.ai
{
public sealed partial class UeLoop : ai.Decorator
{
public UeLoop(ByteBuf _buf) : base(_buf)
{
NumLoops = _buf.ReadInt();
InfiniteLoop = _buf.ReadBool();
InfiniteLoopTimeoutTime = _buf.ReadFloat();
}
public static UeLoop DeserializeUeLoop(ByteBuf _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 + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,48 @@
//------------------------------------------------------------------------------
// <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;
namespace cfg.ai
{
public sealed partial class UeSetDefaultFocus : ai.Service
{
public UeSetDefaultFocus(ByteBuf _buf) : base(_buf)
{
KeyboardKey = _buf.ReadString();
}
public static UeSetDefaultFocus DeserializeUeSetDefaultFocus(ByteBuf _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 + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.ai
{
public sealed partial class UeTimeLimit : ai.Decorator
{
public UeTimeLimit(ByteBuf _buf) : base(_buf)
{
LimitTime = _buf.ReadFloat();
}
public static UeTimeLimit DeserializeUeTimeLimit(ByteBuf _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 + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,55 @@
//------------------------------------------------------------------------------
// <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;
namespace cfg.ai
{
public sealed partial class UeWait : ai.Task
{
public UeWait(ByteBuf _buf) : base(_buf)
{
WaitTime = _buf.ReadFloat();
RandomDeviation = _buf.ReadFloat();
}
public static UeWait DeserializeUeWait(ByteBuf _buf)
{
return new ai.UeWait(_buf);
}
public readonly float WaitTime;
public readonly float RandomDeviation;
public const int __ID__ = -512994101;
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 + ","
+ "waitTime:" + WaitTime + ","
+ "randomDeviation:" + RandomDeviation + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.ai
{
public sealed partial class UeWaitBlackboardTime : ai.Task
{
public UeWaitBlackboardTime(ByteBuf _buf) : base(_buf)
{
BlackboardKey = _buf.ReadString();
}
public static UeWaitBlackboardTime DeserializeUeWaitBlackboardTime(ByteBuf _buf)
{
return new ai.UeWaitBlackboardTime(_buf);
}
public readonly string BlackboardKey;
public const int __ID__ = 1215378271;
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 + ","
+ "blackboardKey:" + BlackboardKey + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,80 @@
//------------------------------------------------------------------------------
// <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;
namespace cfg.ai
{
public sealed partial class UpdateDailyBehaviorProps : ai.Service
{
public UpdateDailyBehaviorProps(ByteBuf _buf) : base(_buf)
{
SatietyKey = _buf.ReadString();
EnergyKey = _buf.ReadString();
MoodKey = _buf.ReadString();
SatietyLowerThresholdKey = _buf.ReadString();
SatietyUpperThresholdKey = _buf.ReadString();
EnergyLowerThresholdKey = _buf.ReadString();
EnergyUpperThresholdKey = _buf.ReadString();
MoodLowerThresholdKey = _buf.ReadString();
MoodUpperThresholdKey = _buf.ReadString();
}
public static UpdateDailyBehaviorProps DeserializeUpdateDailyBehaviorProps(ByteBuf _buf)
{
return new ai.UpdateDailyBehaviorProps(_buf);
}
public readonly string SatietyKey;
public readonly string EnergyKey;
public readonly string MoodKey;
public readonly string SatietyLowerThresholdKey;
public readonly string SatietyUpperThresholdKey;
public readonly string EnergyLowerThresholdKey;
public readonly string EnergyUpperThresholdKey;
public readonly string MoodLowerThresholdKey;
public readonly string MoodUpperThresholdKey;
public const int __ID__ = -61887372;
public override int GetTypeId() => __ID__;
public override void ResolveRef(Tables tables)
{
base.ResolveRef(tables);
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "nodeName:" + NodeName + ","
+ "satietyKey:" + SatietyKey + ","
+ "energyKey:" + EnergyKey + ","
+ "moodKey:" + MoodKey + ","
+ "satietyLowerThresholdKey:" + SatietyLowerThresholdKey + ","
+ "satietyUpperThresholdKey:" + SatietyUpperThresholdKey + ","
+ "energyLowerThresholdKey:" + EnergyLowerThresholdKey + ","
+ "energyUpperThresholdKey:" + EnergyUpperThresholdKey + ","
+ "moodLowerThresholdKey:" + MoodLowerThresholdKey + ","
+ "moodUpperThresholdKey:" + MoodUpperThresholdKey + ","
+ "}";
}
}
}

View File

@@ -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.common
{
public enum EBoolOperator
{
AND = 0,
OR = 1,
}
}

View File

@@ -0,0 +1,72 @@
//------------------------------------------------------------------------------
// <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;
namespace cfg.common
{
public sealed partial class GlobalConfig : Luban.BeanBase
{
public GlobalConfig(ByteBuf _buf)
{
X1 = _buf.ReadInt();
X2 = _buf.ReadInt();
X3 = _buf.ReadInt();
X4 = _buf.ReadInt();
X5 = _buf.ReadInt();
X6 = _buf.ReadInt();
{int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);X7 = new System.Collections.Generic.List<int>(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); X7.Add(_e0);}}
}
public static GlobalConfig DeserializeGlobalConfig(ByteBuf _buf)
{
return new common.GlobalConfig(_buf);
}
/// <summary>
/// 背包容量
/// </summary>
public readonly int X1;
public readonly int X2;
public readonly int X3;
public readonly int X4;
public readonly int X5;
public readonly int X6;
public readonly System.Collections.Generic.List<int> X7;
public const int __ID__ = -848234488;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "x1:" + X1 + ","
+ "x2:" + X2 + ","
+ "x3:" + X3 + ","
+ "x4:" + X4 + ","
+ "x5:" + X5 + ","
+ "x6:" + X6 + ","
+ "x7:" + Luban.StringUtil.CollectionToString(X7) + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.common
{
public partial class TbGlobalConfig
{
private readonly common.GlobalConfig _data;
public TbGlobalConfig(ByteBuf _buf)
{
int n = _buf.ReadSize();
if (n != 1) throw new SerializationException("table mode=one, but size != 1");
_data = common.GlobalConfig.DeserializeGlobalConfig(_buf);
}
/// <summary>
/// 背包容量
/// </summary>
public int X1 => _data.X1;
public int X2 => _data.X2;
public int X3 => _data.X3;
public int X4 => _data.X4;
public int X5 => _data.X5;
public int X6 => _data.X6;
public System.Collections.Generic.List<int> X7 => _data.X7;
public void ResolveRef(Tables tables)
{
_data.ResolveRef(tables);
}
}
}

View File

@@ -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>
//------------------------------------------------------------------------------
namespace cfg.item
{
public enum EClothersStarQualityType
{
/// <summary>
/// 一星
/// </summary>
ONE = 1,
/// <summary>
/// 二星
/// </summary>
TWO = 2,
/// <summary>
/// 三星
/// </summary>
THREE = 3,
/// <summary>
/// 四星
/// </summary>
FOUR = 4,
/// <summary>
/// 五星
/// </summary>
FIVE = 5,
/// <summary>
/// 六星
/// </summary>
SIX = 6,
/// <summary>
/// 七星
/// </summary>
SEVEN = 7,
/// <summary>
/// 八星
/// </summary>
EIGHT = 8,
/// <summary>
/// 九星
/// </summary>
NINE = 9,
/// <summary>
/// 十星
/// </summary>
TEN = 10,
}
}

View File

@@ -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.item
{
public enum EClothersTag
{
/// <summary>
/// 防晒
/// </summary>
FANG_SHAI = 1,
/// <summary>
/// 舞者
/// </summary>
WU_ZHE = 2,
}
}

View File

@@ -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>
//------------------------------------------------------------------------------
namespace cfg.item
{
public enum EClothesHidePartType
{
/// <summary>
/// 胸部
/// </summary>
CHEST = 0,
/// <summary>
/// 手
/// </summary>
HEAD = 1,
/// <summary>
/// 脊柱上
/// </summary>
SPINE_UPPER = 2,
/// <summary>
/// 脊柱下
/// </summary>
SPINE_LOWER = 3,
/// <summary>
/// 臀部
/// </summary>
HIP = 4,
/// <summary>
/// 腿上
/// </summary>
LEG_UPPER = 5,
/// <summary>
/// 腿中
/// </summary>
LEG_MIDDLE = 6,
/// <summary>
/// 腿下
/// </summary>
LEG_LOWER = 7,
}
}

View File

@@ -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>
//------------------------------------------------------------------------------
namespace cfg.item
{
public enum EClothesPropertyType
{
/// <summary>
/// 简约
/// </summary>
JIAN_YUE = 1,
/// <summary>
/// 华丽
/// </summary>
HUA_LI = 2,
/// <summary>
/// 可爱
/// </summary>
KE_AI = 3,
/// <summary>
/// 成熟
/// </summary>
CHENG_SHU = 4,
/// <summary>
/// 活泼
/// </summary>
HUO_PO = 5,
/// <summary>
/// 优雅
/// </summary>
YOU_YA = 6,
/// <summary>
/// 清纯
/// </summary>
QING_CHUN = 7,
/// <summary>
/// 性感
/// </summary>
XING_GAN = 8,
/// <summary>
/// 清凉
/// </summary>
QING_LIANG = 9,
/// <summary>
/// 保暖
/// </summary>
BAO_NUAN = 10,
}
}

View File

@@ -0,0 +1,39 @@
//------------------------------------------------------------------------------
// <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.item
{
public enum ECurrencyType
{
/// <summary>
/// 钻石
/// </summary>
DIAMOND = 1,
/// <summary>
/// 金币
/// </summary>
GOLD = 2,
/// <summary>
/// 银币
/// </summary>
SILVER = 3,
/// <summary>
/// 经验
/// </summary>
EXP = 4,
/// <summary>
/// 能量点
/// </summary>
POWER_POINT = 5,
}
}

View File

@@ -0,0 +1,42 @@
//------------------------------------------------------------------------------
// <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.item
{
/// <summary>
/// 道具品质
/// </summary>
public enum EItemQuality
{
/// <summary>
/// 白
/// </summary>
WHITE = 0,
/// <summary>
/// 绿
/// </summary>
GREEN = 1,
/// <summary>
/// 蓝
/// </summary>
BLUE = 2,
/// <summary>
/// 紫
/// </summary>
PURPLE = 3,
/// <summary>
/// 金
/// </summary>
GOLDEN = 4,
}
}

View File

@@ -0,0 +1,63 @@
//------------------------------------------------------------------------------
// <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.item
{
public enum EMajorType
{
/// <summary>
/// 货币
/// </summary>
CURRENCY = 1,
/// <summary>
/// 服装
/// </summary>
CLOTH = 2,
/// <summary>
/// 任务
/// </summary>
QUEST = 3,
/// <summary>
/// 消耗品
/// </summary>
CONSUMABLES = 4,
/// <summary>
/// 宝箱
/// </summary>
TREASURE_BOX = 5,
/// <summary>
/// 成就和称谓
/// </summary>
ACHIEVEMENT_AND_TITLE = 6,
/// <summary>
/// 头像框
/// </summary>
HEAD_FRAME = 7,
/// <summary>
/// 语音
/// </summary>
VOICE = 8,
/// <summary>
/// 动作
/// </summary>
ACTION = 9,
/// <summary>
/// 扩容道具
/// </summary>
EXPANSION = 10,
/// <summary>
/// 制作材料
/// </summary>
MATERIAL = 11,
}
}

View File

@@ -0,0 +1,215 @@
//------------------------------------------------------------------------------
// <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.item
{
public enum EMinorType
{
/// <summary>
/// 钻石
/// </summary>
DIAMOND = 101,
/// <summary>
/// 金币
/// </summary>
GOLD = 102,
/// <summary>
/// 银币
/// </summary>
SILVER = 103,
/// <summary>
/// 经验
/// </summary>
EXP = 104,
/// <summary>
/// 能量点
/// </summary>
POWER_POINT = 105,
/// <summary>
/// 发型
/// </summary>
HAIR_STYLE = 210,
/// <summary>
/// 外套
/// </summary>
COAT = 220,
/// <summary>
/// 上衣
/// </summary>
UPPER_JACKET = 230,
/// <summary>
/// 裤子
/// </summary>
TROUSERS = 241,
/// <summary>
/// 裙子
/// </summary>
SKIRT = 242,
/// <summary>
/// 袜子
/// </summary>
SOCKS = 250,
/// <summary>
/// 鞋子
/// </summary>
SHOES = 260,
/// <summary>
/// 发饰
/// </summary>
HAIR_ACCESSORY = 271,
/// <summary>
/// 帽子
/// </summary>
HAT = 272,
/// <summary>
/// 耳饰
/// </summary>
EARRING = 273,
/// <summary>
/// 颈饰
/// </summary>
NECKLACE = 274,
/// <summary>
/// 腕饰
/// </summary>
BRACELET = 275,
/// <summary>
/// 发箍
/// </summary>
HAIR_CLASP = 276,
/// <summary>
/// 手套
/// </summary>
GLOVE = 277,
/// <summary>
/// 手持物
/// </summary>
HANDHELD_OBJECT = 278,
/// <summary>
/// 特殊
/// </summary>
SPECIAL = 279,
/// <summary>
/// 底妆
/// </summary>
BASE_COSMETIC = 281,
/// <summary>
/// 眉妆
/// </summary>
EYEBROW_COSMETIC = 282,
/// <summary>
/// 睫毛
/// </summary>
EYELASH = 283,
/// <summary>
/// 美瞳
/// </summary>
COSMETIC_CONTACT_LENSES = 284,
/// <summary>
/// 唇妆
/// </summary>
LIP_COSMETIC = 285,
/// <summary>
/// 肤色
/// </summary>
SKIN_COLOR = 286,
/// <summary>
/// 连衣裙
/// </summary>
ONE_PIECE_DRESS = 290,
/// <summary>
/// 换装场景
/// </summary>
SWITCH_CLOTHES_SCENE = 291,
/// <summary>
/// 任务道具
/// </summary>
QUEST = 301,
/// <summary>
/// 投掷物
/// </summary>
CAST = 401,
/// <summary>
/// 刀剑
/// </summary>
SWORD = 421,
/// <summary>
/// 弓箭
/// </summary>
BOW_ARROW = 422,
/// <summary>
/// 法杖
/// </summary>
WANDS = 423,
/// <summary>
/// 特殊工具
/// </summary>
SPECIAL_TOOL = 424,
/// <summary>
/// 食物
/// </summary>
FOOD = 403,
/// <summary>
/// 宝箱
/// </summary>
TREASURE_BOX = 501,
/// <summary>
/// 钥匙
/// </summary>
KEY = 502,
/// <summary>
/// 多选一宝箱
/// </summary>
MULTI_CHOOSE_TREASURE_BOX = 503,
/// <summary>
/// 成就相关
/// </summary>
ACHIEVEMENT = 601,
/// <summary>
/// 称谓相关
/// </summary>
TITLE = 602,
/// <summary>
/// 头像框
/// </summary>
AVATAR_FRAME = 701,
/// <summary>
/// 语音
/// </summary>
VOICE = 801,
/// <summary>
/// 特殊待机动作
/// </summary>
IDLE_POSE = 901,
/// <summary>
/// 拍照动作
/// </summary>
PHOTO_POSE = 902,
/// <summary>
/// 背包
/// </summary>
BAG = 1001,
/// <summary>
/// 好友数量
/// </summary>
FRIEND_CAPACITY = 1002,
/// <summary>
/// 制作材料
/// </summary>
CONSTRUCTION_MATERIAL = 1101,
/// <summary>
/// 设计图纸
/// </summary>
DESIGN_DRAWING = 1102,
}
}

View File

@@ -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.item
{
public enum EUseType
{
/// <summary>
/// 手动
/// </summary>
MANUAL = 0,
/// <summary>
/// 自动
/// </summary>
AUTO = 1,
}
}

View File

@@ -0,0 +1,87 @@
//------------------------------------------------------------------------------
// <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;
namespace cfg.item
{
/// <summary>
/// 道具
/// </summary>
public sealed partial class Item : Luban.BeanBase
{
public Item(ByteBuf _buf)
{
Id = _buf.ReadInt();
Name = _buf.ReadString();
MajorType = (item.EMajorType)_buf.ReadInt();
MinorType = (item.EMinorType)_buf.ReadInt();
MaxPileNum = _buf.ReadInt();
Quality = (item.EItemQuality)_buf.ReadInt();
IconBackgroud = _buf.ReadString();
IconMask = _buf.ReadString();
Desc = _buf.ReadString();
ShowOrder = _buf.ReadInt();
}
public static Item DeserializeItem(ByteBuf _buf)
{
return new item.Item(_buf);
}
/// <summary>
/// 道具id
/// </summary>
public readonly int Id;
public readonly string Name;
public readonly item.EMajorType MajorType;
public readonly item.EMinorType MinorType;
public readonly int MaxPileNum;
public readonly item.EItemQuality Quality;
public readonly string IconBackgroud;
public readonly string IconMask;
public readonly string Desc;
public readonly int ShowOrder;
public const int __ID__ = 2107285806;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "name:" + Name + ","
+ "majorType:" + MajorType + ","
+ "minorType:" + MinorType + ","
+ "maxPileNum:" + MaxPileNum + ","
+ "quality:" + Quality + ","
+ "iconBackgroud:" + IconBackgroud + ","
+ "iconMask:" + IconMask + ","
+ "desc:" + Desc + ","
+ "showOrder:" + ShowOrder + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,54 @@
//------------------------------------------------------------------------------
// <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;
namespace cfg.item
{
/// <summary>
/// 道具表
/// </summary>
public partial class TbItem
{
private readonly System.Collections.Generic.Dictionary<int, item.Item> _dataMap;
private readonly System.Collections.Generic.List<item.Item> _dataList;
public TbItem(ByteBuf _buf)
{
_dataMap = new System.Collections.Generic.Dictionary<int, item.Item>();
_dataList = new System.Collections.Generic.List<item.Item>();
for(int n = _buf.ReadSize() ; n > 0 ; --n)
{
item.Item _v;
_v = item.Item.DeserializeItem(_buf);
_dataList.Add(_v);
_dataMap.Add(_v.Id, _v);
}
}
public System.Collections.Generic.Dictionary<int, item.Item> DataMap => _dataMap;
public System.Collections.Generic.List<item.Item> DataList => _dataList;
public item.Item GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null;
public item.Item Get(int key) => _dataMap[key];
public item.Item this[int key] => _dataMap[key];
public void ResolveRef(Tables tables)
{
foreach(var _v in _dataList)
{
_v.ResolveRef(tables);
}
}
}
}

View File

@@ -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;
namespace cfg.l10n
{
public sealed partial class L10NDemo : Luban.BeanBase
{
public L10NDemo(ByteBuf _buf)
{
Id = _buf.ReadInt();
Text = _buf.ReadString();
}
public static L10NDemo DeserializeL10NDemo(ByteBuf _buf)
{
return new l10n.L10NDemo(_buf);
}
public readonly int Id;
public readonly string Text;
public const int __ID__ = -331195887;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "text:" + Text + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.l10n
{
public sealed partial class PatchDemo : Luban.BeanBase
{
public PatchDemo(ByteBuf _buf)
{
Id = _buf.ReadInt();
Value = _buf.ReadInt();
}
public static PatchDemo DeserializePatchDemo(ByteBuf _buf)
{
return new l10n.PatchDemo(_buf);
}
public readonly int Id;
public readonly int Value;
public const int __ID__ = -1707294656;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "value:" + Value + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.l10n
{
public partial class TbL10NDemo
{
private readonly System.Collections.Generic.Dictionary<int, l10n.L10NDemo> _dataMap;
private readonly System.Collections.Generic.List<l10n.L10NDemo> _dataList;
public TbL10NDemo(ByteBuf _buf)
{
_dataMap = new System.Collections.Generic.Dictionary<int, l10n.L10NDemo>();
_dataList = new System.Collections.Generic.List<l10n.L10NDemo>();
for(int n = _buf.ReadSize() ; n > 0 ; --n)
{
l10n.L10NDemo _v;
_v = l10n.L10NDemo.DeserializeL10NDemo(_buf);
_dataList.Add(_v);
_dataMap.Add(_v.Id, _v);
}
}
public System.Collections.Generic.Dictionary<int, l10n.L10NDemo> DataMap => _dataMap;
public System.Collections.Generic.List<l10n.L10NDemo> DataList => _dataList;
public l10n.L10NDemo GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null;
public l10n.L10NDemo Get(int key) => _dataMap[key];
public l10n.L10NDemo this[int key] => _dataMap[key];
public void ResolveRef(Tables tables)
{
foreach(var _v in _dataList)
{
_v.ResolveRef(tables);
}
}
}
}

View File

@@ -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;
namespace cfg.l10n
{
public partial class TbPatchDemo
{
private readonly System.Collections.Generic.Dictionary<int, l10n.PatchDemo> _dataMap;
private readonly System.Collections.Generic.List<l10n.PatchDemo> _dataList;
public TbPatchDemo(ByteBuf _buf)
{
_dataMap = new System.Collections.Generic.Dictionary<int, l10n.PatchDemo>();
_dataList = new System.Collections.Generic.List<l10n.PatchDemo>();
for(int n = _buf.ReadSize() ; n > 0 ; --n)
{
l10n.PatchDemo _v;
_v = l10n.PatchDemo.DeserializePatchDemo(_buf);
_dataList.Add(_v);
_dataMap.Add(_v.Id, _v);
}
}
public System.Collections.Generic.Dictionary<int, l10n.PatchDemo> DataMap => _dataMap;
public System.Collections.Generic.List<l10n.PatchDemo> DataList => _dataList;
public l10n.PatchDemo GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null;
public l10n.PatchDemo Get(int key) => _dataMap[key];
public l10n.PatchDemo this[int key] => _dataMap[key];
public void ResolveRef(Tables tables)
{
foreach(var _v in _dataList)
{
_v.ResolveRef(tables);
}
}
}
}

View File

@@ -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;
namespace cfg.tag
{
public partial class TbTestTag
{
private readonly System.Collections.Generic.Dictionary<int, tag.TestTag> _dataMap;
private readonly System.Collections.Generic.List<tag.TestTag> _dataList;
public TbTestTag(ByteBuf _buf)
{
_dataMap = new System.Collections.Generic.Dictionary<int, tag.TestTag>();
_dataList = new System.Collections.Generic.List<tag.TestTag>();
for(int n = _buf.ReadSize() ; n > 0 ; --n)
{
tag.TestTag _v;
_v = tag.TestTag.DeserializeTestTag(_buf);
_dataList.Add(_v);
_dataMap.Add(_v.Id, _v);
}
}
public System.Collections.Generic.Dictionary<int, tag.TestTag> DataMap => _dataMap;
public System.Collections.Generic.List<tag.TestTag> DataList => _dataList;
public tag.TestTag GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null;
public tag.TestTag Get(int key) => _dataMap[key];
public tag.TestTag this[int key] => _dataMap[key];
public void ResolveRef(Tables tables)
{
foreach(var _v in _dataList)
{
_v.ResolveRef(tables);
}
}
}
}

View File

@@ -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;
namespace cfg.tag
{
public sealed partial class TestTag : Luban.BeanBase
{
public TestTag(ByteBuf _buf)
{
Id = _buf.ReadInt();
Value = _buf.ReadString();
}
public static TestTag DeserializeTestTag(ByteBuf _buf)
{
return new tag.TestTag(_buf);
}
public readonly int Id;
public readonly string Value;
public const int __ID__ = 1742933812;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "value:" + Value + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,25 @@
//------------------------------------------------------------------------------
// <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.test
{
[System.Flags]
public enum AccessFlag
{
WRITE = 1,
READ = 2,
TRUNCATE = 4,
NEW = 8,
READ_WRITE = WRITE|READ,
}
}

View File

@@ -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;
namespace cfg.test
{
/// <summary>
/// 圆
/// </summary>
public sealed partial class Circle : Shape
{
public Circle(ByteBuf _buf) : base(_buf)
{
Radius = _buf.ReadFloat();
}
public static Circle DeserializeCircle(ByteBuf _buf)
{
return new test.Circle(_buf);
}
/// <summary>
/// 半径
/// </summary>
public readonly float Radius;
public const int __ID__ = 2131829196;
public override int GetTypeId() => __ID__;
public override void ResolveRef(Tables tables)
{
base.ResolveRef(tables);
}
public override string ToString()
{
return "{ "
+ "radius:" + Radius + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,53 @@
//------------------------------------------------------------------------------
// <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;
namespace cfg.test
{
public sealed partial class CompactString : Luban.BeanBase
{
public CompactString(ByteBuf _buf)
{
Id = _buf.ReadInt();
S2 = _buf.ReadString();
S3 = _buf.ReadString();
}
public static CompactString DeserializeCompactString(ByteBuf _buf)
{
return new test.CompactString(_buf);
}
public readonly int Id;
public readonly string S2;
public readonly string S3;
public const int __ID__ = 1968089240;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "s2:" + S2 + ","
+ "s3:" + S3 + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.test
{
public sealed partial class CompositeJsonTable1 : Luban.BeanBase
{
public CompositeJsonTable1(ByteBuf _buf)
{
Id = _buf.ReadInt();
X = _buf.ReadString();
}
public static CompositeJsonTable1 DeserializeCompositeJsonTable1(ByteBuf _buf)
{
return new test.CompositeJsonTable1(_buf);
}
public readonly int Id;
public readonly string X;
public const int __ID__ = 1566207894;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "x:" + X + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.test
{
public sealed partial class CompositeJsonTable2 : Luban.BeanBase
{
public CompositeJsonTable2(ByteBuf _buf)
{
Id = _buf.ReadInt();
Y = _buf.ReadInt();
}
public static CompositeJsonTable2 DeserializeCompositeJsonTable2(ByteBuf _buf)
{
return new test.CompositeJsonTable2(_buf);
}
public readonly int Id;
public readonly int Y;
public const int __ID__ = 1566207895;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "y:" + Y + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.test
{
public sealed partial class CompositeJsonTable3 : Luban.BeanBase
{
public CompositeJsonTable3(ByteBuf _buf)
{
A = _buf.ReadInt();
B = _buf.ReadInt();
}
public static CompositeJsonTable3 DeserializeCompositeJsonTable3(ByteBuf _buf)
{
return new test.CompositeJsonTable3(_buf);
}
public readonly int A;
public readonly int B;
public const int __ID__ = 1566207896;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "a:" + A + ","
+ "b:" + B + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.test
{
public sealed partial class DateTimeRange : Luban.BeanBase
{
public DateTimeRange(ByteBuf _buf)
{
StartTime = _buf.ReadLong();
EndTime = _buf.ReadLong();
}
public static DateTimeRange DeserializeDateTimeRange(ByteBuf _buf)
{
return new test.DateTimeRange(_buf);
}
public readonly long StartTime;
public readonly long EndTime;
public const int __ID__ = 495315430;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "startTime:" + StartTime + ","
+ "endTime:" + EndTime + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.test
{
public sealed partial class Decorator : test.ItemBase
{
public Decorator(ByteBuf _buf) : base(_buf)
{
Duration = _buf.ReadInt();
}
public static Decorator DeserializeDecorator(ByteBuf _buf)
{
return new test.Decorator(_buf);
}
public readonly int Duration;
public const int __ID__ = -625155649;
public override int GetTypeId() => __ID__;
public override void ResolveRef(Tables tables)
{
base.ResolveRef(tables);
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "name:" + Name + ","
+ "desc:" + Desc + ","
+ "duration:" + Duration + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.test
{
public sealed partial class DemoD2 : test.DemoDynamic
{
public DemoD2(ByteBuf _buf) : base(_buf)
{
X2 = _buf.ReadInt();
}
public static DemoD2 DeserializeDemoD2(ByteBuf _buf)
{
return new test.DemoD2(_buf);
}
public readonly int X2;
public const int __ID__ = -2138341747;
public override int GetTypeId() => __ID__;
public override void ResolveRef(Tables tables)
{
base.ResolveRef(tables);
}
public override string ToString()
{
return "{ "
+ "x1:" + X1 + ","
+ "x2:" + X2 + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.test
{
public abstract partial class DemoD3 : test.DemoDynamic
{
public DemoD3(ByteBuf _buf) : base(_buf)
{
X3 = _buf.ReadInt();
}
public static DemoD3 DeserializeDemoD3(ByteBuf _buf)
{
switch (_buf.ReadInt())
{
case test.DemoE1.__ID__: return new test.DemoE1(_buf);
case test.login.RoleInfo.__ID__: return new test.login.RoleInfo(_buf);
default: throw new SerializationException();
}
}
public readonly int X3;
public override void ResolveRef(Tables tables)
{
base.ResolveRef(tables);
}
public override string ToString()
{
return "{ "
+ "x1:" + X1 + ","
+ "x3:" + X3 + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.test
{
public sealed partial class DemoD5 : test.DemoDynamic
{
public DemoD5(ByteBuf _buf) : base(_buf)
{
Time = test.DateTimeRange.DeserializeDateTimeRange(_buf);
}
public static DemoD5 DeserializeDemoD5(ByteBuf _buf)
{
return new test.DemoD5(_buf);
}
public readonly test.DateTimeRange Time;
public const int __ID__ = -2138341744;
public override int GetTypeId() => __ID__;
public override void ResolveRef(Tables tables)
{
base.ResolveRef(tables);
Time?.ResolveRef(tables);
}
public override string ToString()
{
return "{ "
+ "x1:" + X1 + ","
+ "time:" + Time + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.test
{
public abstract partial class DemoDynamic : Luban.BeanBase
{
public DemoDynamic(ByteBuf _buf)
{
X1 = _buf.ReadInt();
}
public static DemoDynamic DeserializeDemoDynamic(ByteBuf _buf)
{
switch (_buf.ReadInt())
{
case test.DemoD2.__ID__: return new test.DemoD2(_buf);
case test.DemoE1.__ID__: return new test.DemoE1(_buf);
case test.login.RoleInfo.__ID__: return new test.login.RoleInfo(_buf);
case test.DemoD5.__ID__: return new test.DemoD5(_buf);
default: throw new SerializationException();
}
}
public readonly int X1;
public virtual void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "x1:" + X1 + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,48 @@
//------------------------------------------------------------------------------
// <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;
namespace cfg.test
{
public sealed partial class DemoE1 : test.DemoD3
{
public DemoE1(ByteBuf _buf) : base(_buf)
{
X4 = _buf.ReadInt();
}
public static DemoE1 DeserializeDemoE1(ByteBuf _buf)
{
return new test.DemoE1(_buf);
}
public readonly int X4;
public const int __ID__ = -2138341717;
public override int GetTypeId() => __ID__;
public override void ResolveRef(Tables tables)
{
base.ResolveRef(tables);
}
public override string ToString()
{
return "{ "
+ "x1:" + X1 + ","
+ "x3:" + X3 + ","
+ "x4:" + X4 + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.test
{
public partial struct DemoE2
{
public DemoE2(ByteBuf _buf)
{
if(_buf.ReadBool()){ Y1 = _buf.ReadInt(); } else { Y1 = null; }
Y2 = _buf.ReadBool();
}
public static DemoE2 DeserializeDemoE2(ByteBuf _buf)
{
return new test.DemoE2(_buf);
}
public readonly int? Y1;
public readonly bool Y2;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "y1:" + Y1 + ","
+ "y2:" + Y2 + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,37 @@
//------------------------------------------------------------------------------
// <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.test
{
public enum DemoEnum
{
NONE = 0,
/// <summary>
/// aa
/// </summary>
A = 1,
/// <summary>
/// bb
/// </summary>
B = 2,
/// <summary>
/// cc
/// </summary>
C = 4,
/// <summary>
/// dd
/// </summary>
D = 5,
Any = 6,
}
}

View File

@@ -0,0 +1,24 @@
//------------------------------------------------------------------------------
// <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.test
{
[System.Flags]
public enum DemoFlag
{
A = 1,
B = 2,
C = 4,
D = 8,
}
}

View File

@@ -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;
namespace cfg.test
{
public sealed partial class DemoGroup : Luban.BeanBase
{
public DemoGroup(ByteBuf _buf)
{
Id = _buf.ReadInt();
X2 = _buf.ReadInt();
X2_Ref = null;
X4 = _buf.ReadInt();
X5 = test.InnerGroup.DeserializeInnerGroup(_buf);
}
public static DemoGroup DeserializeDemoGroup(ByteBuf _buf)
{
return new test.DemoGroup(_buf);
}
public readonly int Id;
public readonly int X2;
public test.DemoGroup X2_Ref;
public readonly int X4;
public readonly test.InnerGroup X5;
public const int __ID__ = -379263008;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
X2_Ref = tables.TbDemoGroupS.GetOrDefault(X2);
X5?.ResolveRef(tables);
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "x2:" + X2 + ","
+ "x4:" + X4 + ","
+ "x5:" + X5 + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,93 @@
//------------------------------------------------------------------------------
// <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;
namespace cfg.test
{
public sealed partial class DemoPrimitiveTypesTable : Luban.BeanBase
{
public DemoPrimitiveTypesTable(ByteBuf _buf)
{
X1 = _buf.ReadBool();
X2 = _buf.ReadByte();
X3 = _buf.ReadShort();
X4 = _buf.ReadInt();
X5 = _buf.ReadLong();
X6 = _buf.ReadFloat();
X7 = _buf.ReadDouble();
S1 = _buf.ReadString();
S2 = _buf.ReadString();
V2 = ExternalTypeUtil.NewVector2(vec2.Deserializevec2(_buf));
V3 = ExternalTypeUtil.NewVector3(vec3.Deserializevec3(_buf));
V4 = ExternalTypeUtil.NewVector4(vec4.Deserializevec4(_buf));
T1 = _buf.ReadLong();
}
public static DemoPrimitiveTypesTable DeserializeDemoPrimitiveTypesTable(ByteBuf _buf)
{
return new test.DemoPrimitiveTypesTable(_buf);
}
public readonly bool X1;
public readonly byte X2;
public readonly short X3;
public readonly int X4;
public readonly long X5;
public readonly float X6;
public readonly double X7;
public readonly string S1;
public readonly string S2;
public readonly System.Numerics.Vector2 V2;
public readonly System.Numerics.Vector3 V3;
public readonly System.Numerics.Vector4 V4;
public readonly long T1;
public const int __ID__ = -370934083;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "x1:" + X1 + ","
+ "x2:" + X2 + ","
+ "x3:" + X3 + ","
+ "x4:" + X4 + ","
+ "x5:" + X5 + ","
+ "x6:" + X6 + ","
+ "x7:" + X7 + ","
+ "s1:" + S1 + ","
+ "s2:" + S2 + ","
+ "v2:" + V2 + ","
+ "v3:" + V3 + ","
+ "v4:" + V4 + ","
+ "t1:" + T1 + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,53 @@
//------------------------------------------------------------------------------
// <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;
namespace cfg.test
{
public sealed partial class DemoSingletonType : Luban.BeanBase
{
public DemoSingletonType(ByteBuf _buf)
{
Id = _buf.ReadInt();
Name = _buf.ReadString();
Date = test.DemoDynamic.DeserializeDemoDynamic(_buf);
}
public static DemoSingletonType DeserializeDemoSingletonType(ByteBuf _buf)
{
return new test.DemoSingletonType(_buf);
}
public readonly int Id;
public readonly string Name;
public readonly test.DemoDynamic Date;
public const int __ID__ = 539196998;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
Date?.ResolveRef(tables);
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "name:" + Name + ","
+ "date:" + Date + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.test
{
public sealed partial class DemoType1 : Luban.BeanBase
{
public DemoType1(ByteBuf _buf)
{
X1 = _buf.ReadInt();
}
public static DemoType1 DeserializeDemoType1(ByteBuf _buf)
{
return new test.DemoType1(_buf);
}
public readonly int X1;
public const int __ID__ = -367048296;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "x1:" + X1 + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,129 @@
//------------------------------------------------------------------------------
// <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;
namespace cfg.test
{
public sealed partial class DemoType2 : Luban.BeanBase
{
public DemoType2(ByteBuf _buf)
{
X4 = _buf.ReadInt();
X1 = _buf.ReadBool();
X2 = _buf.ReadByte();
X3 = _buf.ReadShort();
X5 = _buf.ReadLong();
X6 = _buf.ReadFloat();
X7 = _buf.ReadDouble();
X80 = _buf.ReadShort();
X8 = _buf.ReadInt();
X9 = _buf.ReadLong();
X10 = _buf.ReadString();
X12 = test.DemoType1.DeserializeDemoType1(_buf);
X13 = (test.DemoEnum)_buf.ReadInt();
X14 = test.DemoDynamic.DeserializeDemoDynamic(_buf);
S1 = _buf.ReadString();
T1 = _buf.ReadLong();
{int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K1 = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); K1[__index0] = __e0;}}
{int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K2 = new System.Collections.Generic.List<int>(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); K2.Add(_e0);}}
{int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K5 = new System.Collections.Generic.HashSet<int>(/*n0 * 3 / 2*/);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); K5.Add(_e0);}}
{int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K8 = new System.Collections.Generic.Dictionary<int, int>(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); int _v0; _v0 = _buf.ReadInt(); K8.Add(_k0, _v0);}}
{int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K9 = new System.Collections.Generic.List<test.DemoE2>(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.DemoE2 _e0; _e0 = test.DemoE2.DeserializeDemoE2(_buf); K9.Add(_e0);}}
{int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K15 = new test.DemoDynamic[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { test.DemoDynamic __e0;__e0 = test.DemoDynamic.DeserializeDemoDynamic(_buf); K15[__index0] = __e0;}}
}
public static DemoType2 DeserializeDemoType2(ByteBuf _buf)
{
return new test.DemoType2(_buf);
}
public readonly int X4;
public readonly bool X1;
public readonly byte X2;
public readonly short X3;
public readonly long X5;
public readonly float X6;
public readonly double X7;
public readonly short X80;
public readonly int X8;
public readonly long X9;
public readonly string X10;
public readonly test.DemoType1 X12;
public readonly test.DemoEnum X13;
public readonly test.DemoDynamic X14;
public readonly string S1;
public readonly long T1;
public readonly int[] K1;
public readonly System.Collections.Generic.List<int> K2;
public readonly System.Collections.Generic.HashSet<int> K5;
public readonly System.Collections.Generic.Dictionary<int, int> K8;
public readonly System.Collections.Generic.List<test.DemoE2> K9;
public readonly test.DemoDynamic[] K15;
public const int __ID__ = -367048295;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
X12?.ResolveRef(tables);
X14?.ResolveRef(tables);
foreach (var _e in K15) { _e?.ResolveRef(tables); }
}
public override string ToString()
{
return "{ "
+ "x4:" + X4 + ","
+ "x1:" + X1 + ","
+ "x2:" + X2 + ","
+ "x3:" + X3 + ","
+ "x5:" + X5 + ","
+ "x6:" + X6 + ","
+ "x7:" + X7 + ","
+ "x80:" + X80 + ","
+ "x8:" + X8 + ","
+ "x9:" + X9 + ","
+ "x10:" + X10 + ","
+ "x12:" + X12 + ","
+ "x13:" + X13 + ","
+ "x14:" + X14 + ","
+ "s1:" + S1 + ","
+ "t1:" + T1 + ","
+ "k1:" + Luban.StringUtil.CollectionToString(K1) + ","
+ "k2:" + Luban.StringUtil.CollectionToString(K2) + ","
+ "k5:" + Luban.StringUtil.CollectionToString(K5) + ","
+ "k8:" + Luban.StringUtil.CollectionToString(K8) + ","
+ "k9:" + Luban.StringUtil.CollectionToString(K9) + ","
+ "k15:" + Luban.StringUtil.CollectionToString(K15) + ","
+ "}";
}
}
}

View File

@@ -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;
namespace cfg.test
{
public sealed partial class DetectEncoding : Luban.BeanBase
{
public DetectEncoding(ByteBuf _buf)
{
Id = _buf.ReadInt();
Name = _buf.ReadString();
}
public static DetectEncoding DeserializeDetectEncoding(ByteBuf _buf)
{
return new test.DetectEncoding(_buf);
}
public readonly int Id;
public readonly string Name;
public const int __ID__ = -1154609646;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "name:" + Name + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,19 @@
//------------------------------------------------------------------------------
// <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.test
{
public enum ETestEmptyEnum
{
}
}

View File

@@ -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.test
{
public enum ETestEmptyEnum2
{
SMALL_THAN_256 = 255,
X_256 = 256,
X_257 = 257,
}
}

View File

@@ -0,0 +1,35 @@
//------------------------------------------------------------------------------
// <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.test
{
public enum ETestQuality
{
/// <summary>
/// 最高品质
/// </summary>
A = 1,
/// <summary>
/// 黑色的
/// </summary>
B = 2,
/// <summary>
/// 蓝色的
/// </summary>
C = 3,
/// <summary>
/// 最差品质
/// </summary>
D = 4,
}
}

View File

@@ -0,0 +1,24 @@
//------------------------------------------------------------------------------
// <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.test
{
public enum ETestUeType
{
/// <summary>
/// 白
/// </summary>
WHITE = 0,
BLACK = 1,
}
}

View File

@@ -0,0 +1,53 @@
//------------------------------------------------------------------------------
// <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;
namespace cfg.test
{
public sealed partial class Equipment : test.ItemBase
{
public Equipment(ByteBuf _buf) : base(_buf)
{
Attr = (test.DemoEnum)_buf.ReadInt();
Value = _buf.ReadInt();
}
public static Equipment DeserializeEquipment(ByteBuf _buf)
{
return new test.Equipment(_buf);
}
public readonly test.DemoEnum Attr;
public readonly int Value;
public const int __ID__ = -76837102;
public override int GetTypeId() => __ID__;
public override void ResolveRef(Tables tables)
{
base.ResolveRef(tables);
}
public override string ToString()
{
return "{ "
+ "id:" + Id + ","
+ "name:" + Name + ","
+ "desc:" + Desc + ","
+ "attr:" + Attr + ","
+ "value:" + Value + ","
+ "}";
}
}
}

View File

@@ -0,0 +1,97 @@
//------------------------------------------------------------------------------
// <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;
namespace cfg.test
{
public sealed partial class ExcelFromJson : Luban.BeanBase
{
public ExcelFromJson(ByteBuf _buf)
{
X4 = _buf.ReadInt();
X1 = _buf.ReadBool();
X5 = _buf.ReadLong();
X6 = _buf.ReadFloat();
S1 = _buf.ReadString();
S2 = _buf.ReadString();
T1 = _buf.ReadLong();
X12 = test.DemoType1.DeserializeDemoType1(_buf);
X13 = (test.DemoEnum)_buf.ReadInt();
X14 = test.DemoDynamic.DeserializeDemoDynamic(_buf);
{int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K1 = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); K1[__index0] = __e0;}}
{int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K8 = new System.Collections.Generic.Dictionary<int, int>(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { int _k0; _k0 = _buf.ReadInt(); int _v0; _v0 = _buf.ReadInt(); K8.Add(_k0, _v0);}}
{int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K9 = new System.Collections.Generic.List<test.DemoE2>(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { test.DemoE2 _e0; _e0 = test.DemoE2.DeserializeDemoE2(_buf); K9.Add(_e0);}}
{int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);K15 = new test.DemoDynamic[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { test.DemoDynamic __e0;__e0 = test.DemoDynamic.DeserializeDemoDynamic(_buf); K15[__index0] = __e0;}}
}
public static ExcelFromJson DeserializeExcelFromJson(ByteBuf _buf)
{
return new test.ExcelFromJson(_buf);
}
public readonly int X4;
public readonly bool X1;
public readonly long X5;
public readonly float X6;
public readonly string S1;
public readonly string S2;
public readonly long T1;
public readonly test.DemoType1 X12;
public readonly test.DemoEnum X13;
public readonly test.DemoDynamic X14;
public readonly int[] K1;
public readonly System.Collections.Generic.Dictionary<int, int> K8;
public readonly System.Collections.Generic.List<test.DemoE2> K9;
public readonly test.DemoDynamic[] K15;
public const int __ID__ = -1485706483;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
X12?.ResolveRef(tables);
X14?.ResolveRef(tables);
foreach (var _e in K15) { _e?.ResolveRef(tables); }
}
public override string ToString()
{
return "{ "
+ "x4:" + X4 + ","
+ "x1:" + X1 + ","
+ "x5:" + X5 + ","
+ "x6:" + X6 + ","
+ "s1:" + S1 + ","
+ "s2:" + S2 + ","
+ "t1:" + T1 + ","
+ "x12:" + X12 + ","
+ "x13:" + X13 + ","
+ "x14:" + X14 + ","
+ "k1:" + Luban.StringUtil.CollectionToString(K1) + ","
+ "k8:" + Luban.StringUtil.CollectionToString(K8) + ","
+ "k9:" + Luban.StringUtil.CollectionToString(K9) + ","
+ "k15:" + Luban.StringUtil.CollectionToString(K15) + ","
+ "}";
}
}
}

Some files were not shown because too many files have changed in this diff Show More