- 添加对话表结构
- 调整部分类的命名空间 - 引入 EnumUtility 用于string与enum的转换
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace UI
|
||||
{
|
||||
/// <summary>
|
||||
/// Open data for MVC-based GameplayA form.
|
||||
/// </summary>
|
||||
public sealed class CombineFormContext : UIContext
|
||||
{
|
||||
/// <summary>
|
||||
/// Slot definitions. Position and order are provided externally.
|
||||
/// </summary>
|
||||
public List<CombineSlotContext> Slots;
|
||||
|
||||
/// <summary>
|
||||
/// Optional part definitions. When null/empty, parts are derived from slots.
|
||||
/// </summary>
|
||||
public List<CombinePartContext> Parts;
|
||||
|
||||
/// <summary>
|
||||
/// Auto start puzzle after runtime nodes are generated.
|
||||
/// </summary>
|
||||
public bool AutoStart = true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6d8c5c616c000704fb2d7d94a8d22c84
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using Definition.Enum;
|
||||
using UnityEngine;
|
||||
|
||||
namespace UI
|
||||
{
|
||||
/// <summary>
|
||||
/// Runtime part data passed from external system.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public sealed class CombinePartContext
|
||||
{
|
||||
public CombinePartType PartType = CombinePartType.Dou;
|
||||
|
||||
public string PartDisplayName = "Dou";
|
||||
|
||||
public string MechanicsExplanation = string.Empty;
|
||||
|
||||
public bool LockAfterPlaced = true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 82f303529f5b4b040845223f97a66cfa
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using Definition.Enum;
|
||||
using UnityEngine;
|
||||
|
||||
namespace UI
|
||||
{
|
||||
/// <summary>
|
||||
/// Runtime slot data passed from external system.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public sealed class CombineSlotContext
|
||||
{
|
||||
public CombinePartType RequiredPartType = CombinePartType.Dou;
|
||||
|
||||
public int BuildOrder = 0;
|
||||
|
||||
public bool RequireStrictOrder = true;
|
||||
|
||||
public Vector2 AnchoredPosition = Vector2.zero;
|
||||
|
||||
public Vector2 SizeDelta = new Vector2(120f, 120f);
|
||||
|
||||
public string MechanicsExplanation = string.Empty;
|
||||
|
||||
public string MismatchHint = string.Empty;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 03894567063ea7d42a417545043e32c6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user