public override void OnEnter(BInput input) { this.over = false; this.m_ftime = Time.time; Debug.Log("on home"); }
/// <summary> /// 执行 /// </summary> /// <param name="input"></param> /// <returns></returns> public override ActionResult Excute(BInput input) { if( this.m_iRunningIndex >= this.m_lstChildren.Count) { if(this.SuccessOrFailure) { if( this.Num <= this.m_iSuccessNum) return ActionResult.SUCCESS; } else { if( this.Num <= (this.m_lstChildren.Count - this.m_iSuccessNum)) return ActionResult.SUCCESS; } return ActionResult.FAILURE; } ActionResult res = this.m_lstChildren[this.m_iRunningIndex].RunNode(input); if(res == ActionResult.SUCCESS) this.m_iSuccessNum++; if(res != ActionResult.RUNNING) this.m_iRunningIndex++; return ActionResult.RUNNING; }
public override ResultType Execute(BInput _input) { state = State.Running; if (_currentIndex > listChilds.Count) return ResultType.Fail; Node _node = listChilds[_currentIndex]; this._input = _input; return _node.RunNode(_input); }
public override void OnEnter(BInput input) { Debug.Log("use skill"); this.over = false; this.m_ftime = Time.time; TestInput tinput = input as TestInput; tinput.mp -= 50; }
public override ResultType Execute(BInput _input) { TargetInput input = _input as TargetInput; input.Target.SetProperty("hp", 100); GameInput.DebugLog("do action atk"); state = State.Exit; return ResultType.Success; }
public override void OnEnter(BInput input) { TestInput tinput = input as TestInput; tinput.hp -= 20; this.m_ftime = Time.time; this.over = false; Debug.Log("attack"); }
//excute public override ActionResult Excute(BInput input) { if(Time.time - this.m_ftime > 2f) this.over = true; if(this.over) return ActionResult.SUCCESS; return ActionResult.RUNNING; }
public override ActionResult Excute(BInput input) { TestInput tinput = input as TestInput; if(tinput.mp >= this.MP) { return ActionResult.SUCCESS; } return ActionResult.FAILURE; }
public bool Evaluate(BInput _condition) { bool b = true; if (_preCondition != null) { b = _preCondition.Evaluate(_condition); } return b && DoEvaluate(_condition); }
public override ResultType Execute(BInput _input) { this.state = State.Running; for (int i = 0; i < listChilds.Count; i++) { Node _node = listChilds[i]; _node.RunNode(_input); } state = State.Exit; return ResultType.Success; }
//excute public override ActionResult Excute(BInput input) { Debug.LogError("ConditionAIHasMoveToTarget"); AIPlayer tinput = input as AIPlayer; Debug.LogError("ConditionAIHasMoveToTarget" + tinput.belongGroup); if (!tinput.isMove) { Debug.Log("ConditionAIHasMoveToTarget SUCCESS"); return(ActionResult.SUCCESS); } else { Debug.Log("ConditionAIHasMoveToTarget FAILURE"); return(ActionResult.FAILURE); } }
public override BTResult Execute(BInput input) { TestBInput testInput = input as TestBInput; //Debug.Log (testInput.name + "/" + testInput.age); if (testInput.name == "Joe" && testInput.age == 23) { Debug.Log("相等"); return(BTResult.SUCCESS); } else { Debug.Log("不相等"); return(BTResult.FAILURE); } }
public override Object read(object obj1, BInput bin1, long version) { BInputBin bin = ((BInputBin)bin1); BBufferBin bbuf = bin.bbuf; Dictionary <String, byps.test.api.refs.Node> map = new Dictionary <String, byps.test.api.refs.Node>(); bin.onObjectCreated(map); int n = bbuf.getLength(); for (int i = 0; i < n; i++) { String key = bbuf.getString(); byps.test.api.refs.Node value = (byps.test.api.refs.Node)bin.readObj(false, null); map[key] = value; } return(map); }
//excute public override ActionResult Excute(BInput input) { Debug.Log("ConditionAIHasEnemyInView SUCCESS视野内是否存在敌人"); AIPlayer tinput = input as AIPlayer; Debug.LogError("ConditionAIHasEnemyInView" + tinput.belongGroup); if (tinput.isEnemyInView()) { Debug.Log("ConditionAIHasEnemyInView SUCCESS"); return(ActionResult.SUCCESS); } else { Debug.Log("ConditionAIHasEnemyInView FAILURE"); return(ActionResult.FAILURE); } }
public override Object read(object obj1, BInput bin1, long version) { BInputBin bin = ((BInputBin)bin1); BBufferBin bbuf = bin.bbuf; Dictionary <int, EloixClient.IndexServer.UserName> map = new Dictionary <int, EloixClient.IndexServer.UserName>(); bin.onObjectCreated(map); int n = bbuf.getLength(); for (int i = 0; i < n; i++) { int key = bbuf.getInt(); EloixClient.IndexServer.UserName value = (EloixClient.IndexServer.UserName)bin.readObj(false, null); map[key] = value; } return(map); }
public override Object read(object obj1, BInput bin1, long version) { BInputBin bin = ((BInputBin)bin1); BBufferBin bbuf = bin.bbuf; Dictionary <String, EloixClient.IndexServer.feed.HashTag> map = new Dictionary <String, EloixClient.IndexServer.feed.HashTag>(); bin.onObjectCreated(map); int n = bbuf.getLength(); for (int i = 0; i < n; i++) { String key = bbuf.getString(); EloixClient.IndexServer.feed.HashTag value = (EloixClient.IndexServer.feed.HashTag)bin.readObj(false, null); map[key] = value; } return(map); }
/// <summary> /// 执行 /// </summary> /// <param name="input"></param> /// <returns></returns> public override ActionResult Excute(BInput input) { if(this.m_iRunningIndex >= this.m_lstChildren.Count) { return this.m_eResult; } ActionResult result = this.m_lstChildren[this.m_iRunningIndex].RunNode(input); if(result == ActionResult.FAILURE) { this.m_eResult = ActionResult.FAILURE; } if(result != ActionResult.RUNNING) this.m_iRunningIndex++; return ActionResult.RUNNING; }
public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; BBufferBin bbuf = bin.bbuf; // lengths int n0 = bbuf.getLength(); // create array byte[] arr = new byte[n0]; bin.onObjectCreated(arr); // read bbuf.getArrayByte(arr); return(arr); }
public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; UserProfileData obj = (UserProfileData)(obj1 != null ? obj1 : bin.onObjectCreated(new UserProfileData())); base.read(obj, bin1, version); BBufferBin bbuf = bin.bbuf; // checkpoint byps.gen.cs.PrintContext:449 obj.key = bbuf.getString(); // checkpoint byps.gen.cs.PrintContext:449 obj.user = bbuf.getInt(); // checkpoint byps.gen.cs.PrintContext:449 obj.value = bbuf.getString(); return(obj); }
public override Object read(object obj1, BInput bin1, long version) { BInputBin bin = ((BInputBin)bin1); BBufferBin bbuf = bin.bbuf; Dictionary <double, byte> map = new Dictionary <double, byte>(); bin.onObjectCreated(map); int n = bbuf.getLength(); for (int i = 0; i < n; i++) { double key = bbuf.getDouble(); byte value = bbuf.getByte(); map[key] = value; } return(map); }
public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; HealthCheckInfos obj = (HealthCheckInfos)(obj1 != null ? obj1 : bin.onObjectCreated(new HealthCheckInfos())); base.read(obj, bin1, version); BBufferBin bbuf = bin.bbuf; // checkpoint byps.gen.cs.PrintContext:449 obj.archiveGuid = bbuf.getString(); // checkpoint byps.gen.cs.PrintContext:449 obj.customerLicenseKeyHash = bbuf.getString(); // checkpoint byps.gen.cs.PrintContext:449 obj.infos = (IList <EloixClient.IndexServer.health.HealthCheckInfo>)bin.readObj(false, null); return(obj); }
public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; VtDoc obj = (VtDoc)(obj1 != null ? obj1 : bin.onObjectCreated(new VtDoc())); base.read(obj, bin1, version); BBufferBin bbuf = bin.bbuf; // checkpoint byps.gen.cs.PrintContext:449 obj.code = bbuf.getInt(); // checkpoint byps.gen.cs.PrintContext:449 obj.docId = bbuf.getInt(); // checkpoint byps.gen.cs.PrintContext:449 obj.objId = bbuf.getInt(); return(obj); }
private void btnSave_Click(object sender, EventArgs e) { try { string resp = ""; if (txtidSupplier.Text == string.Empty || txtSerie.Text == string.Empty) { MessageError("Fill the fields"); errorIcon.SetError(txtidSupplier, "Insert the supply"); errorIcon.SetError(txtIdProduct, "Insert the product id"); errorIcon.SetError(txtSerie, "Insert the serie"); } else { if (this.isNew) { resp = BInput.Insert(idstaff, Convert.ToInt32(this.txtidSupplier.Text), Convert.ToDateTime(this.dtpDate.Text), this.cbReceipt.Text, txtSerie.Text, txtCorelativ.Text, Convert.ToDecimal(txtVat.Text), "ISSUED", dtDetails); } if (resp.Equals("OK")) { if (this.isNew) { this.MessageOk("Register saved"); } } else { this.MessageError(resp); } this.isNew = false; this.Enabledbuttons(); this.Clean(); this.ShowDetailInput(); } } catch (Exception ex) { MessageBox.Show(ex.Message + ex.StackTrace); } }
public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; BRequest_IXServerEvents_onAfterStartWorkFlow obj = (BRequest_IXServerEvents_onAfterStartWorkFlow)(obj1 != null ? obj1 : bin.onObjectCreated(new BRequest_IXServerEvents_onAfterStartWorkFlow())); BBufferBin bbuf = bin.bbuf; // checkpoint byps.gen.cs.PrintContext:449 obj.ecValue = (EloixClient.IndexServer.IXServerEventsContext)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.sordValue = (EloixClient.IndexServer.Sord)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.sordZValue = (EloixClient.IndexServer.SordZ)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.workflowValue = (EloixClient.IndexServer.WFDiagram)bin.readObj(false, null); return(obj); }
public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; BRequest_IXServicePortIF_changeSordMask obj = (BRequest_IXServicePortIF_changeSordMask)(obj1 != null ? obj1 : bin.onObjectCreated(new BRequest_IXServicePortIF_changeSordMask())); BBufferBin bbuf = bin.bbuf; // checkpoint byps.gen.cs.PrintContext:449 obj.maskIdValue = bbuf.getString(); // checkpoint byps.gen.cs.PrintContext:449 obj.ciValue = (EloixClient.IndexServer.ClientInfo)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.editInfoZValue = (EloixClient.IndexServer.EditInfoZ)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.sordValue = (EloixClient.IndexServer.Sord)bin.readObj(false, null); return(obj); }
public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; BRequest_HealthCheckService_computeDoubleValue obj = (BRequest_HealthCheckService_computeDoubleValue)(obj1 != null ? obj1 : bin.onObjectCreated(new BRequest_HealthCheckService_computeDoubleValue())); BBufferBin bbuf = bin.bbuf; // checkpoint byps.gen.cs.PrintContext:449 obj.doubleValueValue = bbuf.getDouble(); // checkpoint byps.gen.cs.PrintContext:449 obj.nameValue = bbuf.getString(); // checkpoint byps.gen.cs.PrintContext:449 obj.operationValue = (EloixClient.IndexServer.health.HealthCheckValueOperation)bbuf.getInt(); // checkpoint byps.gen.cs.PrintContext:449 obj.ciValue = (EloixClient.IndexServer.ClientInfo)bin.readObj(false, null); return(obj); }
public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; LoginScriptOptions obj = (LoginScriptOptions)(obj1 != null ? obj1 : bin.onObjectCreated(new LoginScriptOptions())); base.read(obj, bin1, version); BBufferBin bbuf = bin.bbuf; // checkpoint byps.gen.cs.PrintContext:449 obj.clientName = bbuf.getString(); if (version >= 1000170059000004L) { // checkpoint byps.gen.cs.PrintContext:449 obj.techUser = bbuf.getString(); } return(obj); }
public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; BRequest_IXServicePortIF_checkinUsers obj = (BRequest_IXServicePortIF_checkinUsers)(obj1 != null ? obj1 : bin.onObjectCreated(new BRequest_IXServicePortIF_checkinUsers())); BBufferBin bbuf = bin.bbuf; // checkpoint byps.gen.cs.PrintContext:449 obj.checkinUsersZValue = (EloixClient.IndexServer.CheckinUsersZ)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.ciValue = (EloixClient.IndexServer.ClientInfo)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.unlockZValue = (EloixClient.IndexServer.LockZ)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.userInfosValue = (EloixClient.IndexServer.UserInfo[])bin.readObj(false, EloixClient.IndexServer.BSerializer_1132956238.instance); return(obj); }
public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; BRequest_WClientService_onAfterVersionChanged obj = (BRequest_WClientService_onAfterVersionChanged)(obj1 != null ? obj1 : bin.onObjectCreated(new BRequest_WClientService_onAfterVersionChanged())); BBufferBin bbuf = bin.bbuf; // checkpoint byps.gen.cs.PrintContext:449 obj.docIdValue = bbuf.getInt(); // checkpoint byps.gen.cs.PrintContext:449 obj.flagsValue = bbuf.getInt(); // checkpoint byps.gen.cs.PrintContext:449 obj.objIdValue = bbuf.getInt(); // checkpoint byps.gen.cs.PrintContext:449 obj.ciValue = (EloixClient.IndexServer.ClientInfo)bin.readObj(false, null); return(obj); }
/// <summary> /// 执行 /// </summary> /// <param name="input"></param> /// <returns></returns> public override ActionResult Excute(BInput input) { if(this.m_iRuningIndex >= this.m_lstChildren.Count) { return ActionResult.SUCCESS; } BNode node = this.m_lstChildren[this.m_iRuningIndex]; ActionResult res = node.RunNode(input); if(res != ActionResult.RUNNING) { this.m_iRuningIndex++; } return ActionResult.RUNNING; }
public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; BRequest_IXServicePortIF_checkoutMapHistory obj = (BRequest_IXServicePortIF_checkoutMapHistory)(obj1 != null ? obj1 : bin.onObjectCreated(new BRequest_IXServicePortIF_checkoutMapHistory())); BBufferBin bbuf = bin.bbuf; // checkpoint byps.gen.cs.PrintContext:449 obj.domainNameValue = bbuf.getString(); // checkpoint byps.gen.cs.PrintContext:449 obj.mapIdValue = bbuf.getString(); // checkpoint byps.gen.cs.PrintContext:449 obj.ciValue = (EloixClient.IndexServer.ClientInfo)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.membersZValue = (EloixClient.IndexServer.MapHistZ)bin.readObj(false, null); return(obj); }
public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; BRequest_IXServicePortIF_deleteWorkFlow obj = (BRequest_IXServicePortIF_deleteWorkFlow)(obj1 != null ? obj1 : bin.onObjectCreated(new BRequest_IXServicePortIF_deleteWorkFlow())); BBufferBin bbuf = bin.bbuf; // checkpoint byps.gen.cs.PrintContext:449 obj.flowIdValue = bbuf.getString(); // checkpoint byps.gen.cs.PrintContext:449 obj.ciValue = (EloixClient.IndexServer.ClientInfo)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.typeZValue = (EloixClient.IndexServer.WFTypeZ)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.unlockZValue = (EloixClient.IndexServer.LockZ)bin.readObj(false, null); return(obj); }
public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; ExecuteOptions obj = (ExecuteOptions)(obj1 != null ? obj1 : bin.onObjectCreated(new ExecuteOptions())); BBufferBin bbuf = bin.bbuf; // checkpoint byps.gen.cs.PrintContext:449 obj.CaptureError = bbuf.getBoolean(); // checkpoint byps.gen.cs.PrintContext:449 obj.CaptureOutput = bbuf.getBoolean(); // checkpoint byps.gen.cs.PrintContext:449 obj.ExtraInfo = bbuf.getString(); // checkpoint byps.gen.cs.PrintContext:449 obj.StandardInput = bbuf.getString(); return(obj); }
public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; ResolveRightsResult obj = (ResolveRightsResult)(obj1 != null ? obj1 : bin.onObjectCreated(new ResolveRightsResult())); BBufferBin bbuf = bin.bbuf; // checkpoint byps.gen.cs.PrintContext:449 obj.right = bbuf.getInt(); // checkpoint byps.gen.cs.PrintContext:449 obj.right2 = bbuf.getInt(); // checkpoint byps.gen.cs.PrintContext:449 obj.type = bbuf.getInt(); // checkpoint byps.gen.cs.PrintContext:449 obj.members = (IList <String>)bin.readObj(false, null); return(obj); }
public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; BRequest_IXServicePortIF_combineAcl obj = (BRequest_IXServicePortIF_combineAcl)(obj1 != null ? obj1 : bin.onObjectCreated(new BRequest_IXServicePortIF_combineAcl())); BBufferBin bbuf = bin.bbuf; // checkpoint byps.gen.cs.PrintContext:449 obj.ciValue = (EloixClient.IndexServer.ClientInfo)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.lhsValue = (EloixClient.IndexServer.AclItem[])bin.readObj(false, EloixClient.IndexServer.BSerializer_1944875656.instance); // checkpoint byps.gen.cs.PrintContext:449 obj.optionsValue = (EloixClient.IndexServer.CombineAclOptions)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.rhsValue = (EloixClient.IndexServer.AclItem[])bin.readObj(false, EloixClient.IndexServer.BSerializer_1944875656.instance); return(obj); }
public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; BRequest_IXServicePortIF_checkinReport obj = (BRequest_IXServicePortIF_checkinReport)(obj1 != null ? obj1 : bin.onObjectCreated(new BRequest_IXServicePortIF_checkinReport())); BBufferBin bbuf = bin.bbuf; // checkpoint byps.gen.cs.PrintContext:449 obj.ciValue = (EloixClient.IndexServer.ClientInfo)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.lockZValue = (EloixClient.IndexServer.LockZ)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.reportValue = (EloixClient.IndexServer.ReportInfo)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.reservedValue = (EloixClient.IndexServer.CheckinReportInfo)bin.readObj(false, null); return(obj); }
public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; BRequest_IXServicePortIF_loginEloProf obj = (BRequest_IXServicePortIF_loginEloProf)(obj1 != null ? obj1 : bin.onObjectCreated(new BRequest_IXServicePortIF_loginEloProf())); BBufferBin bbuf = bin.bbuf; // checkpoint byps.gen.cs.PrintContext:449 obj.certificateValue = bbuf.getString(); // checkpoint byps.gen.cs.PrintContext:449 obj.clientComputerValue = bbuf.getString(); // checkpoint byps.gen.cs.PrintContext:449 obj.userIdValue = bbuf.getInt(); // checkpoint byps.gen.cs.PrintContext:449 obj.ciValue = (EloixClient.IndexServer.ClientInfo)bin.readObj(false, null); return(obj); }
public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; BRequest_IXServicePortIF_createNote2 obj = (BRequest_IXServicePortIF_createNote2)(obj1 != null ? obj1 : bin.onObjectCreated(new BRequest_IXServicePortIF_createNote2())); BBufferBin bbuf = bin.bbuf; // checkpoint byps.gen.cs.PrintContext:449 obj.noteTypeValue = bbuf.getInt(); // checkpoint byps.gen.cs.PrintContext:449 obj.objIdValue = bbuf.getString(); // checkpoint byps.gen.cs.PrintContext:449 obj.templIdValue = bbuf.getString(); // checkpoint byps.gen.cs.PrintContext:449 obj.ciValue = (EloixClient.IndexServer.ClientInfo)bin.readObj(false, null); return(obj); }
public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; BRequest_IXServicePortIF_collectJobStates obj = (BRequest_IXServicePortIF_collectJobStates)(obj1 != null ? obj1 : bin.onObjectCreated(new BRequest_IXServicePortIF_collectJobStates())); BBufferBin bbuf = bin.bbuf; // checkpoint byps.gen.cs.PrintContext:449 obj.activeJobsValue = bbuf.getBoolean(); // checkpoint byps.gen.cs.PrintContext:449 obj.finishedJobsValue = bbuf.getBoolean(); // checkpoint byps.gen.cs.PrintContext:449 obj.fullInfoValue = bbuf.getBoolean(); // checkpoint byps.gen.cs.PrintContext:449 obj.ciValue = (EloixClient.IndexServer.ClientInfo)bin.readObj(false, null); return(obj); }
public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; BRequest_IXServerEvents_onCreateSord obj = (BRequest_IXServerEvents_onCreateSord)(obj1 != null ? obj1 : bin.onObjectCreated(new BRequest_IXServerEvents_onCreateSord())); BBufferBin bbuf = bin.bbuf; // checkpoint byps.gen.cs.PrintContext:449 obj.maskIdValue = bbuf.getString(); // checkpoint byps.gen.cs.PrintContext:449 obj.parentIdValue = bbuf.getString(); // checkpoint byps.gen.cs.PrintContext:449 obj.ecValue = (EloixClient.IndexServer.IXServerEventsContext)bin.readObj(false, null); // checkpoint byps.gen.cs.PrintContext:449 obj.editZValue = (EloixClient.IndexServer.EditInfoZ)bin.readObj(false, null); return(obj); }
public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; FindInfoAsInternalSQL obj = (FindInfoAsInternalSQL)(obj1 != null ? obj1 : bin.onObjectCreated(new FindInfoAsInternalSQL())); BBufferBin bbuf = bin.bbuf; // checkpoint byps.gen.cs.PrintContext:449 obj.fromTables = bbuf.getString(); // checkpoint byps.gen.cs.PrintContext:449 obj.groupByClause = bbuf.getString(); // checkpoint byps.gen.cs.PrintContext:449 obj.orderByClause = bbuf.getString(); // checkpoint byps.gen.cs.PrintContext:449 obj.whereClause = bbuf.getString(); return(obj); }
public override Object read(Object obj1, BInput bin1, long version) { BInputBin bin = (BInputBin)bin1; BRequest_IXServicePortIF_encryptStringRsa obj = (BRequest_IXServicePortIF_encryptStringRsa)(obj1 != null ? obj1 : bin.onObjectCreated(new BRequest_IXServicePortIF_encryptStringRsa())); BBufferBin bbuf = bin.bbuf; // checkpoint byps.gen.cs.PrintContext:449 obj.dataValue = bbuf.getString(); // checkpoint byps.gen.cs.PrintContext:449 obj.encryptNotDecryptValue = bbuf.getBoolean(); // checkpoint byps.gen.cs.PrintContext:449 obj.keyValue = bbuf.getString(); // checkpoint byps.gen.cs.PrintContext:449 obj.ciValue = (EloixClient.IndexServer.ClientInfo)bin.readObj(false, null); return(obj); }
public override ResultType Execute(BInput _input) { if (_currentIndex >= listChilds.Count) { GameInput.DebugLog("没有找到匹配这个条件的"); return ResultType.Fail; } Node _node = listChilds[_currentIndex]; if(_node.Evaluate(_input)) { return result= _node.RunNode(_input); }else { _currentIndex++; Execute(_input); } result = ResultType.Running; return result; }
//exceute public override ActionResult Excute(BInput input) { if(this.m_iRunningIndex >= this.m_lstChildren.Count) { return ActionResult.FAILURE; } ActionResult res = this.m_lstChildren[this.m_iRunningIndex].RunNode(input); if(res == ActionResult.FAILURE) return ActionResult.FAILURE; if(res == ActionResult.SUCCESS) { this.m_iRunningIndex++; this.m_iRunningNum++; } if(this.m_iRunningNum >= this.Num) return ActionResult.SUCCESS; return ActionResult.RUNNING; }
//onenter public override void OnEnter(BInput input) { this.m_iRunningIndex = 0; this.m_eResult = ActionResult.SUCCESS; }
public void Run( BInput input ) { this.m_cRoot.RunNode(input); }
public override void OnEnter(BInput input) { Debug.Log((input as TestInput).mp + " -- mp"); }
public override bool DoEvaluate(BInput _input) { TargetInput input = (TargetInput)_input; float distance = Vector3.Distance(input.owner.Transform.position, input.Target.Transform.position); return distance < 10.0f; }
//enter public virtual void OnEnter(BInput input) { // }
//exit public virtual void OnExit(BInput input) { // }
/// <summary> /// </summary> /// <param name="_input"></param> /// <returns></returns> public override ResultType Execute(BInput _input) { TargetInput input = (TargetInput)_input; input.owner.Transform.LookAt(input.Target.Transform); return ResultType.Success; }
//excute public virtual ActionResult Excute(BInput input) { return ActionResult.SUCCESS; }
public ResultType RunNode(BInput _input) { this.Enter(); return Execute(_input); }
public virtual ResultType Execute(BInput _input) { GameInput.DebugLog("base node execute " + _input); state = State.Running; if (listChilds.Count > 0) { Node node = listChilds[0]; node.Execute(_input); } return ResultType.None; }
//on enter public override void OnEnter(BInput input) { this.m_iRuningIndex = 0; }
public virtual bool Evaluate(BInput _input) { return true; }
public override bool DoEvaluate(BInput _input) { TargetInput _i = _input as TargetInput; return _i.state == 1; }
public ActionResult RunNode(BInput input) { if(this.m_eState == ActionResult.NONE) { this.OnEnter(input); this.m_eState = ActionResult.RUNNING; } ActionResult res = this.Excute(input); if(res != ActionResult.RUNNING) { this.OnExit(input); this.m_eState = ActionResult.NONE; } return res; }
public override ResultType Execute(BInput _input) { GameInput.DebugLog("do action idle"); state = State.Exit; return ResultType.Success; }
public override bool Evaluate(BInput _input=null) { TargetInput input = _input as TargetInput; bool b = input.Target.GetProperty("name") == "hero"; return b; }