UNPKG

laya-coreui-es

Version:

laya核心库、ui库es版本,剔除了媒体、TTF等功能。基于 LayaAir-release_2.12.0 修改

31 lines (30 loc) 1.04 kB
export class SubmitKey { constructor() { this.clear(); } clear() { this.submitType = -1; this.blendShader = this.other = 0; } copyFrom(src) { this.other = src.other; this.blendShader = src.blendShader; this.submitType = src.submitType; } copyFrom2(src, submitType, other) { this.other = other; this.submitType = submitType; } equal3_2(next, submitType, other) { return this.submitType === submitType && this.other === other && this.blendShader === next.blendShader; } equal4_2(next, submitType, other) { return this.submitType === submitType && this.other === other && this.blendShader === next.blendShader; } equal_3(next) { return this.submitType === next.submitType && this.blendShader === next.blendShader; } equal(next) { return this.other === next.other && this.submitType === next.submitType && this.blendShader === next.blendShader; } }