コード例 #1
0
ファイル: Map.cs プロジェクト: LexTheGreat/EclipseSharp
 public Map()
 {
     this.Name           = "New Map";
     this.Music          = String.Empty;
     this.SizeX          = 30;
     this.SizeY          = 24;
     this.Revision       = 1;
     var l1 = new LayerData(this.SizeX, this.SizeY);
     l1.Name = "Ground";
     var l2 = new LayerData(this.SizeX, this.SizeY);
     l2.Name = "Mask";
     var l3 = new LayerData(this.SizeX, this.SizeY);
     l3.Name = "Fringe";
     l2.BelowPlayer = false;
     this.Layers.Add(l1);
     this.Layers.Add(l2);
     this.Layers.Add(l3);
 }
コード例 #2
0
ファイル: Map.cs プロジェクト: LexTheGreat/EclipseSharp
        public Map()
        {
            this.Name     = "New Map";
            this.Music    = String.Empty;
            this.SizeX    = 30;
            this.SizeY    = 24;
            this.Revision = 1;
            var l1 = new LayerData(this.SizeX, this.SizeY);

            l1.Name = "Ground";
            var l2 = new LayerData(this.SizeX, this.SizeY);

            l2.Name = "Mask";
            var l3 = new LayerData(this.SizeX, this.SizeY);

            l3.Name        = "Fringe";
            l2.BelowPlayer = false;
            this.Layers.Add(l1);
            this.Layers.Add(l2);
            this.Layers.Add(l3);
        }