Changes
This commit is contained in:
parent
7ed7433680
commit
354c7ecd11
@ -0,0 +1,51 @@
|
|||||||
|
/*
|
||||||
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
||||||
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
||||||
|
*/
|
||||||
|
package com.openeggbert.jxna.Microsoft.Xna.Framework;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author robertvokac
|
||||||
|
*/
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class Rectangle extends com.openeggbert.jdotnet.System.Struct<Rectangle> {
|
||||||
|
|
||||||
|
private static final Rectangle emptyRectangle = new Rectangle().reset();
|
||||||
|
|
||||||
|
public int X;
|
||||||
|
|
||||||
|
public int Y;
|
||||||
|
|
||||||
|
public int Width;
|
||||||
|
|
||||||
|
public int Height;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Rectangle copy() {
|
||||||
|
return new Rectangle(X, Y, Width, Height);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Rectangle reset() {
|
||||||
|
X = 0;
|
||||||
|
Y = 0;
|
||||||
|
Width = 0;
|
||||||
|
Height = 0;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int Left() { return X;}
|
||||||
|
|
||||||
|
public int Right() { return X + Width;}
|
||||||
|
|
||||||
|
public int Top() { return Y;}
|
||||||
|
|
||||||
|
public int Bottom() { return Y + Height;}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,18 @@
|
|||||||
|
/*
|
||||||
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
||||||
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
||||||
|
*/
|
||||||
|
package com.openeggbert.jxna.Microsoft.Xna.Framework;
|
||||||
|
|
||||||
|
import com.openeggbert.jdotnet.System.IO.Stream;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author robertvokac
|
||||||
|
*/
|
||||||
|
public class TitleContainer {
|
||||||
|
public static Stream OpenStream(String name) {
|
||||||
|
return null;//todo
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -2,7 +2,7 @@
|
|||||||
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
||||||
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
||||||
*/
|
*/
|
||||||
package com.openeggbert.jxna.Microsoft.Xna.Game;
|
package com.openeggbert.jxna.Microsoft.Xna.GameAAA;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
Reference in New Issue
Block a user