Example #1
0
 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>();
 }
Example #2
0
 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>();
 }