From 8d0dd8c699650f8a2caa9203ef177d56c06efb20 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期一, 19 一月 2026 23:25:51 +0800
Subject: [PATCH] 419 【内政】命格系统
---
Main/System/Team/TeamBase.cs | 24 +++++-------------------
1 files changed, 5 insertions(+), 19 deletions(-)
diff --git a/Main/System/Team/TeamBase.cs b/Main/System/Team/TeamBase.cs
index aacf5ea..4ae329e 100644
--- a/Main/System/Team/TeamBase.cs
+++ b/Main/System/Team/TeamBase.cs
@@ -19,20 +19,19 @@
// 鏈嶅姟鍣ㄤ笅鍙戠殑闃靛瀷鍜岄樀瀹癸紝鍙兘閫氳繃缃戠粶鍗忚璧嬪�硷紝澶栭儴鍙
- public TeamType teamType
+ public int teamType
{
get;
private set;
}
- private int ShapeType;
- public int ServerShapeType { get; private set; }
+
public TeamHero[] tempHeroes { get; private set; } = new TeamHero[TeamConst.MaxTeamHeroCount];
public TeamHero[] serverHeroes { get; private set; } = new TeamHero[TeamConst.MaxTeamHeroCount];
- public TeamBase(TeamType _teamType)
+ public TeamBase(int _teamType)
{
teamType = _teamType;
teamIndex = 0;
@@ -49,8 +48,6 @@
}
teamIndex = lineUp.Num;
playerId = lineUp.OwnerID;
- ShapeType = lineUp.ShapeType;
- ServerShapeType = lineUp.ShapeType;
for (int i = 0; i < lineUp.ObjCnt; i++)
{
@@ -110,7 +107,6 @@
CB412_tagCSHeroPresetSave savePack = new CB412_tagCSHeroPresetSave();
savePack.PresetID = (byte)teamType;
- savePack.ShapeType = (byte)ShapeType;
savePack.PosCnt = (byte)GetTeamHeroCount();
savePack.HeroPosList = new CB412_tagCSHeroPresetSave.tagCSHeroPresetPos[savePack.PosCnt];
@@ -141,30 +137,20 @@
//闈炰富绾块樀瀹瑰鎴风鑷繁鍋氭垬鍔涘彉鍖栵紝涓荤嚎闃靛鏈嶅姟绔垬鍔涘彉鏇翠細鍚屾鎺ㄩ��
}
- public void OnChangeShapeType(int newShapeType)
- {
- ShapeType = newShapeType;
- }
- public void OnServerChangeShapeType(int newShapeType)
- {
- ServerShapeType = newShapeType;
- ShapeType = newShapeType;
- }
+
- public void RefreshServerData(int shapeType, int positionIndex, HeroInfo heroInfo)
+ public void RefreshServerData(int positionIndex, HeroInfo heroInfo)
{
TeamHero teamHero = heroInfo == null ? null : new TeamHero(heroInfo, positionIndex, this);
SetServerTeamHero(positionIndex, teamHero);
- OnServerChangeShapeType(shapeType);
}
public void CreateDefault(List<HeroInfo> heroInfos)
{
teamIndex = 0;
playerId = PlayerDatas.Instance.baseData.PlayerID;
- OnServerChangeShapeType(0);
for (int i = 0; i < heroInfos.Count; i++)
{
--
Gitblit v1.8.0