迭代拼装玩法与素材

This commit is contained in:
2026-04-22 10:54:24 +08:00
parent a1b6b4a823
commit 204eb6e4d0
35 changed files with 3471 additions and 848 deletions
@@ -0,0 +1,45 @@
using GameFramework;
using GameFramework.Event;
namespace Event
{
public enum CombineFeedbackType : byte
{
None = 0,
Success = 1,
OrderError = 2,
PositionError = 3
}
public class CombineFeedbackEventArgs : GameEventArgs
{
public static readonly int EventId = typeof(CombineFeedbackEventArgs).GetHashCode();
public override int Id => EventId;
public CombineFeedbackType FeedbackType { get; private set; }
public string Message { get; private set; }
public CombineFeedbackEventArgs()
{
FeedbackType = CombineFeedbackType.None;
Message = string.Empty;
}
public static CombineFeedbackEventArgs Create(CombineFeedbackType feedbackType, string message)
{
var args = ReferencePool.Acquire<CombineFeedbackEventArgs>();
args.FeedbackType = feedbackType;
args.Message = message ?? string.Empty;
return args;
}
public override void Clear()
{
FeedbackType = CombineFeedbackType.None;
Message = string.Empty;
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 760eb8da887f4ab9918f01a43ca40b59
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -1,32 +0,0 @@
using GameFramework;
using GameFramework.Event;
namespace Event
{
public class CombineGuideMessageEventArgs : GameEventArgs
{
public static readonly int EventId = typeof(CombineGuideMessageEventArgs).GetHashCode();
public override int Id => EventId;
public string Message { get; private set; }
public CombineGuideMessageEventArgs()
{
Message = "";
}
public static CombineGuideMessageEventArgs Create(string message)
{
var args = ReferencePool.Acquire<CombineGuideMessageEventArgs>();
args.Message = message;
return args;
}
public override void Clear()
{
Message = "";
}
}
}
@@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 7d6ccdc983514de981ac731659f6fa0e
timeCreated: 1770510601
@@ -1,32 +0,0 @@
using GameFramework;
using GameFramework.Event;
namespace Event
{
public class CombinePartMessageEventArgs : GameEventArgs
{
public static readonly int EventId = typeof(CombinePartMessageEventArgs).GetHashCode();
public override int Id => EventId;
public string Message { get; private set; }
public CombinePartMessageEventArgs()
{
Message = "";
}
public static CombinePartMessageEventArgs Create(string message)
{
var args = ReferencePool.Acquire<CombinePartMessageEventArgs>();
args.Message = message;
return args;
}
public override void Clear()
{
Message = "";
}
}
}
@@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: fd83ff85d4a8443db7a9cba10c02529f
timeCreated: 1770510848