Exemple #1
0
        //public override void HandleVars(Dictionary<string, object> globals) { } // no-op

        public override ChatEvent Fire(ChatRuntime cr)
        {
            Set clone = (Set)this.Copy();

            Substitutor.ReplaceVars(ref clone.Value, cr.globals);
            cr.Globals()[Text] = Value; // set the global var
            return(new ChatEvent(clone));
        }