45 lines
1.6 KiB
C#
45 lines
1.6 KiB
C#
/*
|
|
* @Author: 白哉
|
|
* @Description: 玩家逻辑接口
|
|
* @Date: 2025年04月01日 星期二 11:04:28
|
|
* @Modify:
|
|
*/
|
|
|
|
|
|
using UnityEngine;
|
|
using RuntimeData;
|
|
using System.Collections.Generic;
|
|
|
|
|
|
namespace Logic
|
|
{
|
|
public interface IPlayerLogic
|
|
{
|
|
|
|
//-------city相关操作-------
|
|
|
|
void UpdateCityConnect(MapData mapData, PlayerData playerData);
|
|
//更新player[pid]全国所有city的连通信息,更新每个city的联通加成
|
|
|
|
//-------unit相关操作-------
|
|
//player[pid]使用unit[uid]占领了位于grid[pos]的无主村庄,或者有主城市
|
|
void ExamineTreasure(MapData mapData, int pid, int uid, Vector2Int tpos);
|
|
//player[pid]命令unit[uid]挖掘位于grid[tpos]的宝藏
|
|
void Disband(MapData mapData, int pid,int uid);
|
|
//player[pid]解雇unit[uid]
|
|
public int UpdateSight_LogicView(MapData mapData, PlayerData playerData, List<uint> gidList,bool viewNextFrame,float duration);
|
|
//unit[uid]在grid[tpos]的位置,为player[pid]更新了视野情况
|
|
|
|
//-------tech相关操作-------
|
|
//返回player[pid]的tid科技是否被锁了
|
|
void ResearchTech(MapData mapData, PlayerData playerData , TechType techType,int cost);
|
|
//player[pid]学习了tid科技
|
|
|
|
//-------基础操作-------
|
|
void UpdatePlayerStarsPerTurn(MapData mapData, int pid);
|
|
//更新player[pid]的starsPerTurn信息
|
|
//void PlayerEndTurn(PlayerData P, MapData M);
|
|
//player[pid]进入下一回合
|
|
//void TempReturnThisAction(string name, PlayerData P, CityData C, UnitData U, GridData T,MapData M);
|
|
}
|
|
} |