2025-08-20 11:14:21 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Runtime;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using ZGame;
|
|
|
|
|
|
|
|
|
|
namespace HK.FUJIFILM
|
|
|
|
|
{
|
|
|
|
|
public class ProductEventArgs : GameEventArgs
|
|
|
|
|
{
|
|
|
|
|
public static readonly int EventId = typeof(ProductEventArgs).GetHashCode();
|
|
|
|
|
public override int Id => EventId;
|
|
|
|
|
|
|
|
|
|
public ProductScriptableObject productScriptableObject;
|
|
|
|
|
|
|
|
|
|
public ProductEventArgs(ProductScriptableObject productScriptableObject)
|
|
|
|
|
{
|
|
|
|
|
this.productScriptableObject = productScriptableObject;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-08-23 10:08:36 +08:00
|
|
|
|
public class Set3DCameraEventArgs : GameEventArgs
|
|
|
|
|
{
|
|
|
|
|
public static readonly int EventId = typeof(Set3DCameraEventArgs).GetHashCode();
|
|
|
|
|
public override int Id => EventId;
|
|
|
|
|
|
|
|
|
|
public Camera camera;
|
|
|
|
|
|
|
|
|
|
public Set3DCameraEventArgs(Camera camera)
|
|
|
|
|
{
|
|
|
|
|
this.camera = camera;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-08-20 11:14:21 +08:00
|
|
|
|
public class ProductDesgin_GenPhotoEventArgs : GameEventArgs
|
|
|
|
|
{
|
|
|
|
|
public static readonly int EventId = typeof(ProductDesgin_GenPhotoEventArgs).GetHashCode();
|
|
|
|
|
public override int Id => EventId;
|
|
|
|
|
|
|
|
|
|
public string ID;
|
|
|
|
|
public Sprite sprite;
|
|
|
|
|
|
|
|
|
|
public ProductDesgin_GenPhotoEventArgs(string id, Sprite sprite)
|
|
|
|
|
{
|
|
|
|
|
ID = id;
|
|
|
|
|
this.sprite = sprite;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ProduceDesign_CopyDesignItemAssetEventArgs : GameEventArgs
|
|
|
|
|
{
|
|
|
|
|
public static readonly int EventId = typeof(ProduceDesign_CopyDesignItemAssetEventArgs).GetHashCode();
|
|
|
|
|
public override int Id => EventId;
|
|
|
|
|
|
|
|
|
|
public GameObject go;
|
2025-08-21 13:10:17 +08:00
|
|
|
|
public ProductScriptableObject productScriptableObject;
|
2025-08-20 11:14:21 +08:00
|
|
|
|
public Sprite sprite;
|
|
|
|
|
public Dictionary<string, ImageDesignItem> designItems;
|
|
|
|
|
|
2025-08-21 13:10:17 +08:00
|
|
|
|
public ProduceDesign_CopyDesignItemAssetEventArgs(GameObject go,
|
|
|
|
|
ProductScriptableObject productScriptableObject, Sprite sprite,
|
2025-08-20 11:14:21 +08:00
|
|
|
|
Dictionary<string, ImageDesignItem> designItems)
|
|
|
|
|
{
|
|
|
|
|
this.go = go;
|
2025-08-21 13:10:17 +08:00
|
|
|
|
this.productScriptableObject = productScriptableObject;
|
2025-08-20 11:14:21 +08:00
|
|
|
|
this.sprite = sprite;
|
|
|
|
|
this.designItems = designItems;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class MugActualModel_Fixed_GenPhotoEventArgs : GameEventArgs
|
|
|
|
|
{
|
|
|
|
|
public static readonly int EventId = typeof(MugActualModel_Fixed_GenPhotoEventArgs).GetHashCode();
|
|
|
|
|
public override int Id => EventId;
|
|
|
|
|
|
|
|
|
|
public GameObject go;
|
|
|
|
|
public string ID;
|
|
|
|
|
|
|
|
|
|
public MugActualModel_Fixed_GenPhotoEventArgs(GameObject go, string id)
|
|
|
|
|
{
|
|
|
|
|
this.go = go;
|
|
|
|
|
ID = id;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class SavePreviewAndDesignEventArgs : GameEventArgs
|
|
|
|
|
{
|
|
|
|
|
public static readonly int EventId = typeof(SavePreviewAndDesignEventArgs).GetHashCode();
|
|
|
|
|
public override int Id => EventId;
|
|
|
|
|
|
|
|
|
|
public Runtime.ShoppingCartData shoppingCartData;
|
|
|
|
|
|
|
|
|
|
public SavePreviewAndDesignEventArgs(ShoppingCartData shoppingCartData)
|
|
|
|
|
{
|
|
|
|
|
this.shoppingCartData = shoppingCartData;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-08-22 09:16:11 +08:00
|
|
|
|
public class PhotoItemOperationEventArgs : GameEventArgs
|
|
|
|
|
{
|
|
|
|
|
public static readonly int EventId = typeof(PhotoItemOperationEventArgs).GetHashCode();
|
|
|
|
|
public override int Id => EventId;
|
|
|
|
|
|
|
|
|
|
public bool isStart;
|
|
|
|
|
public Transform target;
|
|
|
|
|
|
|
|
|
|
public PhotoItemOperationEventArgs(bool isStart, Transform target)
|
|
|
|
|
{
|
|
|
|
|
this.isStart = isStart;
|
|
|
|
|
this.target = target;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-08-20 11:14:21 +08:00
|
|
|
|
public class ProductA11ozCeramicsMugItemEventArgs : GameEventArgs
|
|
|
|
|
{
|
|
|
|
|
public static readonly int EventId = typeof(ProductA11ozCeramicsMugItemEventArgs).GetHashCode();
|
|
|
|
|
public override int Id => EventId;
|
|
|
|
|
|
|
|
|
|
public Sprite sprite;
|
|
|
|
|
public DesignItem designItem;
|
|
|
|
|
|
|
|
|
|
public ProductA11ozCeramicsMugItemEventArgs(Sprite sprite, DesignItem designItem)
|
|
|
|
|
{
|
|
|
|
|
this.sprite = sprite;
|
|
|
|
|
this.designItem = designItem;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ProductDesignItemEventArgs : GameEventArgs
|
|
|
|
|
{
|
|
|
|
|
public static readonly int EventId = typeof(ProductDesignItemEventArgs).GetHashCode();
|
|
|
|
|
public override int Id => EventId;
|
|
|
|
|
|
|
|
|
|
public Transform designParent;
|
|
|
|
|
public string ID;
|
|
|
|
|
|
|
|
|
|
public ProductDesignItemEventArgs(Transform designParent, string ID)
|
|
|
|
|
{
|
|
|
|
|
this.designParent = designParent;
|
|
|
|
|
this.ID = ID;
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-08-25 15:53:01 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 恢复按钮大小为正常大小
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class ImageDesignItemButtonRestoreEventArgs : GameEventArgs
|
|
|
|
|
{
|
|
|
|
|
public static readonly int EventId = typeof(ImageDesignItemButtonRestoreEventArgs).GetHashCode();
|
|
|
|
|
public override int Id => EventId;
|
|
|
|
|
|
|
|
|
|
public string ID;
|
|
|
|
|
|
|
|
|
|
public ImageDesignItemButtonRestoreEventArgs(string ID)
|
|
|
|
|
{
|
|
|
|
|
this.ID = ID;
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-08-20 11:14:21 +08:00
|
|
|
|
}
|