Ejemplo n.º 1
0
 public VmfHidden(SerialisedObject obj) : base(obj)
 {
     Objects = new List <VmfObject>();
     foreach (var so in obj.Children)
     {
         var o = VmfObject.Deserialise(so);
         if (o != null)
         {
             Objects.Add(o);
         }
     }
 }
Ejemplo n.º 2
0
        public VmfEntity(SerialisedObject obj) : base(obj)
        {
            Objects = new List <VmfObject>();
            foreach (SerialisedObject so in obj.Children)
            {
                VmfObject o = Deserialise(so);
                if (o != null)
                {
                    Objects.Add(o);
                }
            }

            Properties = new Dictionary <string, string>();
            foreach (KeyValuePair <string, string> kv in obj.Properties)
            {
                if (kv.Key == null || ExcludedKeys.Contains(kv.Key.ToLower()))
                {
                    continue;
                }
                Properties[kv.Key] = kv.Value;
            }
            ClassName  = obj.Get("classname", "");
            SpawnFlags = obj.Get("spawnflags", 0);
        }