forked from zxl/Frame
1
0
Fork 0
Frame/Assets/Scripts/Room/RoomData.cs

47 lines
1.1 KiB
C#
Raw Normal View History

2024-04-06 11:59:18 +08:00
using System.Collections.Generic;
using Game.Player;
using UnityEngine;
namespace Game.Room
2024-04-03 17:46:56 +08:00
{
public class RoomData
{
2024-04-06 11:59:18 +08:00
public RoomType roomType;
2024-04-03 17:46:56 +08:00
public float jinbei;
2024-04-06 11:59:18 +08:00
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,
,
,
,
,
殿,
,
,
,
2024-04-03 17:46:56 +08:00
}
}