Пример #1
0
        public override bool LoadTextureItem(TextureItem textureitem)
        {
            base.LoadTextureItem(textureitem);

            if (textureitem.Layer.CustomProperties.Keys.Contains("Collision") && (bool)textureitem.Layer.CustomProperties.Keys.Contains("Collision"))
            {
                Textureobject tobj = new Textureobject(textureitem.texture);
                tobj.Position = ConvertUnits.ToSimUnits(textureitem.Position);
                AddGameObject(tobj);
            }
            return true;
        }
Пример #2
0
 public virtual void LoadTextureItem(TextureItemProperties textureitem, Layer l)
 {
     TextureItem i = new TextureItem((TextureItemProperties)textureitem);
     i.load(this);
     TextureItems[textureitem.Name] = i;
 }