GithubHelp home page GithubHelp logo

Comments (12)

 avatar commented on July 30, 2024 1

mainだけでなくcoreやwieldの方もメタデータを保持するべきなので、以下のようにまとめてもいいかもしれません。

for list_name, list in pairs(inventory:get_lists()) do
  data["inventory"][list_name] = {}

  for i, item in ipairs(list) do
    data["inventory"][list_name][i] = item:to_string()
  end
end

from maidroid.

 avatar commented on July 30, 2024 1

明けましておめでとうございます。
本年もよろしくお願いいたします。

from maidroid.

tacigar avatar tacigar commented on July 30, 2024

ほほ~, ItemStack ってこんなに賢く使えるのか... 😓

from maidroid.

 avatar commented on July 30, 2024

ついでに、復帰部分もこうでいいと思います。

for list_name, list in pairs(data["inventory"]) do
    inventory:set_list(list_name, list)
end

from maidroid.

tacigar avatar tacigar commented on July 30, 2024

wield_itemcore は一つしかないということで, テーブルを避けてたんですが,
確かにその方がまとまっていて良いですね 😄

from maidroid.

tacigar avatar tacigar commented on July 30, 2024

あ, あと明けましておめでとうございます.

from maidroid.

tacigar avatar tacigar commented on July 30, 2024

ついでに、復帰部分もこうでいいと思います。

これ, 動くんですね...
一つずつ辿って ItemStack 化しないとダメなのかと思っていました...
勉強になります.

from maidroid.

tacigar avatar tacigar commented on July 30, 2024

core_name と list とで, 二重にコアの情報を管理している意味が全然分からない.
どういう考えでこういう実装にしたのか...思い出せない...

直すか...
こういうの直すのが一番つらい.

from maidroid.

 avatar commented on July 30, 2024

maidroid:dummy_itemのコードを見ていて思ったのですが、wielditemってtextureに{""}を指定すれば透明になってくれた気がします。(間違っていたらすみません…)

from maidroid.

tacigar avatar tacigar commented on July 30, 2024

わお!
そうだったんですね...
最初 "air" を指定していてダメだったんで, ダメなのかぁと思ってました...

from maidroid.

 avatar commented on July 30, 2024

0.4.13の頃は(おそらく)そうでした。
今通用するかは分からないので、お手数をおかけしますが、確認していただければと思います…。

from maidroid.

tacigar avatar tacigar commented on July 30, 2024

0.4.15 で試してみたのですが, textures={""} では変な物体が表示されてしまいました...
textures="", textures=nil では unknown な感じに表示されました.

とりあえず今のままにしておきます... 😢

from maidroid.

Related Issues (20)

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.