예제 #1
0
            private CompiledReplacementRule GetCompiledReplacementRule(RawReplacementRule replacementRule)
            {
                int moleculeID        = moleculeIDs.GetID(replacementRule.Molecule);
                var replacementString = GetMoleculeString(replacementRule.Replacement);

                return(new(moleculeID, replacementString));
            }
예제 #2
0
 private void RegisterMolecules(RawReplacementRule rule)
 {
     RegisterMolecules(rule.Molecule);
     RegisterMolecules(rule.Replacement);
 }