GithubHelp home page GithubHelp logo

lepinoid / bb-data-structure Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 350 KB

BlockBenchが出力するプロジェクトファイルとかをそのままクラス化するやつ

License: MIT License

Kotlin 100.00%
kotlin-multiplatform serialization kotlin blockbench

bb-data-structure's Introduction

bb-data-structure

maven

BlockBenchのプロジェクトファイル.bbmodelの情報をクラスに変換する用のライブラリ

kotlinx.serialization に対応しており,ファイルから直接読み込み,書き出しが可能

対応クラス

ClassName Type Extension
BBModelData BBProjectFile .bbmodeldata
ItemModelData ItemModel .json

Gradle

KotlinDSL:

repositories {
     maven { 
         name = "lepinoid"
         url = uri("https://lepinoid.github.io/maven-repo/")
     }
}

dependencies {
  implementation("net.lepinoid:bb-data-structure-jvm:$VERSION")
}

Multiplatform:

commonMain {
    dependencies {
        implementation("net.lepinoid:bb-data-structure:$VERSION")
    }
}

Examples

fun projectFile() {
    val bbModelData: String = //any project file string
    val decode = Json.decodeFromString<BBModelData>(BBModelData.serializer(), bbModelData)
    val encode = Json.encodeToString(BBModelData.serializer(), decode)
}

bb-data-structure's People

Contributors

renovate-bot avatar renovate[bot] avatar turtton avatar

Watchers

 avatar  avatar

bb-data-structure's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/build-and-test.yml
  • actions/checkout v4
  • actions/setup-java v4
  • gradle/wrapper-validation-action v2
  • gradle/gradle-build-action v2
.github/workflows/gradle-publish.yml
gradle
gradle.properties
settings.gradle.kts
build.gradle.kts
  • org.jetbrains.kotlin.multiplatform 1.9.23
  • org.jetbrains.kotlin.plugin.serialization 1.9.23
  • org.jetbrains.kotlinx:kotlinx-serialization-json 1.6.3
  • com.benasher44:uuid 0.8.4
  • net.lepinoid:uuid-serializer 1.2
gradle-wrapper
gradle/wrapper/gradle-wrapper.properties
  • gradle 8.5

  • Check this box to trigger a request for Renovate to run again on this repository

UVのフィールド名の変更

現在はstart,endと命名しているが,正確には

  • startは始点の位置(選択範囲の左上端)
  • endは始点からの大きさ

を表しているため,pos,scaleと表現するほうが正確な気がしている
0.2.0で変更するかも

KeyflameのchannelのEnum化

現在

  • rotation
  • position
  • scale

の3種類がわかっている.これ以上ない場合はv0.2.0でEnum化するかも

Vector.ZEROの追加

Vector(0.0,0.0,0.0)を使う機会が案外あるので追加する価値は十分ありそう

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.