38 lines
687 B
C#
38 lines
687 B
C#
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public enum PlayerType
|
|
{
|
|
Player1 = 0,
|
|
Player2 = 1,
|
|
Player3 = 2,
|
|
Player4 = 3
|
|
}
|
|
|
|
public enum PlayerColorType
|
|
{
|
|
Red = 0,
|
|
Blue = 1,
|
|
Grey = 2,
|
|
Green = 3
|
|
}
|
|
|
|
[System.Serializable]
|
|
public class PlayerGameData
|
|
{
|
|
public PlayerType playerType;
|
|
public int startIndex;
|
|
public int endIndex;
|
|
public Transform playersParent;
|
|
public Dictionary<int, PlayerPawn> playerPawnsDict;
|
|
public int totalPawnsInHome = 0;
|
|
public int totalPawnsFinished = 0;
|
|
}
|
|
|
|
[System.Serializable]
|
|
public class PlayerData
|
|
{
|
|
public PlayerType playerType;
|
|
public string playerName;
|
|
public int ranking = 0;
|
|
} |