Init
This commit is contained in:
92
Assets/MindPowerSdk/Table/CSceneObjInfo.cs
Normal file
92
Assets/MindPowerSdk/Table/CSceneObjInfo.cs
Normal file
@ -0,0 +1,92 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace MindPowerSdk
|
||||
{
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
public struct CRawColor
|
||||
{
|
||||
public byte R, G, B;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 4, CharSet = CharSet.Auto)]
|
||||
public sealed class CSceneObjInfo : CRawDataInfo
|
||||
{
|
||||
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 16)]
|
||||
public string Name; // char[16]
|
||||
|
||||
/// <summary>
|
||||
/// 类型
|
||||
/// </summary>
|
||||
public int Type;
|
||||
|
||||
/// <summary>
|
||||
/// 点光源颜色
|
||||
/// </summary>
|
||||
public CRawColor PointColor; // byte[3]
|
||||
|
||||
/// <summary>
|
||||
/// 环境光颜色
|
||||
/// </summary>
|
||||
public CRawColor EnvColor; // byte[3]
|
||||
|
||||
/// <summary>
|
||||
/// 雾颜色
|
||||
/// </summary>
|
||||
public CRawColor FogColor; // byte[3]
|
||||
|
||||
public int Range;
|
||||
public float Attenuation1;
|
||||
|
||||
/// <summary>
|
||||
/// 点光源动画类型id
|
||||
/// </summary>
|
||||
public int AnimCtrlID;
|
||||
|
||||
/// <summary>
|
||||
/// 风格
|
||||
/// </summary>
|
||||
public int Style;
|
||||
|
||||
public int AttachEffectID;
|
||||
|
||||
/// <summary>
|
||||
/// 是否收点光源影响
|
||||
/// </summary>
|
||||
public bool EnablePointLight;
|
||||
|
||||
/// <summary>
|
||||
/// 是否收环境光影响
|
||||
/// </summary>
|
||||
public bool EnableEnvLight;
|
||||
|
||||
/// <summary>
|
||||
/// 其它标记
|
||||
/// </summary>
|
||||
public int Flag;
|
||||
|
||||
/// <summary>
|
||||
/// 尺寸标记, 如果物件是超大尺寸, 则可见性判断特殊
|
||||
/// </summary>
|
||||
public int SizeFlag;
|
||||
|
||||
/// <summary>
|
||||
/// char[11]
|
||||
/// </summary>
|
||||
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 11)]
|
||||
public string EnvSound;
|
||||
|
||||
public int EnvSoundDis; // 单位:厘米
|
||||
public int PhotoTexID; // 图标贴图ID
|
||||
public bool ShadeFlag;
|
||||
public bool IsReallyBig; // 是否特大物件,Added by clp
|
||||
|
||||
public int FadeObjNum;
|
||||
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]
|
||||
public int[] FadeObjSeq;
|
||||
|
||||
public float FadeCoefficent;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user