/*
 * 由SharpDevelop创建。
 * 用户： Administrator
 * 日期: 2019-01-26
 * 时间: 16:13
 * 
 * 要改变这种模板请点击 工具|选项|代码编写|编辑标准头文件
 */
using System;

namespace GameData
{
	/// <summary>
	/// 场景类型
	/// </summary>
	public enum SceneType
	{
        /// <summary>
        /// 登录 特殊情况
        /// </summary>
        Login = -1,

		/// <summary>
		/// 主界面 还没进入子游戏
		/// </summary>
		Main = 0,
		
		/// <summary>
		/// 进入子游戏
		/// </summary>
		InGame = 1,
		
		/// <summary>
		/// 在子游戏桌子上
		/// </summary>
		Desk = 2,
		
		/// <summary>
		/// 在竞技比赛中
		/// </summary>
		Club = 3,
	}
	
	/// <summary>
	/// 场景变化包裹
	/// </summary>
	public class ChangeScenePack{
		/// <summary>
		/// 当前应该在的场景
		/// </summary>
		public int scene;

        /// <summary>
        /// 玩家数据
        /// </summary>
        public playerData data;
        
        /// <summary>
        /// 
        /// </summary>
        public ChangeScenePack(){}
		
		/// <summary>
		/// 
		/// </summary>
		/// <param name="scene"></param>
        /// <param name="data">玩家数据</param>
		public ChangeScenePack(int scene,playerData data) {
			this.scene = scene;
            this.data = data;
		}
		
		/// <summary>
		/// 
		/// </summary>
		/// <param name="type"></param>
		public ChangeScenePack(SceneType type){
			this.scene = (int)type;
		}
	}
}
