咳……又是自己摸索……9 K' `4 u2 X6 ]6 d7 ~
sel = SwarmUtils.getSelector("FoodSpace", "seedFood");3 I: ?: {$ H$ e, e: Z# m
worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);" g% }9 V/ E1 v4 _3 |
3 D; W$ a* Y0 r7 p( a1 t# [其中FoodSpace的seedFood函数:( J% U0 C }: J) b
public Object seedFood(int x, int y) {
1 Y) [) R0 D+ E* @, r$ S$ x putValue$atX$Y(1, x, y);5 w0 d. r" |3 T9 @2 {8 ]. f
return this;4 E5 Q4 k" P: }3 \0 b" ~, | f
} |