123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- using ShadowStudio.Tool;
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- namespace ShadowStudio.Model
- {
- /// <summary>
- /// 美术资源容器
- /// </summary>
- public interface ArtContainer
- {
- /// <summary>
- /// 获取物体的信息
- /// </summary>
- /// <returns></returns>
- GoodsInfo GetGoodsInfo();
- void AddArtComponent(ArtComponent component);
- /// <summary>
- /// 添加到容器
- /// </summary>
- /// <param name="art"></param>
- void AddToContainer(UnityEngine.Object art, ArtInfo info);
- /// <summary>
- /// 获取容器类型
- /// </summary>
- /// <returns></returns>
- ArtType GetArtType();
- /// <summary>
- /// 获取容器的实例
- /// </summary>
- /// <returns></returns>
- GameObject GetInstace();
- /// <summary>
- /// 销毁容器
- /// </summary>
- void DestroyArt();
- /// <summary>
- /// 设置当前的容器的显示或隐藏
- /// </summary>
- /// <param name="isShow"></param>
- void SetArtActive(bool isShow);
- /// <summary>
- /// 播放动效
- /// </summary>
- void PlayEffect();
- /// <summary>
- /// 发送当前的姿态
- /// 此函数已失效,请使用SendTransfer(int state, int status);
- /// </summary>
- //void SendTransfer(int state, bool isEditting);
- void SendTransfer(int state, int status);
- /// <summary>
- /// 同步容器的状态
- /// </summary>
- void TransferSyn(GoodsInfo goods, bool smooth = true);
- /// <summary>
- /// 锁定此容器
- /// </summary>
- void LockContainer();
- /// <summary>
- /// 解锁此容器
- /// </summary>
- void UnLockContainer();
- /// <summary>
- /// 能否被编辑
- /// </summary>
- /// <returns></returns>
- bool CanEditor();
- /// <summary>
- /// 获取容器的缩略图
- /// </summary>
- /// <returns></returns>
- Texture GetContainerIcon();
- void GetContainerIcon(Action<Texture> load);
- /// <summary>
- /// 设置资源的帮助实例化类
- /// </summary>
- /// <param name="handler"></param>
- void SetArtHandler(ArtHandler handler);
- /// <summary>
- /// 设置物体选中状态
- /// </summary>
- void SetSelect();
- /// <summary>
- /// 设置物体非选中状态
- /// </summary>
- void UnSetSelect();
- /// <summary>
- /// 重置编辑菜单的位置
- /// </summary>
- void ResetEditorPosition();
- /// <summary>
- /// 获取物体编辑节点
- /// </summary>
- /// <returns></returns>
- Transform GetEditorCenter();
- /// <summary>
- /// 后退
- /// </summary>
- bool GoBack();
- /// <summary>
- /// 前进
- /// </summary>
- bool GoAhead();
- /// <summary>
- /// 获取可后退的步数
- /// </summary>
- /// <returns></returns>
- int BackCount();
- /// <summary>
- /// 获取可前进的步数
- /// </summary>
- /// <returns></returns>
- int AheadCount();
- /// <summary>
- /// 克隆此物体
- /// </summary>
- void CloneContainer();
- /// <summary>
- /// 物体的坐标,本地相对坐标
- /// </summary>
- Vector3 Position { get; set; }
- /// <summary>
- /// 物体的角度,本地相对角度
- /// </summary>
- Vector3 Angle { get; set; }
- /// <summary>
- /// 物体的缩放值
- /// </summary>
- Vector3 Scale { get; set; }
- /// <summary>
- /// 此物体距离头部的距离
- /// </summary>
- float Distance { get; }
- /// <summary>
- /// 物体的透明度
- /// </summary>
- float Alpha { get; set; }
- /// <summary>
- /// 物体的颜色值
- /// </summary>
- Color GoodsColor { get; set; }
- /// <summary>
- /// 物体编辑
- /// </summary>
- TransferCell Transfer { get; set; }
- ArtComponent ArtComponent{ get; }
- void UpdateProcess(float process);
- }
- }
|