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.
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user