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); }
internal PatchQuerySyntax(string EntityName, string PrimaryKey, SYSTEM parent) { this.CollectionName = EntityName; this.parent = parent; this.PrimaryKey = PrimaryKey; Entity = new List <ValueField>(); }
public void print(object o) { lock (line) { line.Append(SYSTEM.str(o)); } }
public void print(double d) { lock (line) { line.Append(SYSTEM.str(d)); } }
// public interface is thread-safe public void print(bool b) { lock (line) { line.Append(SYSTEM.str(b)); } }
public StringBuffer append(object o) { lock (content) { content.Append(SYSTEM.str(o)); } return(this); }
public StringBuffer append(bool b) { lock (content) { content.Append(SYSTEM.str(b)); } return(this); }
public StringBuffer append(double d) { lock (content) { content.Append(SYSTEM.str(d)); } return(this); }
public void println(double d) { lock (line) { line.Append(SYSTEM.str(d)); finishLine(); } }
public void println(bool b) { lock (line) { line.Append(SYSTEM.str(b)); finishLine(); } }
public void println(object o) { lock (line) { line.Append(SYSTEM.str(o)); finishLine(); } }
internal GetQuerySyntax(string FromCollectionValue, SYSTEM parent) { this.From = FromCollectionValue; this.parent = parent; SelectValues = new List <string>(); OrderByValues = new List <ORDERBY>(); WhereFilter = new List <WHERE>(); }
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()); }
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; } }
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"); } }
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); } }
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); } }
public static string toString(double d) { return(SYSTEM.str(d)); }
public StringBuilder append(System.Object o) { content.Append(SYSTEM.str(o)); return(this); }
public override string ToString() { return(SYSTEM.str(value)); }
public StringBuilder append(double d) { content.Append(SYSTEM.str(d)); return(this); }
public StringBuilder append(bool b) { content.Append(SYSTEM.str(b)); return(this); }
partial void UpdateSYSTEM(SYSTEM instance);
partial void DeleteSYSTEM(SYSTEM instance);
public static string toString(bool b) { return(SYSTEM.str(b)); }
partial void InsertSYSTEM(SYSTEM instance);
public static string valueOf(bool b) { return(SYSTEM.str(b)); }
public static string valueOf(char c) { return(SYSTEM.str(c)); }
public static string valueOf(object o) { return(SYSTEM.str(o)); }
public static string valueOf(int i) { return(SYSTEM.str(i)); }
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"); } }
internal PostQuerySyntax(string EntityName, SYSTEM parent) { this.CollectionName = EntityName; this.parent = parent; Entity = new List <ValueField>(); }