Beispiel #1
0
 public ScriptProcessor(World world)
 {
     World = new HybrasylWorld(world);
     // Register UserData types for MoonScript
     UserData.RegisterAssembly(typeof(Game).Assembly);
     UserData.RegisterType <Xml.Gender>();
     UserData.RegisterType <LegendIcon>();
     UserData.RegisterType <LegendColor>();
     UserData.RegisterType <LegendMark>();
     UserData.RegisterType <DateTime>();
     UserData.RegisterType <TimeSpan>();
     _scripts = new Dictionary <string, List <Script> >();
 }
Beispiel #2
0
 public HybrasylMonster(Monster monster)
 {
     Monster = monster;
     World   = new HybrasylWorld(monster.World);
     Map     = new HybrasylMap(monster.Map);
 }