Skip to content

Commit

Permalink
Fix #7: Add AsmEventBus but hasn't been tested.
Browse files Browse the repository at this point in the history
  • Loading branch information
fxzjshm committed Feb 8, 2016
1 parent 96549a0 commit 43d3998
Show file tree
Hide file tree
Showing 41 changed files with 2,225 additions and 340 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,6 @@ SourceHanSansCN-Normal.ttf
BAWFConfig.properties
org.eclipse.jdt.core.prefs
org.springsource.ide.eclipse.gradle.core.import.prefs
org.springsource.ide.eclipse.gradle.core.prefs
org.springsource.ide.eclipse.gradle.core.prefs
.settings/
.project
34 changes: 0 additions & 34 deletions android/.project

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import android.os.Bundle;
import dalvik.system.DexClassLoader;
import net.hakugyokurou.aeb.strategy.EnumInvokerGenerator;

import java.io.File;
import java.io.FileInputStream;
Expand All @@ -13,7 +14,7 @@
import com.badlogic.gdx.files.FileHandle;
import com.entermoor.blackandwhiteforest.BlackAndWhiteForest;
import com.entermoor.blackandwhiteforest.api.IBAWFPlugin;
import com.entermoor.blackandwhiteforest.event.BAWFEventBus;
import com.entermoor.blackandwhiteforest.event.BAWFAutoEventBus;
import com.entermoor.blackandwhiteforest.util.BAWFConfig;
import com.entermoor.blackandwhiteforest.util.BAWFCrashHandler;

Expand All @@ -26,7 +27,7 @@ protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
initialize(BlackAndWhiteForest.INSTANSE, config);
BlackAndWhiteForest.eventBus = new BAWFEventBus();
BlackAndWhiteForest.eventBus = new BAWFAutoEventBus(EnumInvokerGenerator.REFLECT);
BlackAndWhiteForest.config = new BAWFConfig();
BlackAndWhiteForest.toInitList.add(new IBAWFPlugin() {

Expand Down

This file was deleted.

18 changes: 0 additions & 18 deletions core/.project

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ public class BlackAndWhiteForest extends Game {

public static final BlackAndWhiteForest INSTANSE = new BlackAndWhiteForest();

/** Will be null in Html5 and iOS. */
/** Will be null in GWT. */
public static IBAWFEventBus eventBus;
/** Will be null in Html5. */
/** Will be null in GWT. */
public static IBAWFConfig config;

public static List<IBAWFPlugin> toInitList = new ArrayList<IBAWFPlugin>();
Expand Down

This file was deleted.

37 changes: 37 additions & 0 deletions core/src/com/entermoor/blackandwhiteforest/util/BAWFSovery.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package com.entermoor.blackandwhiteforest.util;

import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.utils.Array;
import com.badlogic.gdx.utils.XmlReader.Element;

import magory.svg.Sovery;

public class BAWFSovery extends Sovery{

@Override
public void newImage(String name, Element el, float xxx, float yyy, float width, float height, float rr) {
// TODO Auto-generated method stub

}

@Override
public void newRect(String name, Element el, float xxx, float yyy, float width, float height, float rr) {
// TODO Auto-generated method stub

}

@Override
public void newText(String text, Element el, float xxx, float yyy, float width, float height, float rr,
Color color) {
// TODO Auto-generated method stub

}

@Override
public void newPath(Array<Vector2> path, Element el, String title) {
// TODO Auto-generated method stub

}

}
25 changes: 0 additions & 25 deletions desktop/.project

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,17 @@
import com.badlogic.gdx.files.FileHandle;
import com.entermoor.blackandwhiteforest.BlackAndWhiteForest;
import com.entermoor.blackandwhiteforest.api.IBAWFPlugin;
import com.entermoor.blackandwhiteforest.event.BAWFEventBus;
import com.entermoor.blackandwhiteforest.event.BAWFAutoEventBus;
import com.entermoor.blackandwhiteforest.util.BAWFConfig;
import com.entermoor.blackandwhiteforest.util.BAWFCrashHandler;

import net.hakugyokurou.aeb.strategy.EnumInvokerGenerator;

public class DesktopLauncher {
public static void main (String[] arg) {
LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();

BlackAndWhiteForest.eventBus=new BAWFEventBus();
BlackAndWhiteForest.eventBus = new BAWFAutoEventBus(EnumInvokerGenerator.ASM);
BlackAndWhiteForest.config = new BAWFConfig();

BlackAndWhiteForest.toInitList.add(new IBAWFPlugin() {
Expand Down
69 changes: 0 additions & 69 deletions desktop/src/com/entermoor/blackandwhiteforest/util/BAWFConfig.java

This file was deleted.

19 changes: 0 additions & 19 deletions ios/.project

This file was deleted.

4 changes: 4 additions & 0 deletions ios/src/com/entermoor/blackandwhiteforest/IOSLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@
import com.badlogic.gdx.backends.iosrobovm.IOSApplication;
import com.badlogic.gdx.backends.iosrobovm.IOSApplicationConfiguration;
import com.entermoor.blackandwhiteforest.BlackAndWhiteForest;
import com.entermoor.blackandwhiteforest.event.BAWFAutoEventBus;
import com.entermoor.blackandwhiteforest.util.BAWFConfig;

import net.hakugyokurou.aeb.strategy.EnumInvokerGenerator;

public class IOSLauncher extends IOSApplication.Delegate {
@Override
protected IOSApplication createApplication() {
IOSApplicationConfiguration config = new IOSApplicationConfiguration();
BlackAndWhiteForest.config = new BAWFConfig();
BlackAndWhiteForest.eventBus = new BAWFAutoEventBus(EnumInvokerGenerator.REFLECT);
return new IOSApplication(BlackAndWhiteForest.INSTANSE, config);
}

Expand Down
Loading

0 comments on commit 43d3998

Please sign in to comment.