咳……又是自己摸索……
+ n6 P+ r( ~2 S' F" B. s L8 G7 p. Ksel = SwarmUtils.getSelector("FoodSpace", "seedFood");
# B- M& S5 M1 [/ z5 \" L worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);
# u# |+ q6 z% Z9 ^
4 u- L( y v y0 A, w其中FoodSpace的seedFood函数:8 r% r5 O7 I3 V/ y2 @! V
public Object seedFood(int x, int y) {
7 j3 S& a& \' J# m; u! g putValue$atX$Y(1, x, y);
+ K) D: v4 Y* ]2 ^& C, K return this;
% P5 Y# n! M4 v$ W } |