public DmlSystem(CodeBlock globalCode, DmlTimeline timeline, Dictionary<string, DmlBulletFactory> bullets) { GlobalCode = globalCode; Timeline = timeline; GlobalVars = new Dictionary<string, DmlObject>(); foreach (var bulletClass in bullets) GlobalVars[bulletClass.Key] = new DmlObject(DmlType.BulletClass, bulletClass.Value); Bullets = new List<DmlBullet>(); }
public DmlSystem(CodeBlock globalCode, DmlTimeline timeline, Dictionary <string, DmlBulletFactory> bullets) { GlobalCode = globalCode; Timeline = timeline; GlobalVars = new Dictionary <string, DmlObject>(); foreach (var bulletClass in bullets) { GlobalVars[bulletClass.Key] = new DmlObject(DmlType.BulletClass, bulletClass.Value); } Bullets = new List <DmlBullet>(); }