taroxd 发表于 2014-6-16 10:21
uid @完要空一格
其实我觉得 Smomo::Kit.register[:transition] 可以弄成一个compare_by_identity的Hash会 ...
(_ = ::Smomo::Kit.register[:transition])[_.each.with_index{|t, i| break i if t.object_id == object_id}] = dead
余烬之中 发表于 2014-6-16 10:39
比如这样?(_ = ::Smomo::Kit.register[:transition])[_.each.with_index{|t, i| break i if t.object_id ...
::Smomo::Kit.register[:transition][@object] = dead
::Smomo::Kit.register[:transition].compare_by_identity
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |