Skip to content

Instantly share code, notes, and snippets.

@abebemukuru
Last active February 22, 2020 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abebemukuru/ef3989f9d6038a05a989c304793c117a to your computer and use it in GitHub Desktop.
Save abebemukuru/ef3989f9d6038a05a989c304793c117a to your computer and use it in GitHub Desktop.
部屋データ
/// <summary>
/// 部屋データ
/// </summary>
public class RoomData
{
// 部屋幅
public int m_nWidth;
// 部屋高さ
public int m_nHeight;
// フィールドデータIndex
public List<int> m_lstFieldIndex = new List<int>(8);
/// <summary>
/// コンストラクタ
/// </summary>
/// <param name="nWidth"></param>
/// <param name="nHeight"></param>
public RoomData( int nWidth,int nHeight )
{
m_nWidth = nWidth;
m_nHeight = nHeight;
}
/// <summary>
/// コピーコンストラクタ
/// </summary>
/// <param name="cData"></param>
public RoomData( RoomData cData )
{
m_nWidth = cData.m_nWidth;
m_nHeight = cData.m_nHeight;
m_lstFieldIndex = cData.m_lstFieldIndex;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment