Exemple #1
0
    CommandCallbackType MainButtonInitDataHandle(byte[] dataBuffer, int socketID)
    {
        SMsgInteract_NewbieGuide_SCS sMsgInteract_NewbieGuide_SCS = PackageHelper.BytesToStuct <SMsgInteract_NewbieGuide_SCS>(dataBuffer);

        GameManager.Instance.MainButtonIndex = sMsgInteract_NewbieGuide_SCS.wGuideIndex;
        UIEventManager.Instance.TriggerUIEvent(UIEventType.InitMainButton, (int)sMsgInteract_NewbieGuide_SCS.wGuideIndex);
        return(CommandCallbackType.Continue);
    }
Exemple #2
0
    //鍙戦€佹湰鍦版柊鎵嬪紩瀵肩姸鎬佺粰鏈嶅姟鍣ㄣ€?
    public void SendNewbieGuide(SMsgInteract_NewbieGuide_SCS sMsgInteract_NewbieGuide_SCS)
    {
        Package pkg = new Package();

        pkg.Head = new PkgHead((byte)MasterMsgType.NET_ROOT_INTERACT, (short)InteractDefineManager.INTERACT_MSG_NEWBIEGUIDE_DATA);
        pkg.Data = PackageHelper.StructToBytes <SMsgInteract_NewbieGuide_SCS>(sMsgInteract_NewbieGuide_SCS);

        this.Request(pkg);
    }