咳……又是自己摸索……
+ _7 f) G; t- P5 `# Isel = SwarmUtils.getSelector("FoodSpace", "seedFood");
& r/ C E3 e# Q% t) J1 w worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);
2 r3 d# T/ a$ ~) L
9 z' e0 K" O8 o3 A其中FoodSpace的seedFood函数:2 X7 V* K0 F H/ Z, O. w$ ?
public Object seedFood(int x, int y) {2 W5 e3 u4 x& B& S' a: m
putValue$atX$Y(1, x, y);
1 v! [7 ^ @: C) i( p @& w return this;& \. m; ~, y+ t3 [; H
} |