public override void RecreateFromXml( LayerEditor parentLayer, XElement xml ) { base.RecreateFromXml( parentLayer, xml ); ParentLayer = parentLayer ; _properties = xml.CertainElement( @"LightProperties" ).DeserializedAs<LightProperties>( ) ; }
public LightEditor( ) { _properties=new LightProperties( ); _drawing = ObjectFactory.GetInstance<IDrawing>( ) ; }
public override void CreateInDesignMode(LayerEditor parentLayer, IEntityCreationProperties creationProperties) { ParentLayer = parentLayer ; _properties= new LightProperties { Visible=true, IsOn = true, Range=100f, Color=Color.White, FieldOfView = MathHelper.TwoPi, Intensity = 1, ShadowType = convertShadowType( ShadowType.Solid), Position = MouseStatus.WorldPosition, TextureSize = 128 } ; }