This commit is contained in:
2026-05-15 16:15:09 +08:00
commit dd3b97bb48
4515 changed files with 1165044 additions and 0 deletions
@@ -0,0 +1,25 @@
using BingoBrain.Core;
namespace BingoBrain
{
public class CallEndCtrl : BaseCtrl
{
public static CallEndCtrl Instance { get; private set; }
private CallEndModel model;
#region
protected override void OnInit()
{
Instance = this;
}
protected override void OnDispose()
{
Instance = null;
}
#endregion
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 7ecbc7f801b14da8acffa00cb9c7b011
timeCreated: 1679910706
@@ -0,0 +1,25 @@
using BingoBrain.Core;
namespace BingoBrain
{
public class CallEndModel : BaseModel
{
public AdReward Vo => GameHelper.GetConfig<AdRewardModel>().GetData("reward_extraBall");
#region
protected override void OnInit()
{
}
protected override void OnDispose()
{
}
protected override void OnReset()
{
}
#endregion
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 4167a364840a43e2a6e71555dcdc0fd3
timeCreated: 1679910706
@@ -0,0 +1,52 @@
using BingoBrain.Core;
namespace BingoBrain
{
public class CallEndUI : BaseUI
{
private CallEndUICtrl ctrl;
private CallEndModel model;
public CallEndUI(CallEndUICtrl ctrl) : base(ctrl)
{
uiName = UIConst.CallEndUI;
this.ctrl = ctrl;
}
protected override void SetUIInfo(UIInfo uiInfo)
{
uiInfo.packageName = "JBingoPlay";
uiInfo.assetName = "com_callEnd";
uiInfo.layerType = UILayerType.Popup;
uiInfo.isNeedOpenAnim = true;
uiInfo.isNeedCloseAnim = true;
uiInfo.isNeedUIMask = true;
}
#region
protected override void OnInit()
{
model = ModuleBoardk.GetModel(ModelConst.CallEndModel) as CallEndModel;
}
protected override void OnClose()
{
}
protected override void OnBind()
{
}
protected override void OnOpenBefore(object args)
{
}
protected override void OnOpen(object args)
{
}
#endregion
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: fe9c072bc4654bba8b6869babd51b924
timeCreated: 1679910706
@@ -0,0 +1,91 @@
using BingoBrain.Core;
using BingoBrain.HotFix;
namespace BingoBrain
{
public class CallEndUICtrl : BaseUICtrl
{
private CallEndUI ui;
private CallEndModel model;
private uint openUIMsg = SkinInfo.CallEndUI_Open;
private uint closeUIMsg = SkinInfo.CallEndUI_Close;
#region
protected override void OnInit()
{
}
protected override void OnDispose()
{
}
public override void OpenUI(object args = null)
{
if (ui == null)
{
ui = new CallEndUI(this);
ui.Open(args);
}
}
public override void CloseUI(object args = null)
{
if (ui != null && !ui.isClose)
{
ui.Close();
}
ui = null;
}
#endregion
#region
public override uint GetOpenUIMsg(string uiName)
{
return openUIMsg;
}
public override uint GetCloseUIMsg(string uiName)
{
return closeUIMsg;
}
protected override void AddListener()
{
gameDispatcher.AddListener(BingoInfo.CallNumFinish, CheckEnd);
uiCtrlDispatcher.AddListener(closeUIMsg, CloseUI);
gameDispatcher.AddListener(BingoInfo.EndBingoGame, CloseUI);
}
private void CheckEnd(object obj)
{
if (BingoCell.AddCallSum >= BingoCell.MaxAddCallSum)
{
gameDispatcher.Dispatch(BingoInfo.ShowGameOver);
}
else
{
GameHelper.GetRewardExtra(111, 1, FGUI.JRewardPop.com_extraItem.Extra_extraball, isSuccess =>
{
if (!isSuccess)
{
gameDispatcher.Dispatch(BingoInfo.ShowGameOver);
}
});
}
}
protected override void RemoveListener()
{
gameDispatcher.RemoveListener(BingoInfo.CallNumFinish, CheckEnd);
uiCtrlDispatcher.RemoveListener(closeUIMsg, CloseUI);
gameDispatcher.RemoveListener(BingoInfo.EndBingoGame, CloseUI);
}
#endregion
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: e0815fb958984df2ac714a1b95baf438
timeCreated: 1679910706