コード例 #1
0
        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;
            }
        }
コード例 #2
0
 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");
 }
コード例 #3
0
        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());
                }
            }
        }
コード例 #4
0
        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;
            }
        }
コード例 #5
0
 public Sprite(String path, origin origin)
     : this(path, layer.Foreground, origin)
 {
 }
コード例 #6
0
 RayCast(origin, direction, maximumT, out RayHit hit);
コード例 #7
0
ファイル: ReflectionMarker.cs プロジェクト: dotnet/runtime
 MarkMethod(origin, method, dependencyKind);
コード例 #8
0
 CallGoogleDirectionApi(origin, destination);
コード例 #9
0
 public void SetCurrentOrigin(origin value)
 {
     stimulusSource = value;
 }
コード例 #10
0
 public Animation(String path, int frameCount, int frameDelay, layer layer, origin origin)
     : this(path, frameCount, frameDelay, layer, origin, loopType.LoopForever)
 {
 }
コード例 #11
0
 public Animation(String path, int frameCount, int frameDelay, origin origin, loopType loopType)
     : this(path, frameCount, frameDelay, layer.Foreground, origin, loopType)
 {
 }
コード例 #12
0
 => new Ray(
     origin ?? self.origin,
コード例 #13
0
 PreviousRecorder?.UnrecognizedReflectionAccessPattern(origin, source, sourceInstruction, accessedItem, message, messageCode);
コード例 #14
0
ファイル: Personality.cs プロジェクト: Khmhmm/tRPG
 public void SetOrigin(origin _origin)
 {
     myorigin = _origin;
 }