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
|
|
|
|
}
|
|
|
|
|
}
|