protected override void Execute(CodeActivityContext context) { var filename = Filename.Get(context); var script = Script.Get(context); var function = Function.Get(context); var newinstance = NewInstance.Get(context); var param1 = Param1.Get(context); var param2 = Param2.Get(context); var param3 = Param3.Get(context); var param4 = Param4.Get(context); if (sharpAHK.ahkGlobal.ahkdll == null || newinstance) { New_AHKSession(newinstance); } if (!sharpAHK.ahkGlobal.ahkdll.FunctionExists(function)) { if (!string.IsNullOrEmpty(filename)) { sharpAHK.ahkGlobal.ahkdll.LoadFile(filename); } else { sharpAHK.ahkGlobal.ahkdll.LoadScript(script); } } if (!sharpAHK.ahkGlobal.ahkdll.FunctionExists(function)) { throw new ArgumentNullException("Function '" + function + "' does not exists"); } var result = sharpAHK.ahkGlobal.ahkdll.ExecFunction(function, param1, param2, param3, param4); Result.Set(context, result); }
public override int GetHashCode() { int hash = 1; if (Id != 0L) { hash ^= Id.GetHashCode(); } if (Param1 != 0L) { hash ^= Param1.GetHashCode(); } if (Param2 != 0L) { hash ^= Param2.GetHashCode(); } if (Param3 != 0L) { hash ^= Param3.GetHashCode(); } if (Param4 != 0L) { hash ^= Param4.GetHashCode(); } if (Param5 != 0L) { hash ^= Param5.GetHashCode(); } if (Param6 != 0L) { hash ^= Param6.GetHashCode(); } if (Param7 != 0L) { hash ^= Param7.GetHashCode(); } if (Param8 != 0L) { hash ^= Param8.GetHashCode(); } if (Param9 != 0L) { hash ^= Param9.GetHashCode(); } if (Param10 != 0L) { hash ^= Param10.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public string Generate() { return(string.Join("\t", new[] { Index.ToString(), CurrentWP.ToString(), CoordFrame.ToString(), Command.ToString(), Param1.ToString(), Param2.ToString(), Param3.ToString(), Param4.ToString(), Latitude.ToString(), Longitude.ToString(), Altitude.ToString(), AutoContinue ? "1" : "0", })); }
private void Update(EvaluationContext context) { var bufferContent = new ParamBufferLayout(Param1.GetValue(context), Param2.GetValue(context), Param3.GetValue(context), Param4.GetValue(context)); ResourceManager.Instance().SetupConstBuffer(bufferContent, ref Buffer.Value); Buffer.Value.DebugName = nameof(ColorGradeConstBuffer); }