Frame/Assets/Scripts/Room/RoomData.cs

47 lines
1.1 KiB
C#

using System.Collections.Generic;
using Game.Player;
using UnityEngine;
namespace Game.Room
{
public class RoomData
{
public RoomType roomType;
public float jinbei;
public List<IPlayer> players;
public Vector2 room_LeftDown;
public Vector2 room_RightUp;
public RoomData(RoomType roomType) // , Vector2 down, Vector2 up
{
this.roomType = roomType;
this.jinbei = 0;
this.players = new List<IPlayer>();
// this.room_LeftDown = down;
// this.room_RightUp = up;
}
// public Vector2 GetJoinPosition()
// {
// var vector2 = this.room_RightUp - this.room_LeftDown;
//
// Vector2 vec = new Vector2(Random.Range(0, vector2.x), Random.Range(0, vector2.y));
// vec += this.room_LeftDown;
//
// return vec;
// }
}
public enum RoomType
{
= 0,
,
,
,
,
殿,
,
,
,
}
}