コード例 #1
0
        public static BaseCompendiumPageElement CreateInstance()
        {
            AlphaAreaElement image = new AlphaAreaElement();

            image.X           = 0;
            image.Y           = 0;
            image.Width       = 100;
            image.Height      = 100;
            image.Name        = "new AlphaArea";
            image.ElementType = "AlphaAreaElement";
            return(image);
        }
コード例 #2
0
        public override object Clone()
        {
            AlphaAreaElement image = new AlphaAreaElement();

            image.ElementType = this.ElementType.Clone() as string;
            image.Name = this.Name.Clone() as string;
            image.X = this.X;
            image.Y = this.Y;
            image.Z = this.Z;
            image.Width = this.Width;
            image.Height = this.Height;

            return image;
        }
コード例 #3
0
ファイル: AlphaAreaElement.cs プロジェクト: uotools/JustUO
        public static BaseCompendiumPageElement CreateInstance()
        {
            var image = new AlphaAreaElement
            {
                X           = 0,
                Y           = 0,
                Width       = 100,
                Height      = 100,
                Name        = "new AlphaArea",
                ElementType = "AlphaAreaElement"
            };

            return(image);
        }
コード例 #4
0
        public override object Clone()
        {
            AlphaAreaElement image = new AlphaAreaElement();

            image.ElementType = this.ElementType.Clone() as string;
            image.Name        = this.Name.Clone() as string;
            image.X           = this.X;
            image.Y           = this.Y;
            image.Z           = this.Z;
            image.Width       = this.Width;
            image.Height      = this.Height;

            return(image);
        }
コード例 #5
0
        //factory method
        public static BaseCompendiumPageElement CreateAlphaAreaElement(XElement elementXml)
        {
            AlphaAreaElement elementToReturn = new AlphaAreaElement();

            try
            {
                elementToReturn.Deserialize(elementXml);
            }
            catch
            {
                elementToReturn = null;
            }

            return elementToReturn;
        }
コード例 #6
0
ファイル: AlphaAreaElement.cs プロジェクト: rokann/JustUO
		public override object Clone()
		{
			var image = new AlphaAreaElement
			{
				ElementType = ElementType.Clone() as string,
				Name = Name.Clone() as string,
				X = X,
				Y = Y,
				Z = Z,
				Width = Width,
				Height = Height
			};

			return image;
		}
コード例 #7
0
ファイル: AlphaAreaElement.cs プロジェクト: uotools/JustUO
        //factory method
        public static BaseCompendiumPageElement CreateAlphaAreaElement(XElement elementXml)
        {
            var elementToReturn = new AlphaAreaElement();

            try
            {
                elementToReturn.Deserialize(elementXml);
            }
            catch
            {
                elementToReturn = null;
            }

            return(elementToReturn);
        }
コード例 #8
0
ファイル: AlphaAreaElement.cs プロジェクト: uotools/JustUO
        public override object Clone()
        {
            var image = new AlphaAreaElement
            {
                ElementType = ElementType.Clone() as string,
                Name        = Name.Clone() as string,
                X           = X,
                Y           = Y,
                Z           = Z,
                Width       = Width,
                Height      = Height
            };

            return(image);
        }
コード例 #9
0
 public static BaseCompendiumPageElement CreateInstance()
 {
     AlphaAreaElement image = new AlphaAreaElement();
     image.X = 0;
     image.Y = 0;
     image.Width = 100;
     image.Height = 100;
     image.Name = "new AlphaArea";
     image.ElementType = "AlphaAreaElement";
     return image;
 }
コード例 #10
0
ファイル: AlphaAreaElement.cs プロジェクト: rokann/JustUO
		public static BaseCompendiumPageElement CreateInstance()
		{
			var image = new AlphaAreaElement
			{
				X = 0,
				Y = 0,
				Width = 100,
				Height = 100,
				Name = "new AlphaArea",
				ElementType = "AlphaAreaElement"
			};

			return image;
		}