|
@@ -1800,6 +1800,7 @@ declare module Atomic {
|
|
|
getChildAtIndex(index:number):Node;
|
|
getChildAtIndex(index:number):Node;
|
|
|
createJSComponent(name:string, args?:{});
|
|
createJSComponent(name:string, args?:{});
|
|
|
getJSComponent(name:string):JSComponent;
|
|
getJSComponent(name:string):JSComponent;
|
|
|
|
|
+ createChildPrefab(childName:string, prefabPath:string);
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -4566,8 +4567,8 @@ declare module Atomic {
|
|
|
onSetEnabled(): void;
|
|
onSetEnabled(): void;
|
|
|
// Set speed.
|
|
// Set speed.
|
|
|
setSpeed(speed: number): void;
|
|
setSpeed(speed: number): void;
|
|
|
- // Set animation by animation set, name and loop mode.
|
|
|
|
|
- setAnimation(animationSet: AnimationSet2D, name: string, loopMode?: LoopMode2D): void;
|
|
|
|
|
|
|
+ // Set animation by name and loop mode.
|
|
|
|
|
+ setAnimation(name: string, loopMode?: LoopMode2D): void;
|
|
|
// Set animation set.
|
|
// Set animation set.
|
|
|
setAnimationSet(animationSet: AnimationSet2D): void;
|
|
setAnimationSet(animationSet: AnimationSet2D): void;
|
|
|
// Set loop mode.
|
|
// Set loop mode.
|
|
@@ -5206,7 +5207,7 @@ declare module Atomic {
|
|
|
|
|
|
|
|
export class Light2D extends Component {
|
|
export class Light2D extends Component {
|
|
|
|
|
|
|
|
- lightGroup: Light2DGroup;
|
|
|
|
|
|
|
+ lightGroupID: number;
|
|
|
color: Color;
|
|
color: Color;
|
|
|
numRays: number;
|
|
numRays: number;
|
|
|
lightType: LightType2D;
|
|
lightType: LightType2D;
|
|
@@ -5218,8 +5219,8 @@ declare module Atomic {
|
|
|
// Construct.
|
|
// Construct.
|
|
|
constructor();
|
|
constructor();
|
|
|
|
|
|
|
|
- setLightGroup(group: Light2DGroup): void;
|
|
|
|
|
- getLightGroup(): Light2DGroup;
|
|
|
|
|
|
|
+ setLightGroupID(id: number): void;
|
|
|
|
|
+ getLightGroupID(): number;
|
|
|
getColor(): Color;
|
|
getColor(): Color;
|
|
|
setColor(color: Color): void;
|
|
setColor(color: Color): void;
|
|
|
updateVertices(): void;
|
|
updateVertices(): void;
|
|
@@ -5277,17 +5278,20 @@ declare module Atomic {
|
|
|
|
|
|
|
|
physicsWorld: PhysicsWorld2D;
|
|
physicsWorld: PhysicsWorld2D;
|
|
|
ambientColor: Color;
|
|
ambientColor: Color;
|
|
|
|
|
+ lightGroupID: number;
|
|
|
frustumBox: BoundingBox;
|
|
frustumBox: BoundingBox;
|
|
|
|
|
|
|
|
// Construct.
|
|
// Construct.
|
|
|
constructor();
|
|
constructor();
|
|
|
|
|
|
|
|
- setPhysicsWorld(physicsWorld: PhysicsWorld2D): void;
|
|
|
|
|
getPhysicsWorld(): PhysicsWorld2D;
|
|
getPhysicsWorld(): PhysicsWorld2D;
|
|
|
addLight2D(light: Light2D): void;
|
|
addLight2D(light: Light2D): void;
|
|
|
|
|
+ removeLight2D(light: Light2D): void;
|
|
|
setDirty(): void;
|
|
setDirty(): void;
|
|
|
setAmbientColor(color: Color): void;
|
|
setAmbientColor(color: Color): void;
|
|
|
getAmbientColor(): Color;
|
|
getAmbientColor(): Color;
|
|
|
|
|
+ setLightGroupID(id: number): void;
|
|
|
|
|
+ getLightGroupID(): number;
|
|
|
getFrustumBox(): BoundingBox;
|
|
getFrustumBox(): BoundingBox;
|
|
|
|
|
|
|
|
}
|
|
}
|