Exemplo n.º 1
0
 //	Warning!!!Warning!!!Warning!!!此处顶层分隔符使用“;” -
 /// <summary>
 /// 发起AI建议	-
 /// </summary>
 static void    RquestCallAI(int MonsterID, int DecisionID, string DecisionData)
 {
             #if msr_AccumulateAI
     AIDecisionData nData = new     AIDecisionData();
     nData.MonsterID    = MonsterID;
     nData.DecisionID   = DecisionID;
     nData.DecisionData = DecisionData;
     MonsterHandler.RequestCallAI(nData);
             #endif
             #if !msr_AccumulateAI
     //Debug.Log(	"K________RquestCallAI!!!!!!!!!!!MonsterID = " + MonsterID + " Data = " + DecisionData );
     ZMNetData zd = new ZMNetData((int)OpCode.Decision);
     zd.writeInt(MonsterID);
     zd.writeInt(DecisionID);
     zd.writeString(DecisionData);
     ZealmConnector.sendRequest(zd);
             #endif
 }
Exemplo n.º 2
0
    /// <summary>
    /// 撤退 OrderType	=	10	-
    /// </summary>
    public static void    RequestFallBack(int MonsterID, int DecisionID, int OrderType, byte isMaxHP)
    {
                #if msr_AccumulateAI
        AIDecisionData nData = new     AIDecisionData();
        nData.MonsterID    = MonsterID;
        nData.DecisionID   = DecisionID;
        nData.DecisionData = FallBackAIData(OrderType);
        nData.isMaxHP      = isMaxHP;
        MonsterHandler.RequestFallBack(nData);
                #endif

                #if !msr_AccumulateAI
        _AIData = "" + OrderType;
        //Debug.Log(	"K________Rquest FallBack!!!!!!!!!!!!MonsterID = " + MonsterID + " Data = " + _AIData );
        ZMNetData zd = new ZMNetData((int)OpCode.DecisionFallBack);
        zd.writeInt(MonsterID);
        zd.writeInt(DecisionID);
        zd.writeString(_AIData);
        ZealmConnector.sendRequest(zd);
                #endif
    }
Exemplo n.º 3
0
 public static void    RequestFallBack(AIDecisionData newData)
 {
     GetInstance().FallBackList.Add(newData);
 }
Exemplo n.º 4
0
 public static void    RequestCallAI(AIDecisionData newData)
 {
     GetInstance().AIList.Add(newData);
 }