コード例 #1
0
    protected override void Configure()
    {
        locationVariable = new StateVarParameter <Vector3>();
        table            = new StateVarParameter <SmartObject>();

        AddParametrizedPrecondition(WorldStates.STATE_POSITION, locationVariable);
        AddStaticPrecondition(WorldStates.STATE_HAND_RIGHT_ITEM, null);
        AddStaticGenericEffect(WorldStates.TABLE_SWEEPED, table, true);
    }
コード例 #2
0
    protected override void Configure()
    {
        locationVariable = new StateVarParameter <Vector3>();
        groundSpot       = new StateVarParameter <SmartObject>();

        AddParametrizedPrecondition(WorldStates.STATE_POSITION, locationVariable);
        AddStaticPrecondition(WorldStates.STATE_HAND_RIGHT, broomClass);
        AddStaticGenericEffect(WorldStates.GROUND_SWEEPED, groundSpot, true);
    }
コード例 #3
0
    protected override void Configure()
    {
        itemTypeVariable = new StateVarParameter <DBItem>();
        AddParametrizedEffect(WorldStates.STATE_HAND_RIGHT, itemTypeVariable);
        itemVariable = new StateVarParameter <InGameItem>();
        AddParametrizedEffect(WorldStates.STATE_HAND_RIGHT_ITEM, itemVariable);

        locationVariable = new StateVarParameter <Vector3>();
        AddParametrizedPrecondition(WorldStates.STATE_POSITION, locationVariable);
        AddStaticPrecondition(WorldStates.STATE_HAND_RIGHT_ITEM, null);
    }