Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial Release of 1.0.0 #61

Open
wants to merge 33 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
0f17870
Initital reformatting
rainbowdashlabs May 13, 2021
cdab585
Drop maven
rainbowdashlabs May 15, 2021
b6b6e37
Migrate to gradle
rainbowdashlabs May 15, 2021
e9d1d14
Introduce node mob builder api
rainbowdashlabs May 15, 2021
1037252
Initital implementation of mob behaviour via node system
rainbowdashlabs May 15, 2021
5871984
Move eldoutil to global import scope
rainbowdashlabs May 15, 2021
10da6a1
Remove lombok var. I want java 11 qwq
rainbowdashlabs May 15, 2021
d0861c8
Add DamageCauseContext
rainbowdashlabs May 16, 2021
7428a16
Adjust build settings for artifact publishing
rainbowdashlabs May 16, 2021
8f57d6c
Adjust and cleanup nodes
rainbowdashlabs May 16, 2021
3d9f523
setup idea
rainbowdashlabs May 16, 2021
e71d73e
Add clear equipment method
rainbowdashlabs May 16, 2021
4ef3df7
Rework Actioncontext to generic action container with type resolving …
rainbowdashlabs May 21, 2021
5707d3c
Remove idea again completely
rainbowdashlabs May 21, 2021
5183b4a
Adjust repositories to use eldonexus proxies
rainbowdashlabs May 21, 2021
599ade0
Cleanup build file
rainbowdashlabs May 21, 2021
17ec315
Remove idea again
rainbowdashlabs May 21, 2021
8013511
Remove mob related stuff from api and core
rainbowdashlabs May 23, 2021
a72b268
Initial implementation of node system and serialization
rainbowdashlabs May 23, 2021
4fdaab9
Start of web service implementation
rainbowdashlabs May 23, 2021
d7b66ef
Update workflow, build files and other project related stuff
rainbowdashlabs May 23, 2021
8c14fb4
Fix microshit again
rainbowdashlabs May 23, 2021
23e5aaf
Improve serialization and flexible node editing
rainbowdashlabs May 24, 2021
c003367
Implement missing retrieval and info routes
rainbowdashlabs May 24, 2021
53a9e8c
Introduce BloodMobType to wrap entity type with valid types and creat…
rainbowdashlabs May 28, 2021
374ae9c
Add missing endpoints, reorder and write small documentation
rainbowdashlabs May 28, 2021
b47cab8
Improve Serialization
rainbowdashlabs May 30, 2021
a13d0ef
Add global drops and improve and refactor web module
rainbowdashlabs May 30, 2021
fdcab4f
Update workflow
rainbowdashlabs May 30, 2021
f1bef18
Update readme
rainbowdashlabs Jun 5, 2021
084a48a
Add some bugfixes
rainbowdashlabs Jun 22, 2021
d566c69
Add configuration
rainbowdashlabs Aug 7, 2021
8836ca0
Add api root
rainbowdashlabs Aug 7, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/publish_to_nexus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish to Nexus

on:
workflow_dispatch:
push:
branches:
- master
- dev*
- feature/*
- release/*

jobs:
build:
environment: build
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]
- name: Set up JDK 15
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 15
- name: Build with Gradle
run: ./gradlew --build-cache build
- name: Test with Gradle
run: ./gradlew test
- name: Publish to eldonexus
run: ./gradlew publishMavenPublicationToEldoNexusRepository
env:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
22 changes: 22 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Verify state

on:
push:
pull_request:
types: [opened, ready_for_review, review_requested, edited]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]
- name: Set up JDK 15
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 15
- name: Build with Gradle
run: ./gradlew --build-cache build
- name: Test with Gradle
run: ./gradlew test
109 changes: 25 additions & 84 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,99 +1,40 @@
# Eclipse stuff
/.classpath
/.project
/.settings

# netbeans
/nbproject

# we use maven!
/build.xml

# maven
/target

# vim
.*.sw[a-p]

# various other potential build files
/build
/bin
/dist
/manifest.mf

# Mac filesystem dust
/.DS_Store

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml
# Remove config
/config/
/logs/
.idea/
.gradle
**/build/
!src/**/build/

