咳……又是自己摸索……
4 O ?5 H+ T* b* j5 b( v9 ysel = SwarmUtils.getSelector("FoodSpace", "seedFood");5 [" o" C9 i. w# y
worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);/ j0 U& p g% x: M3 \, F h
. i: n* H2 |0 h3 s: w) m其中FoodSpace的seedFood函数:4 J$ q2 o& O9 a# w' X7 ~
public Object seedFood(int x, int y) {# e5 b: s, ?6 A' Z1 A
putValue$atX$Y(1, x, y);: {) ]6 j1 ?5 B1 i5 E
return this;
4 g' M" A) K/ c8 G } |