咳……又是自己摸索……; C0 D" T/ n7 n3 S
sel = SwarmUtils.getSelector("FoodSpace", "seedFood");* z" N6 T1 \; w2 o* D
worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);
5 Y0 O9 v i: L2 @ [; j" D. _+ d* b' D5 L" Q U$ r
其中FoodSpace的seedFood函数:( n# ^2 E& @; f' Y+ s( {! @
public Object seedFood(int x, int y) {
% P4 [1 C. ~) E putValue$atX$Y(1, x, y);
6 k; O. p' z) `1 L% [ return this;
3 s" ]6 V7 J) l2 s3 K. K2 ] } |