实验室对接
Last updated
Last updated
//测试界面对接
public class TestGuiLab extends BaseGuiLab {
public TestGuiLab(Player viewer) {
super(viewer);
getProperty().setLabAbility(LabAbilityEnum.fushe, true);
}
@Override
public void whenTryUnlock(LabAbilityEnum labTypeEnum) {
System.out.println("receive unlock");
getProperty().setLabAbility(labTypeEnum, !getProperty().isActive(labTypeEnum));
forceSynProperty();
info("状态已变更!");
}
}public interface IBaseLabFunctionProvider extends IFunctionProvider {
/**
* 玩家是否激活(拥有)着技能
* */
boolean isActive(Player player, LabAbilityEnum labType);
/*
* 为玩家打开实验室UI
* */
void openLab(Player player);
}