数组:修订间差异
小
无编辑摘要
小无编辑摘要 |
小无编辑摘要 |
||
| 第60行: | 第60行: | ||
}} | }} | ||
警告:截止1.15版,跨单位读数组,由于游戏bug,单位参考将被重定向。 | 警告:截止1.15版,跨单位读数组,由于游戏bug,单位参考将被重定向。 | ||
{{折叠|例子|<pre> | |||
代码: | |||
customTarget1.readUnitMemory("obj",type="unit[]").get(memory.index) | |||
customTarget1.readUnitMemory("obj",type="unit[]").get(self.hp) | |||
customTarget1.readUnitMemory("obj",type="unit[]").get(memory.unit.readUnitMemory("index",type="float")) | |||
实际运行结果:(伪代码) | |||
customTarget1.memory.obj.get(customTarget1.memory.index) | |||
customTarget1.memory.obj.get(customTarget1.hp) | |||
customTarget1.memory.obj.get(customTarget1.memory.unit.memory.index) | |||
</pre>}} | |||
thisActionIndex/index方法不受此影响。 | thisActionIndex/index方法不受此影响。 | ||