Added files
This commit is contained in:
parent
fe38784d9c
commit
b9a1f4e97c
122
.gitignore
vendored
Normal file
122
.gitignore
vendored
Normal file
@ -0,0 +1,122 @@
|
|||||||
|
## Gradle:
|
||||||
|
.gradle/
|
||||||
|
gradle-app.setting
|
||||||
|
/build/
|
||||||
|
/pixel/build/
|
||||||
|
|
||||||
|
|
||||||
|
## Java:
|
||||||
|
*.class
|
||||||
|
*.war
|
||||||
|
*.ear
|
||||||
|
hs_err_pid*
|
||||||
|
.attach_pid*
|
||||||
|
|
||||||
|
|
||||||
|
## IntelliJ, Android Studio:
|
||||||
|
.idea/
|
||||||
|
*.ipr
|
||||||
|
*.iws
|
||||||
|
*.iml
|
||||||
|
|
||||||
|
## Eclipse:
|
||||||
|
.classpath
|
||||||
|
.project
|
||||||
|
.metadata/
|
||||||
|
/android/bin/
|
||||||
|
/core/bin/
|
||||||
|
/lwjgl2/bin/
|
||||||
|
/lwjgl3/bin/
|
||||||
|
/html/bin/
|
||||||
|
/teavm/bin/
|
||||||
|
/ios/bin/
|
||||||
|
/ios-moe/bin/
|
||||||
|
/headless/bin/
|
||||||
|
/server/bin/
|
||||||
|
/shared/bin/
|
||||||
|
*.tmp
|
||||||
|
*.bak
|
||||||
|
*.swp
|
||||||
|
*~.nib
|
||||||
|
.settings/
|
||||||
|
.loadpath
|
||||||
|
.externalToolBuilders/
|
||||||
|
*.launch
|
||||||
|
|
||||||
|
|
||||||
|
## NetBeans:
|
||||||
|
|
||||||
|
/nbproject/private/
|
||||||
|
/android/nbproject/private/
|
||||||
|
/core/nbproject/private/
|
||||||
|
/lwjgl2/nbproject/private/
|
||||||
|
/lwjgl3/nbproject/private/
|
||||||
|
/html/nbproject/private/
|
||||||
|
/teavm/nbproject/private/
|
||||||
|
/ios/nbproject/private/
|
||||||
|
/ios-moe/nbproject/private/
|
||||||
|
/headless/nbproject/private/
|
||||||
|
/server/nbproject/private/
|
||||||
|
/shared/nbproject/private/
|
||||||
|
|
||||||
|
/nbbuild/
|
||||||
|
/android/nbbuild/
|
||||||
|
/core/nbbuild/
|
||||||
|
/lwjgl2/nbbuild/
|
||||||
|
/lwjgl3/nbbuild/
|
||||||
|
/html/nbbuild/
|
||||||
|
/teavm/nbbuild/
|
||||||
|
/ios/nbbuild/
|
||||||
|
/ios-moe/nbbuild/
|
||||||
|
/headless/nbbuild/
|
||||||
|
/server/nbbuild/
|
||||||
|
/shared/nbbuild/
|
||||||
|
|
||||||
|
/dist/
|
||||||
|
/android/dist/
|
||||||
|
/core/dist/
|
||||||
|
/lwjgl2/dist/
|
||||||
|
/lwjgl3/dist/
|
||||||
|
/html/dist/
|
||||||
|
/teavm/dist/
|
||||||
|
/ios/dist/
|
||||||
|
/ios-moe/dist/
|
||||||
|
/headless/dist/
|
||||||
|
/server/dist/
|
||||||
|
/shared/dist/
|
||||||
|
|
||||||
|
/nbdist/
|
||||||
|
/android/nbdist/
|
||||||
|
/core/nbdist/
|
||||||
|
/lwjgl2/nbdist/
|
||||||
|
/lwjgl3/nbdist/
|
||||||
|
/html/nbdist/
|
||||||
|
/teavm/nbdist/
|
||||||
|
/ios/nbdist/
|
||||||
|
/ios-moe/nbdist/
|
||||||
|
/headless/nbdist/
|
||||||
|
/server/nbdist/
|
||||||
|
/shared/nbdist/
|
||||||
|
|
||||||
|
nbactions.xml
|
||||||
|
nb-configuration.xml
|
||||||
|
|
||||||
|
## OS-Specific:
|
||||||
|
.DS_Store
|
||||||
|
Thumbs.db
|
||||||
|
|
||||||
|
## Miscellaneous:
|
||||||
|
*~
|
||||||
|
*.*#
|
||||||
|
*#*#
|
||||||
|
/assets/assets.txt
|
||||||
|
|
||||||
|
## Special cases:
|
||||||
|
|
||||||
|
## There is a resource-config.json file generated by nativeimage.gradle if you use Graal Native Image.
|
||||||
|
## Some usage may need extra resource configuration in a different file with the same name.
|
||||||
|
## You could also add that configuration to the text in nativeimage.gradle .
|
||||||
|
## You should delete or comment out the next line if you have configuration in a different resource-config.json .
|
||||||
|
**/resource-config.json
|
||||||
|
|
||||||
|
credentials.properties
|
146
next.xml
Normal file
146
next.xml
Normal file
@ -0,0 +1,146 @@
|
|||||||
|
<property name="DrawBounds" access="public" returnType="TinyRect">
|
||||||
|
<getter>
|
||||||
|
<body>
|
||||||
|
<statements>
|
||||||
|
<variabledeclaration name="result" initialization="default(TinyRect)" />
|
||||||
|
<variabledeclaration name="screenWidth" initialization="graphics.GraphicsDevice.Viewport.Width" />
|
||||||
|
<variabledeclaration name="screenHeight" initialization="graphics.GraphicsDevice.Viewport.Height" />
|
||||||
|
<if>
|
||||||
|
<condition>
|
||||||
|
<binaryoperation operator="&&">
|
||||||
|
<binaryoperation operator="==">
|
||||||
|
<left>Env.PLATFORM</left>
|
||||||
|
<right>Platform.Android</right>
|
||||||
|
</binaryoperation>
|
||||||
|
<binaryoperation operator=">">
|
||||||
|
<left>screenHeight</left>
|
||||||
|
<right>480</right>
|
||||||
|
</binaryoperation>
|
||||||
|
</binaryoperation>
|
||||||
|
</condition>
|
||||||
|
<body>
|
||||||
|
<assignment>
|
||||||
|
<left>screenWidth</left>
|
||||||
|
<right>
|
||||||
|
<binaryoperation operator="*">
|
||||||
|
<left>screenHeight</left>
|
||||||
|
<binaryoperation operator="/">
|
||||||
|
<left>640f</left>
|
||||||
|
<right>480f</right>
|
||||||
|
</binaryoperation>
|
||||||
|
</binaryoperation>
|
||||||
|
</right>
|
||||||
|
</assignment>
|
||||||
|
</body>
|
||||||
|
</if>
|
||||||
|
<if>
|
||||||
|
<condition>
|
||||||
|
<binaryoperation operator="&&">
|
||||||
|
<binaryoperation operator="!=">
|
||||||
|
<left>screenWidth</left>
|
||||||
|
<right>0.0</right>
|
||||||
|
</binaryoperation>
|
||||||
|
<binaryoperation operator="!=">
|
||||||
|
<left>screenHeight</left>
|
||||||
|
<right>0.0</right>
|
||||||
|
</binaryoperation>
|
||||||
|
</binaryoperation>
|
||||||
|
</condition>
|
||||||
|
<body>
|
||||||
|
<variabledeclaration name="num3" />
|
||||||
|
<variabledeclaration name="num4" />
|
||||||
|
<variabledeclaration name="test" />
|
||||||
|
<assignment>
|
||||||
|
<left>test</left>
|
||||||
|
<right>
|
||||||
|
<ternaryoperator>
|
||||||
|
<condition>
|
||||||
|
<binaryoperation operator="=="><left>1</left><right>1</right></binaryoperation>
|
||||||
|
</condition>
|
||||||
|
<iftrue>1</iftrue>
|
||||||
|
<iffalse>2</iffalse>
|
||||||
|
</ternaryoperator>
|
||||||
|
</right>
|
||||||
|
</assignment>
|
||||||
|
<if>
|
||||||
|
<condition>
|
||||||
|
<binaryoperation operator="<">
|
||||||
|
<binaryoperation operator="/">
|
||||||
|
<left>screenWidth</left>
|
||||||
|
<right>screenHeight</right>
|
||||||
|
</binaryoperation>
|
||||||
|
<right>1.3333333333333333</right>
|
||||||
|
</binaryoperation>
|
||||||
|
</condition>
|
||||||
|
<body>
|
||||||
|
<assignment>
|
||||||
|
<left>num3</left>
|
||||||
|
<right>640.0</right>
|
||||||
|
</assignment>
|
||||||
|
<assignment>
|
||||||
|
<left>num4</left>
|
||||||
|
<right>
|
||||||
|
<binaryoperation operator="*">
|
||||||
|
<left>640.0</left>
|
||||||
|
<binaryoperation operator="/">
|
||||||
|
<left>screenHeight</left>
|
||||||
|
<right>screenWidth</right>
|
||||||
|
</binaryoperation>
|
||||||
|
</binaryoperation>
|
||||||
|
</right>
|
||||||
|
</assignment>
|
||||||
|
</body>
|
||||||
|
</if>
|
||||||
|
<else>
|
||||||
|
<body>
|
||||||
|
<assignment>
|
||||||
|
<left>num3</left>
|
||||||
|
<right>
|
||||||
|
<binaryoperation operator="*">
|
||||||
|
<left>480.0</left>
|
||||||
|
<binaryoperation operator="/">
|
||||||
|
<left>screenWidth</left>
|
||||||
|
<right>screenHeight</right>
|
||||||
|
</binaryoperation>
|
||||||
|
</binaryoperation>
|
||||||
|
</right>
|
||||||
|
</assignment>
|
||||||
|
<assignment>
|
||||||
|
<left>num4</left>
|
||||||
|
<right>480.0</right>
|
||||||
|
</assignment>
|
||||||
|
</body>
|
||||||
|
</else>
|
||||||
|
<assignment>
|
||||||
|
<left>result.LeftX</left>
|
||||||
|
<right>0</right>
|
||||||
|
</assignment>
|
||||||
|
<assignment>
|
||||||
|
<left>result.RightX</left>
|
||||||
|
<right>
|
||||||
|
<typecast type="int">
|
||||||
|
<value>num3</value>
|
||||||
|
</typecast>
|
||||||
|
</right>
|
||||||
|
</assignment>
|
||||||
|
<assignment>
|
||||||
|
<left>result.TopY</left>
|
||||||
|
<right>0</right>
|
||||||
|
</assignment>
|
||||||
|
<assignment>
|
||||||
|
<left>result.BottomY</left>
|
||||||
|
<right>
|
||||||
|
<typecast type="int">
|
||||||
|
<value>num4</value>
|
||||||
|
</typecast>
|
||||||
|
</right>
|
||||||
|
</assignment>
|
||||||
|
</body>
|
||||||
|
</if>
|
||||||
|
<return>
|
||||||
|
<value>result</value>
|
||||||
|
</return>
|
||||||
|
</statements>
|
||||||
|
</body>
|
||||||
|
</getter>
|
||||||
|
</property>
|
106
next.xsd
Normal file
106
next.xsd
Normal file
@ -0,0 +1,106 @@
|
|||||||
|
<!-- XSD schema for the XML representation -->
|
||||||
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
||||||
|
<xs:element name="property">
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:element name="getter" type="getterType"/>
|
||||||
|
</xs:sequence>
|
||||||
|
<xs:attribute name="name" type="xs:string" use="required"/>
|
||||||
|
<xs:attribute name="access" type="xs:string" use="required"/>
|
||||||
|
<xs:attribute name="returnType" type="xs:string" use="required"/>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
|
||||||
|
<xs:complexType name="getterType">
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:element name="body" type="bodyType"/>
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:complexType>
|
||||||
|
|
||||||
|
<xs:complexType name="bodyType">
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:element name="statements" type="statementsType"/>
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:complexType>
|
||||||
|
|
||||||
|
<xs:complexType name="statementsType">
|
||||||
|
<xs:choice maxOccurs="unbounded">
|
||||||
|
<xs:element name="variabledeclaration" type="variableDeclarationType"/>
|
||||||
|
<xs:element name="if" type="ifType"/>
|
||||||
|
<xs:element name="else" type="elseType"/>
|
||||||
|
<xs:element name="assignment" type="assignmentType"/>
|
||||||
|
<xs:element name="return" type="returnType"/>
|
||||||
|
<xs:element name="ternaryoperator" type="ternaryOperatorType"/>
|
||||||
|
</xs:choice>
|
||||||
|
</xs:complexType>
|
||||||
|
|
||||||
|
<xs:complexType name="variableDeclarationType">
|
||||||
|
<xs:attribute name="name" type="xs:string" use="required"/>
|
||||||
|
<xs:attribute name="initialization" type="xs:string" use="optional"/>
|
||||||
|
</xs:complexType>
|
||||||
|
|
||||||
|
<xs:complexType name="ifType">
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:element name="condition" type="conditionType"/>
|
||||||
|
<xs:element name="body" type="bodyType"/>
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:complexType>
|
||||||
|
|
||||||
|
<xs:complexType name="elseType">
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:element name="body" type="bodyType"/>
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:complexType>
|
||||||
|
|
||||||
|
<xs:complexType name="conditionType">
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:element name="binaryoperation" type="binaryOperationType"/>
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:complexType>
|
||||||
|
|
||||||
|
<xs:complexType name="assignmentType">
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:element name="left" type="xs:string"/>
|
||||||
|
<xs:element name="right" type="rightType"/>
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:complexType>
|
||||||
|
|
||||||
|
<xs:complexType name="rightType">
|
||||||
|
<xs:choice>
|
||||||
|
<xs:element name="binaryoperation" type="binaryOperationType"/>
|
||||||
|
<xs:element name="typecast" type="typeCastType"/>
|
||||||
|
<xs:element name="expression" type="xs:string"/>
|
||||||
|
<xs:element name="ternaryoperator" type="ternaryOperatorType"/>
|
||||||
|
<xs:element name="value" type="xs:string"/>
|
||||||
|
</xs:choice>
|
||||||
|
</xs:complexType>
|
||||||
|
|
||||||
|
<xs:complexType name="binaryOperationType">
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:element name="left" type="xs:string"/>
|
||||||
|
<xs:element name="right" type="xs:string"/>
|
||||||
|
</xs:sequence>
|
||||||
|
<xs:attribute name="operator" type="xs:string" use="required"/>
|
||||||
|
</xs:complexType>
|
||||||
|
|
||||||
|
<xs:complexType name="typeCastType">
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:element name="value" type="xs:string"/>
|
||||||
|
</xs:sequence>
|
||||||
|
<xs:attribute name="type" type="xs:string" use="required"/>
|
||||||
|
</xs:complexType>
|
||||||
|
|
||||||
|
<xs:complexType name="ternaryOperatorType">
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:element name="condition" type="xs:string"/>
|
||||||
|
<xs:element name="iftrue" type="rightType"/>
|
||||||
|
<xs:element name="iffalse" type="rightType"/>
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:complexType>
|
||||||
|
|
||||||
|
<xs:complexType name="returnType">
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:element name="value" type="xs:string"/>
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:schema>
|
Reference in New Issue
Block a user