Example #1
0
 public Script(string path, HybrasylScriptProcessor processor)
 {
     Path             = path;
     Compiled         = null;
     Source           = null;
     Processor        = processor;
     Disabled         = false;
     CompilationError = string.Empty;
     LastRuntimeError = string.Empty;
 }
Example #2
0
 public Script(string path, HybrasylScriptProcessor processor)
 {
     Path = path;
     Compiled = null;
     Source = null;
     Processor = processor;
     Disabled = false;
     CompilationError = String.Empty;
     LastRuntimeError = String.Empty;
 }
Example #3
0
        public World(int port)
            : base(port)
        {
            Maps = new Dictionary<ushort, Map>();
            WorldMaps = new Dictionary<int, WorldMap>();
            Items = new Dictionary<int, item>();
            Skills = new Dictionary<int, SkillTemplate>();
            Spells = new Dictionary<int, SpellTemplate>();
            Monsters = new Dictionary<int, MonsterTemplate>();
            Merchants = new Dictionary<int, MerchantTemplate>();
            Methods = new Dictionary<string, MethodInfo>();
            Objects = new Dictionary<uint, WorldObject>();
            Users = new Dictionary<string, User>(StringComparer.CurrentCultureIgnoreCase);
            MapPoints = new Dictionary<Int64, MapPoint>();
            Metafiles = new Dictionary<string, CompiledMetafile>();
            Nations = new Dictionary<string, nation>();
            Portraits = new Dictionary<string, string>();
            GlobalSequences = new List<DialogSequence>();

            GlobalSequencesCatalog = new Dictionary<String, DialogSequence>();
            ItemCatalog = new Dictionary<Tuple<Sex, String>, item>();
            MapCatalog = new Dictionary<String, Map>();

            ScriptProcessor = new HybrasylScriptProcessor(this);
            MessageQueue = new BlockingCollection<HybrasylMessage>(new ConcurrentQueue<HybrasylMessage>());
            ActiveUsers = new ConcurrentDictionary<long, User>();
            ActiveUsersByName = new ConcurrentDictionary<String, long>();

            // Timers = new ConcurrentBag<Timer>();
        }