public Animation(String path, int frameCount, int frameDelay, layer layer, origin origin, loopType loopType) { layers = 0; currentX = 320; currentY = 240; currentAngle = 0; totalCode = 0; this.frameCount = frameCount; this.frameDelay = frameDelay; Add(string.Format("Animation,{0},{1},\"{2}\",320,240,{3},{4},{5}", layer, origin, path, frameCount, frameDelay, loopType)); layers++; switch (layer) { case (layer.Foreground): ControlClass.foreground.Add(this); break; case (layer.Background): ControlClass.background.Add(this); break; case (layer.Pass): ControlClass.pass.Add(this); break; case (layer.Fail): ControlClass.fail.Add(this); break; } }
public Cancel(string iedType, string lnType, tFCEnum fCEnum) { this.Visible = false; this.name = "Cancel"; this.bTypeEnum = tBasicTypeEnum.Struct; this.fcEnum = fCEnum; this.id = this.type = lnType + "Cancel"; this.iedType = iedType; this.operTmField = new Timestamp("operTm"); this.originField = new origin(iedType, this.id); this.ctlNumField = new INT8U("ctlNum"); this.Transient_DataField = new Transient_Data(iedType, this.id); this.testField = new BOOLEAN("test"); }
private void ParseResponse(string r) { string[] lines = r.Split('{'); int o = 0, d = 0; origin or = new origin(); string val = ""; for (int i = 0; i < lines.Length; i++) { int pos = lines[i].IndexOf("value"); if (pos >= 0 && lines[i - 1].IndexOf("distance") >= 0) { string sub = lines[i].Substring(pos + 9); val = sub.Substring(0, sub.IndexOf("\n")); destination e = new destination(); e.dest = my_destinations[d + 1]; e.dist = Convert.ToInt32(val); or.destinations.Add(e); d++; if (d > my_destinations.Count - 2) { or.orig = my_destinations[o]; o++; d = o; origins.Add(or); or = new origin(); } } } for (int i = 0; i < origins.Count; i++) { while (origins[i].destinations.Count < my_destinations.Count) { origins[i].destinations.Insert(0, new destination()); } } }
public Sprite(String path, layer layer, origin origin) { layers = 0; currentX = 320; currentY = 240; currentOpacity = 1; currentScale = 1; currentScaleX = 1; currentScaleY = 1; currentAngle = 0; currentR = 255; currentG = 255; currentB = 255; totalCode = 0; this.path = path; Add(string.Format("Sprite,{0},{1},\"{2}\",320,240", layer, origin, path)); layers++; switch (layer) { case (layer.Foreground): ControlClass.foreground.Add(this); break; case (layer.Background): ControlClass.background.Add(this); break; case (layer.Pass): ControlClass.pass.Add(this); break; case (layer.Fail): ControlClass.fail.Add(this); break; } }
public Sprite(String path, origin origin) : this(path, layer.Foreground, origin) { }
RayCast(origin, direction, maximumT, out RayHit hit);
MarkMethod(origin, method, dependencyKind);
CallGoogleDirectionApi(origin, destination);
public void SetCurrentOrigin(origin value) { stimulusSource = value; }
public Animation(String path, int frameCount, int frameDelay, layer layer, origin origin) : this(path, frameCount, frameDelay, layer, origin, loopType.LoopForever) { }
public Animation(String path, int frameCount, int frameDelay, origin origin, loopType loopType) : this(path, frameCount, frameDelay, layer.Foreground, origin, loopType) { }
=> new Ray( origin ?? self.origin,
PreviousRecorder?.UnrecognizedReflectionAccessPattern(origin, source, sourceInstruction, accessedItem, message, messageCode);
public void SetOrigin(origin _origin) { myorigin = _origin; }