咳……又是自己摸索……0 a3 D O; |4 t- C2 c; U, H
sel = SwarmUtils.getSelector("FoodSpace", "seedFood");
* }, u) r8 E/ q worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);
" H$ l& |- |- Q
- M2 m$ ]" a" }6 g9 `5 @其中FoodSpace的seedFood函数:
7 M) j& a$ u% e- w$ S' u3 A! N1 p0 [public Object seedFood(int x, int y) {
# @* s Q! g$ c0 U putValue$atX$Y(1, x, y);
1 m1 s0 u; q: l1 ~ return this;2 H s. ]' R% q; h F- x1 n
} |