コード例 #1
0
ファイル: Subsystem.cs プロジェクト: Somnium13/SS13
        // Function from file: subsystem.dm
        public virtual void stat_entry(string msg = null)
        {
            string dwait = null;


            if (!(this.statclick != null))
            {
                this.statclick = new Obj_Effect_Statclick_Debug("Initializing...", this);
            }
            dwait = "";

            if (this.dynamic_wait)
            {
                dwait = "DWait:" + Num13.Round(this.wait, 0.1) + "ds ";
            }

            if (this.can_fire)
            {
                msg = "" + Num13.Round(this.cost, 0.01) + "ds	"+ dwait + msg;
            }
            else
            {
                msg = "OFFLINE	"+ msg;
            }
            Interface13.Stat(this.name, this.statclick.update(msg));
            return;
        }
コード例 #2
0
 // Function from file: cameranet.dm
 public void stat_entry(  )
 {
     if (!(this.statclick != null))
     {
         this.statclick = new Obj_Effect_Statclick_Debug("Initializing...", this);
     }
     Interface13.Stat(this.name, this.statclick.update("Cameras: " + GlobalVars.cameranet.cameras.len + " | Chunks: " + GlobalVars.cameranet.chunks.len));
     return;
 }
コード例 #3
0
 // Function from file: configuration.dm
 public void stat_entry(  )
 {
     if (!(this.statclick != null))
     {
         this.statclick = new Obj_Effect_Statclick_Debug("Edit", this);
     }
     Interface13.Stat("" + this.name + ":", this.statclick);
     return;
 }