咳……又是自己摸索……
& O0 ~/ T4 I" Tsel = SwarmUtils.getSelector("FoodSpace", "seedFood");
* ~9 n' X; q+ V) ^ _% X6 a worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);
( T4 {: |$ H7 H+ k
4 ?% |; E) ]4 B6 N: ]其中FoodSpace的seedFood函数:
5 ]" W9 q+ |) F9 @public Object seedFood(int x, int y) {
- i6 k V; }, {- h& O putValue$atX$Y(1, x, y);& X$ j6 p, z5 ~# j2 i! x& n- M. S1 {0 Y
return this;
+ ^; L3 l3 r$ }0 j2 v) { } |