Skip to content

Commit f9e2b8f

Browse files
Merge pull request #107 from DaanVanYperen/develop
Develop
2 parents 6edce7f + e17777f commit f9e2b8f

File tree

15 files changed

+36
-27
lines changed

15 files changed

+36
-27
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## Version: 1.2.0-SNAPSHOT
4+
5+
- Upgraded for Artemis-odb 2.0.0, LibGDX 1.9.4
6+
37
## Version: 1.1.0
48

59
- Upgraded for Artemis-odb 1.0.0, LibGDX 1.7.0.

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ with all fancy features, check out these instead:
1818
- [playn-artemis-quickstart](https://github.com/DaanVanYperen/playn-artemis-quickstart)
1919

2020
### Library Versions
21-
Artemis-odb 1.0.x, (Optional) LibGDX 1.6+, tested with 1.7.
21+
Artemis-odb 2.0.x, (Optional) LibGDX 1.9+, tested with 1.9.4.
2222

2323
### License
2424
The primary license for this code is MIT.
@@ -32,21 +32,21 @@ Some stubs from LibGDX are licensed under Apache 2.0.
3232
<dependency>
3333
<groupId>net.mostlyoriginal.artemis-odb</groupId>
3434
<artifactId>contrib-core</artifactId>
35-
<version>1.1.0</version>
35+
<version>1.2.1</version>
3636
</dependency>
3737

3838
<dependency>
3939
<groupId>net.mostlyoriginal.artemis-odb</groupId>
4040
<artifactId>contrib-eventbus</artifactId>
41-
<version>1.1.0</version>
41+
<version>1.2.1</version>
4242
</dependency>
4343
```
4444

4545
#### Gradle
4646

4747
```groovy
4848
dependencies {
49-
compile "net.mostlyoriginal.artemis-odb:contrib-core:1.1.0"
50-
compile "net.mostlyoriginal.artemis-odb:contrib-eventbus:1.1.0"
49+
compile "net.mostlyoriginal.artemis-odb:contrib-core:1.2.1"
50+
compile "net.mostlyoriginal.artemis-odb:contrib-eventbus:1.2.1"
5151
}
5252
```

contrib-benchmark/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>net.mostlyoriginal.artemis-odb</groupId>
77
<artifactId>contrib-parent</artifactId>
8-
<version>1.1.0</version>
8+
<version>1.2.1</version>
99
</parent>
1010
<artifactId>contrib-benchmark</artifactId>
1111
<packaging>jar</packaging>

contrib-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>net.mostlyoriginal.artemis-odb</groupId>
77
<artifactId>contrib-parent</artifactId>
8-
<version>1.1.0</version>
8+
<version>1.2.1</version>
99
</parent>
1010
<artifactId>contrib-core</artifactId>
1111
<packaging>jar</packaging>

contrib-core/src/main/java/net/mostlyoriginal/api/plugin/extendedcomponentmapper/M.java

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public A get(Entity e) throws ArrayIndexOutOfBoundsException {
171171

172172
@Deprecated
173173
public A getSafe(Entity e, boolean forceNewInstance) {
174-
A component = mapper.getSafe(e);
174+
A component = mapper.get(e);
175175

176176
if(component == null && forceNewInstance) {
177177
component = mapper.create(e);
@@ -184,18 +184,23 @@ public A get(int entityId) throws ArrayIndexOutOfBoundsException {
184184
return mapper.get(entityId);
185185
}
186186

187+
/**
188+
* @deprecated as of odb version 2.0.0 {@see #get} is as safe as getSafe.
189+
*/
187190
@Deprecated
188191
public A getSafe(int entityId) {
189-
return mapper.getSafe(entityId);
192+
return mapper.get(entityId);
190193
}
191194

192195
public boolean has(Entity e) throws ArrayIndexOutOfBoundsException {
193196
return mapper.has(e);
194197
}
195198

196-
@Deprecated
199+
/**
200+
* @deprecated as of odb version 2.0.0 {@see #get} is as safe as getSafe.
201+
*/
197202
public A getSafe(Entity e) {
198-
return mapper.getSafe(e);
203+
return mapper.get(e);
199204
}
200205

201206
public boolean has(int entityId) {
@@ -228,7 +233,7 @@ public A get(int entityId, boolean forceNewInstance) throws ArrayIndexOutOfBound
228233

229234
@Deprecated
230235
public A getSafe(int entityId, boolean forceNewInstance) {
231-
A component = mapper.getSafe(entityId);
236+
A component = mapper.get(entityId);
232237

233238
if(component == null && forceNewInstance) {
234239
component = mapper.create(entityId);

contrib-core/src/test/java/net/mostlyoriginal/api/system/delegate/DeferredEntityProcessingSystemTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void DeferredSystem_EntityRemoved_UnregisteredFromPrincipal() {
5555
World w = new World(config);
5656
Entity myEntity = new EntityBuilder(w).with(EmptyComponent.class).build();
5757
w.process();
58-
myEntity.edit().deleteEntity();
58+
w.deleteEntity(myEntity);
5959
w.process();
6060

6161
// ensure it gets registered with the principal

contrib-eventbus/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>net.mostlyoriginal.artemis-odb</groupId>
77
<artifactId>contrib-parent</artifactId>
8-
<version>1.1.0</version>
8+
<version>1.2.1</version>
99
</parent>
1010
<artifactId>contrib-eventbus</artifactId>
1111
<packaging>jar</packaging>

contrib-jam/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>net.mostlyoriginal.artemis-odb</groupId>
77
<artifactId>contrib-parent</artifactId>
8-
<version>1.1.0</version>
8+
<version>1.2.1</version>
99
</parent>
1010
<artifactId>contrib-jam</artifactId>
1111
<packaging>jar</packaging>

contrib-jam/src/main/java/net/mostlyoriginal/api/system/physics/CollisionSystem.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ public class CollisionSystem extends BaseSystem {
2525

2626
public final boolean overlaps( final Entity a, final Entity b)
2727
{
28-
final Bounds b1 = bm.getSafe(a);
29-
final Pos p1 = pm.getSafe(a);
30-
final Bounds b2 = bm.getSafe(b);
31-
final Pos p2 = pm.getSafe(b);
28+
final Bounds b1 = bm.get(a);
29+
final Pos p1 = pm.get(a);
30+
final Bounds b2 = bm.get(b);
31+
final Pos p2 = pm.get(b);
3232

3333
if ( b1==null || p1 ==null || b2==null || p2==null)
3434
return false;

contrib-network/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>net.mostlyoriginal.artemis-odb</groupId>
77
<artifactId>contrib-parent</artifactId>
8-
<version>1.1.0</version>
8+
<version>1.2.1</version>
99
</parent>
1010
<artifactId>contrib-network</artifactId>
1111
<packaging>jar</packaging>

contrib-plugin-operations/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>net.mostlyoriginal.artemis-odb</groupId>
77
<artifactId>contrib-parent</artifactId>
8-
<version>1.1.0</version>
8+
<version>1.2.1</version>
99
</parent>
1010

1111
<artifactId>contrib-plugin-operations</artifactId>

contrib-plugin-profiler/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>net.mostlyoriginal.artemis-odb</groupId>
77
<artifactId>contrib-parent</artifactId>
8-
<version>1.1.0</version>
8+
<version>1.2.1</version>
99
</parent>
1010

1111
<artifactId>contrib-plugin-profiler</artifactId>

contrib-plugin-profiler/src/main/java/net/mostlyoriginal/plugin/profiler/ProfilerInvocationStrategy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class ProfilerInvocationStrategy extends SystemInvocationStrategy {
2222
protected SystemProfiler[] profilers;
2323

2424
@Override
25-
protected void process (Bag<BaseSystem> systems) {
25+
protected void process () {
2626

2727
if ( !initialized )
2828
{

contrib-test-gwt/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>net.mostlyoriginal.artemis-odb</groupId>
77
<artifactId>contrib-parent</artifactId>
8-
<version>1.1.0</version>
8+
<version>1.2.1</version>
99
</parent>
1010
<artifactId>contrib-test-gwt</artifactId>
1111
<packaging>war</packaging>

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>net.mostlyoriginal.artemis-odb</groupId>
77
<artifactId>contrib-parent</artifactId>
8-
<version>1.1.0</version>
8+
<version>1.2.1</version>
99
<packaging>pom</packaging>
1010
<name>contrib-parent</name>
1111
<description>Drop-in extensions for artemis-odb. Prefab systems, components, networking, events!
@@ -15,8 +15,8 @@
1515
<properties>
1616
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1717
<asm.version>4.1</asm.version>
18-
<artemis-odb.version>[1.0.0,2.0.0)</artemis-odb.version>
19-
<libgdx.version>[1.6.0,2.0.0)</libgdx.version>
18+
<artemis-odb.version>[2.0.0,3.0.0)</artemis-odb.version>
19+
<libgdx.version>[1.9.0,2.0.0)</libgdx.version>
2020
</properties>
2121

2222
<scm>

0 commit comments

Comments
 (0)