咳……又是自己摸索……
7 P2 b4 J" Q5 H5 Q$ E. P& jsel = SwarmUtils.getSelector("FoodSpace", "seedFood");5 N/ O" \; X; Y: i+ d3 h
worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);
, f7 r3 e# H( X) b# K1 U$ h/ p3 t/ P' h: ]7 y7 c' t
其中FoodSpace的seedFood函数:
; [: T) y9 X0 I# o; l: U# n9 Lpublic Object seedFood(int x, int y) {
$ {) @% [ u) R2 V& o putValue$atX$Y(1, x, y);* u2 Z9 q8 z" W _
return this;7 ^' f8 W1 r+ T' }3 @8 }8 r
} |