# Gradle
.idea/**/gradle.xml
.idea/**/libraries
# Ignore Gradle GUI config
gradle-app.setting

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar

# CMake
cmake-build-*/
# Cache of project
.gradletasknamecache

# Mongo Explorer plugin
.idea/**/mongoSettings.xml
*.iml
*.ipr

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

# Intellij
.idea/
*.iml
# CMake
cmake-build-*/

# Maven
log/
target/

pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
.mvn/wrapper/maven-wrapper.jar
11 changes: 11 additions & 0 deletions BloodNight-api/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
plugins {
java
id("de.eldoria.library-conventions")
}

description = "BloodNight-api"

java{
withJavadocJar()
withSourcesJar()
}
14 changes: 0 additions & 14 deletions BloodNight-api/pom.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,80 +8,75 @@
* @since 0.8
*/
public interface IBloodNightAPI {
/**
* Checks if a blood night is active.
*
* @param world world
*
* @return true if a blood night is active.
*/
boolean isBloodNightActive(World world);
/**
* Checks if a blood night is active.
*
* @param world world
* @return true if a blood night is active.
*/
boolean isBloodNightActive(World world);

/**
* Force the next night to be a blood night in a world.
* <p>
* This will not set the time in the world.
*
* @param world world
*/
void forceNight(World world);
/**
* Force the next night to be a blood night in a world.
* <p>
* This will not set the time in the world.
*
* @param world world
*/
void forceNight(World world);

/**
* Cancels a blood night a world if one is active.
*
* @param world world
*/
void cancelNight(World world);
/**
* Cancels a blood night a world if one is active.
*
* @param world world
*/
void cancelNight(World world);

/**
* Get all worlds where a blood night is currently active.
*
* @return set of worlds.
*/
Set<World> getBloodWorlds();
/**
* Get all worlds where a blood night is currently active.
*
* @return set of worlds.
*/
Set<World> getBloodWorlds();

/**
* Returns how many seconds of the blood night are left.
*
* @param world the world to check
*
* @return the amount of seconds or 0 if not blood night is active.
*/
int getSecondsLeft(World world);
/**
* Returns how many seconds of the blood night are left.
*
* @param world the world to check
* @return the amount of seconds or 0 if not blood night is active.
*/
int getSecondsLeft(World world);

/**
* Get the percent of blood night duration left.
* <p>
* The start is 100 and the end is 0.
* <p>
* If no blood night is active this method will always return 0.
*
* @param world the world to check
*
* @return the percent between 100 and 0.
*/
double getPercentleft(World world);
/**
* Get the percent of blood night duration left.
* <p>
* The start is 100 and the end is 0.
* <p>
* If no blood night is active this method will always return 0.
*
* @param world the world to check
* @return the percent between 100 and 0.
*/
double getPercentleft(World world);

/**
* Get the probability of the next night to become a blood night.
* <p>
* Calling this function is equal to {@link #nextProbability(World, int)} with offset 1;
*
* @param world world to check
*
* @return probability between 0 and 100. Where 100 is a guaranteed blood night.
*/
default int nextProbability(World world) {
return nextProbability(world, 1);
}
/**
* Get the probability of the next night to become a blood night.
* <p>
* Calling this function is equal to {@link #nextProbability(World, int)} with offset 1;
*
* @param world world to check
* @return probability between 0 and 100. Where 100 is a guaranteed blood night.
*/
default int nextProbability(World world) {
return nextProbability(world, 1);
}

/**
* Get the probability of the next night to become a blood night.
*
* @param world world to check
* @param offset offset of nights. The next night has a offset of 1. The last night has a offset of 0.
*
* @return probability between 0 and 100. Where 100 is a guaranteed blood night.
*/
int nextProbability(World world, int offset);
/**
* Get the probability of the next night to become a blood night.
*
* @param world world to check
* @param offset offset of nights. The next night has a offset of 1. The last night has a offset of 0.
* @return probability between 0 and 100. Where 100 is a guaranteed blood night.
*/
int nextProbability(World world, int offset);
}
Loading