Пример #1
0
    public void PlaySystem(SYSTEM system, Vector3 position, Color color, int emitCount)
    {
        //if (!SettingsManager.instance.particlesEnabled)
        //{
        //    return;
        //}
        ParticleSystem ps = null;

        switch (system)
        {
        case SYSTEM.HIT_SYSTEM:
            ps = hitSystem;
            break;

        case SYSTEM.DEATH_TRAIL:
            ps = deathTrailSystem;
            break;

        case SYSTEM.GOLD_POP:
            ps = goldPopSystem;
            break;

        case SYSTEM.DOLL_POP:
            ps = dollPopSystem;
            break;
        }
        if (color != Color.black)
        {
            ps.startColor = color;
        }
        ps.transform.position = position;
        _ = emitCount == 0 ? Play(ps) : Emit(ps, emitCount);
    }
Пример #2
0
 internal PatchQuerySyntax(string EntityName, string PrimaryKey, SYSTEM parent)
 {
     this.CollectionName = EntityName;
     this.parent         = parent;
     this.PrimaryKey     = PrimaryKey;
     Entity = new List <ValueField>();
 }
Пример #3
0
 public void print(object o)
 {
     lock (line)
     {
         line.Append(SYSTEM.str(o));
     }
 }
Пример #4
0
 public void print(double d)
 {
     lock (line)
     {
         line.Append(SYSTEM.str(d));
     }
 }
Пример #5
0
        // public interface is thread-safe

        public void print(bool b)
        {
            lock (line)
            {
                line.Append(SYSTEM.str(b));
            }
        }
Пример #6
0
 public StringBuffer append(object o)
 {
     lock (content)
     {
         content.Append(SYSTEM.str(o));
     }
     return(this);
 }
Пример #7
0
 public StringBuffer append(bool b)
 {
     lock (content)
     {
         content.Append(SYSTEM.str(b));
     }
     return(this);
 }
Пример #8
0
 public StringBuffer append(double d)
 {
     lock (content)
     {
         content.Append(SYSTEM.str(d));
     }
     return(this);
 }
Пример #9
0
 public void println(double d)
 {
     lock (line)
     {
         line.Append(SYSTEM.str(d));
         finishLine();
     }
 }
Пример #10
0
 public void println(bool b)
 {
     lock (line)
     {
         line.Append(SYSTEM.str(b));
         finishLine();
     }
 }
Пример #11
0
 public void println(object o)
 {
     lock (line)
     {
         line.Append(SYSTEM.str(o));
         finishLine();
     }
 }
Пример #12
0
                internal GetQuerySyntax(string FromCollectionValue, SYSTEM parent)
                {
                    this.From   = FromCollectionValue;
                    this.parent = parent;

                    SelectValues  = new List <string>();
                    OrderByValues = new List <ORDERBY>();
                    WhereFilter   = new List <WHERE>();
                }
Пример #13
0
 public static System.String join(System.Object delim, System.Object[] parts)
 {
     System.String             d = SYSTEM.str(delim);
     System.Text.StringBuilder b = new System.Text.StringBuilder();
     for (int i = 0; i < parts.Length; i++)
     {
         if (i > 0)
         {
             b.Append(d);
         }
         b.Append(SYSTEM.str(parts[i]));
     }
     return(b.ToString());
 }
Пример #14
0
    public void PlaySystem(Vector3 position, SYSTEM system, Color color)
    {
        if (!SettingsManager.instance.particlesEnabled)
        {
            return;
        }
        switch (system)
        {
        case SYSTEM.SPLASH_SYSTEM:
            splashSystem.startColor         = color;
            splashSystem.transform.position = position;
            splashSystem.Emit(20);
            break;

        case SYSTEM.TEAR_SYSTEM:
            tearSystem.startColor         = color;
            tearSystem.transform.position = position;
            tearSystem.Play();
            break;

        case SYSTEM.CONFETTI_SYSTEM:
            confettiSystem.transform.position = position;
            confettiSystem.Play();
            break;

        case SYSTEM.CONFETTI_TRAIL_SYSTEM:
            confettiTrailSystem.transform.position = position;
            confettiTrailSystem.Play();
            break;

        case SYSTEM.POP_SYSTEM:
            popSystem.startColor         = color;
            popSystem.transform.position = position;
            popSystem.Play();
            break;

        case SYSTEM.COIN_SYSTEM:
            coinSystem.transform.position = position;
            coinSystem.Play();
            break;

        case SYSTEM.RAINBOW_SYTEM:
            rainbowSystem.transform.position = position;
            rainbowSystem.Play();
            break;
        }
    }
Пример #15
0
 public void CommandCheck()
 {
     Input = Input.ToLower();
     if (Input.StartsWith("ls"))
     {
         LS.Options(Input);
     }
     else if (Input.StartsWith("cat"))
     {
         CAT.Options(Input);
     }
     else if (Input.StartsWith("os"))
     {
         OS.Options(Input);
     }
     else if (Input.StartsWith("help"))
     {
         new HELP();
     }
     else if (Input.StartsWith("system"))
     {
         SYSTEM.Options(Input);
     }
     else if (Input.StartsWith("process"))
     {
         PROCESSES.Options(Input);
     }
     else if (Input.StartsWith("open"))
     {
         OPEN.Options(Input);
     }
     else if (Input == "exit")
     {
         Environment.Exit(0);
     }
     else
     {
         Console.WriteLine("Non-existent command");
     }
 }
