CTT/Unity/Assets/Hotfix/Logic/Model/Game/Common/GlobalVariable.cs

30 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using UnityEngine;
namespace ET
{
public class GlobalVariable:Entity
{
public long UserId{ get; set; }
public long MyId{ get; set; }
public int MapId{ get; set; }
public int JobId{ get; set; }
public List<Vector4> PlayerPosList_BeforeBattle { get; set; } = new List<Vector4>();
public List<Vector4> EnermyPlayerPosList_BeforeBattle{ get; set; }= new List<Vector4>();
public long LeaderId { get=>this.ZoneScene().GetComponent<UnitComponent>().MyUnit.LeaderId; set=>this.ZoneScene().GetComponent<UnitComponent>().MyUnit.LeaderId=value; }
public long SelectBattleUnitId { get; set; }
public long SelectUnitId { get; set; }
public long SelectUnitHeadInfoId { get; set; }
/// <summary>
/// 是否断线重连
/// </summary>
public bool isOnLine { get; internal set; }
public long Token { get; internal set; }
public bool IsMineCharacter{ get; set; }
public int petId{ get; set; }
}
}