Files
SVSimServer/SVSim.BattleEngine/Engine/Wizard/ChatLogPlateLayoutNoMember.cs
gamer147 824309ec44 feat(battle-engine): close the AI-simulation subsystem (verbatim)
Copied the 89 uncopied AI*SimulationUtility/extension files defining the
AIVirtualCard/AIVirtualField extension methods; the compile loop then auto-closed
the revealed type deps (~3049 files total, drift-clean). 10.0k -> 62 errors.
2026-06-05 20:30:59 -04:00

37 lines
831 B
C#

using UnityEngine;
namespace Wizard;
public class ChatLogPlateLayoutNoMember : ChatLogPlateLayoutBase
{
[SerializeField]
private UISprite _spriteBG;
public override Vector2 GetPlateSize(ChatMessageInfo messageInfo)
{
return GetContentSize(messageInfo);
}
protected override void OnClearDisplay()
{
_spriteBG.gameObject.SetActive(value: true);
}
protected override void OnSetDisplayBeforeLoad(ChatMessageInfo messageInfo)
{
SetDisplayBG(messageInfo);
}
protected override void OnSetDisplayAfterLoad(ChatMessageInfo messageInfo)
{
}
private void SetDisplayBG(ChatMessageInfo messageInfo)
{
_spriteBG.gameObject.SetActive(value: true);
Vector2 plateSize = GetPlateSize(messageInfo);
_spriteBG.width = (int)plateSize.x;
_spriteBG.height = (int)plateSize.y;
}
}