Пример #16
0
        public SYSTEM ConnectTo(string URL, string username, string password, string SystemName)
        {
            if (GetSystemByName(SystemName) == null && GetSystemByURL(URL) == null)
            {
                SYSTEM newsystem = new SYSTEM(URL, username, password, SystemName);
                systems.Add(newsystem);

                return(newsystem);
            }
            else if (GetSystemByURL(URL) != null)
            {
                return(GetSystemByURL(URL));
            }
            else if (GetSystemByName(SystemName) != null)
            {
                return(GetSystemByName(SystemName));
            }
            else
            {
                return(null);
            }
        }
Пример #17
0
        public SYSTEM ConnectTo(string URL, string username, string password, string SystemName, string metadataURI)
        {
            if (GetSystemByName(SystemName) == null && GetSystemByURL(URL) == null)
            {
                SYSTEM newsystem = new SYSTEM(URL, username, password, SystemName);
                systems.Add(newsystem);

                newsystem.SetBusinessObjectList(metadataURI);
                return(newsystem);
            }
            else if (GetSystemByURL(URL) != null)
            {
                return(GetSystemByURL(URL));
            }
            else if (GetSystemByName(SystemName) != null)
            {
                return(GetSystemByName(SystemName));
            }
            else
            {
                return(null);
            }
        }
Пример #18
0
 public static string toString(double d)
 {
     return(SYSTEM.str(d));
 }
Пример #19
0
 public StringBuilder append(System.Object o)
 {
     content.Append(SYSTEM.str(o));
     return(this);
 }
Пример #20
0
 public override string ToString()
 {
     return(SYSTEM.str(value));
 }
Пример #21
0
 public StringBuilder append(double d)
 {
     content.Append(SYSTEM.str(d));
     return(this);
 }
Пример #22
0
 public StringBuilder append(bool b)
 {
     content.Append(SYSTEM.str(b));
     return(this);
 }
Пример #23
0
 partial void UpdateSYSTEM(SYSTEM instance);
Пример #24
0
 partial void DeleteSYSTEM(SYSTEM instance);
Пример #25
0
 public static string toString(bool b)
 {
     return(SYSTEM.str(b));
 }
Пример #26
0
 partial void InsertSYSTEM(SYSTEM instance);
Пример #27
0
 public static string valueOf(bool b)
 {
     return(SYSTEM.str(b));
 }
Пример #28
0
 public static string valueOf(char c)
 {
     return(SYSTEM.str(c));
 }
Пример #29
0
 public static string valueOf(object o)
 {
     return(SYSTEM.str(o));
 }
Пример #30
0
 public static string valueOf(int i)
 {
     return(SYSTEM.str(i));
 }
Пример #31
0
 public static string valueOf(double d)
 {
     return(SYSTEM.str(d));
 }
        public string UploadFiles()
        {
            int iUploadedCnt = 0;

            string sPath = "";

            sPath = System.Web.Hosting.HostingEnvironment.MapPath("~/Content/attachment/");

            if (!Directory.Exists(sPath))

            {
                Directory.CreateDirectory(sPath);
            }

            if (!Directory.Exists(sPath))

            {
                Directory.CreateDirectory(sPath);
            }

            System.Web.HttpFileCollection hfc = System.Web.HttpContext.Current.Request.Files;
            for (int iCnt = 0; iCnt <= hfc.Count - 1; iCnt++)
            {
                System.Web.HttpPostedFile hpf = hfc[iCnt];

                if (hpf.ContentLength > 0)
                {
                    if (!System.IO.File.Exists(sPath + Path.GetFileName(hpf.FileName)))

                    {
                        hpf.SaveAs(sPath + Path.GetFileName(hpf.FileName));

                        if (Path.GetExtension(sPath + hpf.FileName) == ".docx")
                        {
                            SYSTEM.ConvertWordtoPDF(sPath + Path.GetFileName(hpf.FileName));
                        }

                        iUploadedCnt = iUploadedCnt + 1;
                    }
                    else

                    {
                        FileInfo f = new FileInfo(sPath + Path.GetFileName(hpf.FileName));

                        f.Delete();

                        hpf.SaveAs(sPath + Path.GetFileName(hpf.FileName));

                        iUploadedCnt = iUploadedCnt + 1;
                    }
                }
            }

            if (iUploadedCnt > 0)
            {
                return(iUploadedCnt + " Files Uploaded Successfully");
            }
            else

            {
                return("Upload Failed");
            }
        }
Пример #33
0
 internal PostQuerySyntax(string EntityName, SYSTEM parent)
 {
     this.CollectionName = EntityName;
     this.parent         = parent;
     Entity = new List <ValueField>();
 }