38 lines
966 B
C#
38 lines
966 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Ubi.Tools.GearConfigTool
|
|
{
|
|
public class GearReference
|
|
{
|
|
|
|
public enum ReferenceType : int
|
|
{
|
|
ProfileIndex = 0,
|
|
SubSystemIndex = 1,
|
|
ModuleIndex = 2,
|
|
ConfigIndex = 3
|
|
}
|
|
|
|
int[] m_ReferencesValue = new int[4];
|
|
|
|
public GearReference(int iProfileIndex, int iSubSystemIndex, int iModuleIndex, int iConfigIndex)
|
|
{
|
|
m_ReferencesValue[(int)ReferenceType.ProfileIndex] = iProfileIndex;
|
|
m_ReferencesValue[(int)ReferenceType.SubSystemIndex] = iSubSystemIndex;
|
|
m_ReferencesValue[(int)ReferenceType.ModuleIndex] = iModuleIndex;
|
|
m_ReferencesValue[(int)ReferenceType.ConfigIndex] = iConfigIndex;
|
|
|
|
}
|
|
|
|
public int GetIndex(ReferenceType eRefType)
|
|
{
|
|
|
|
return m_ReferencesValue[(int)eRefType];
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|