示例#1
0
        // Function from file: events.dm
        public bool Fire(params object[] _)
        {
            ByTable _args = new ByTable(new object[] {  }).Extend(_);


            if (this.listener != null)
            {
                _args.Apply(Lang13.BindFunc(this.listener, this.proc_name));
                return(true);
            }
            return(false);
        }
示例#2
0
        // Function from file: teleport.dm
        public virtual bool start(dynamic ateleatom = null, dynamic adestination = null, dynamic aprecision = null, dynamic afteleport = null, dynamic aeffectin = null, dynamic aeffectout = null, dynamic asoundin = null, dynamic asoundout = null, params object[] _)
        {
            ByTable _args = new ByTable(new object[] { ateleatom, adestination, aprecision, afteleport, aeffectin, aeffectout, asoundin, asoundout }).Extend(_);


            if (_args[3] == null)
            {
                _args[3] = 0;
            }

            if (_args[4] == null)
            {
                _args[4] = 1;
            }

            if (_args[5] == null)
            {
                _args[5] = null;
            }

            if (_args[6] == null)
            {
                _args[6] = null;
            }

            if (_args[7] == null)
            {
                _args[7] = null;
            }

            if (_args[8] == null)
            {
                _args[8] = null;
            }

            if (!Lang13.Bool(_args.Apply(Lang13.BindFunc(this, "initTeleport"))))
            {
                return(false);
            }
            return(true);
        }