create some xxxConst for Point, Size, Color3B etc
create some xxxConst for Point, Size, Color3B etc
Feature #3371 [Closed]
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset commit:3d7b7631e374a48d027c8d7a03be616053e1b648.
Status: | Closed | |
---|---|---|
Start date: | 2013-12-11 | |
Priority: | Normal | |
Due date: | ||
Assignee: | ludingping | |
% Done: | 100% |
|
Category: | - | |
Target version: | v2.2.2 |
Purpose:
These classes only used in engine inner class, their public property is readonly,
example:
cc.Node’s position uses PointConst class, and getPosition returns the reference instead of returns a new Point object. if developers set position’s x, PointConst will show some log information to notice developers.