babylon.condition.d.ts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. declare module BABYLON {
  2. class Condition {
  3. public _actionManager: ActionManager;
  4. public _evaluationId: number;
  5. public _currentResult: boolean;
  6. constructor(actionManager: ActionManager);
  7. public isValid(): boolean;
  8. public _getProperty(propertyPath: string): string;
  9. public _getEffectiveTarget(target: any, propertyPath: string): any;
  10. }
  11. class ValueCondition extends Condition {
  12. public propertyPath: string;
  13. public value: any;
  14. public operator: number;
  15. private static _IsEqual;
  16. private static _IsDifferent;
  17. private static _IsGreater;
  18. private static _IsLesser;
  19. static IsEqual : number;
  20. static IsDifferent : number;
  21. static IsGreater : number;
  22. static IsLesser : number;
  23. public _actionManager: ActionManager;
  24. private _target;
  25. private _property;
  26. constructor(actionManager: ActionManager, target: any, propertyPath: string, value: any, operator?: number);
  27. public isValid(): boolean;
  28. }
  29. class PredicateCondition extends Condition {
  30. public predicate: () => boolean;
  31. public _actionManager: ActionManager;
  32. constructor(actionManager: ActionManager, predicate: () => boolean);
  33. public isValid(): boolean;
  34. }
  35. class StateCondition extends Condition {
  36. public value: string;
  37. public _actionManager: ActionManager;
  38. private _target;
  39. constructor(actionManager: ActionManager, target: any, value: string);
  40. public isValid(): boolean;
  41. }
  42. }