咳……又是自己摸索……
' Q B4 V0 H: u) f# F0 \sel = SwarmUtils.getSelector("FoodSpace", "seedFood");! @8 ]+ p: y/ C" i1 y2 d- h
worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);
8 n( p* K4 ]# V3 `% }2 o6 `5 U
8 L9 {8 M7 k. R- p. J6 d其中FoodSpace的seedFood函数:2 g$ d0 E9 c) l: Z0 S6 }- a+ y
public Object seedFood(int x, int y) {' W% ` f& q: |
putValue$atX$Y(1, x, y);
+ b: I ~' Z. ]! T' S- S2 p$ L/ B7 b M return this;
" k/ _2 M) r* a0 K( c5 c5 l! ] } |