Skip to content

Commit

Permalink
Improve docs of UUIDs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 committed Jan 3, 2021
1 parent 9dfb8af commit 0eccf18
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 6 deletions.
14 changes: 12 additions & 2 deletions build/yuka.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @license
* The MIT License
*
* Copyright © 2020 Yuka authors
* Copyright © 2021 Yuka authors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -3028,12 +3028,17 @@

this._started = false;

// unique ID, primarily used in context of serialization/deserialization
//

this._uuid = null;

}

/**
* Unique ID, primarily used in context of serialization/deserialization.
* @type {String}
* @readonly
*/
get uuid() {

if ( this._uuid === null ) {
Expand Down Expand Up @@ -9921,6 +9926,11 @@

}

/**
* Unique ID, primarily used in context of serialization/deserialization.
* @type {String}
* @readonly
*/
get uuid() {

if ( this._uuid === null ) {
Expand Down
2 changes: 1 addition & 1 deletion build/yuka.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 12 additions & 2 deletions build/yuka.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @license
* The MIT License
*
* Copyright © 2020 Yuka authors
* Copyright © 2021 Yuka authors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -3022,12 +3022,17 @@ class GameEntity {

this._started = false;

// unique ID, primarily used in context of serialization/deserialization
//

this._uuid = null;

}

/**
* Unique ID, primarily used in context of serialization/deserialization.
* @type {String}
* @readonly
*/
get uuid() {

if ( this._uuid === null ) {
Expand Down Expand Up @@ -9915,6 +9920,11 @@ class FuzzySet extends FuzzyTerm {

}

/**
* Unique ID, primarily used in context of serialization/deserialization.
* @type {String}
* @readonly
*/
get uuid() {

if ( this._uuid === null ) {
Expand Down
7 changes: 6 additions & 1 deletion src/core/GameEntity.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,17 @@ class GameEntity {

this._started = false;

// unique ID, primarily used in context of serialization/deserialization
//

this._uuid = null;

}

/**
* Unique ID, primarily used in context of serialization/deserialization.
* @type {String}
* @readonly
*/
get uuid() {

if ( this._uuid === null ) {
Expand Down
5 changes: 5 additions & 0 deletions src/fuzzy/FuzzySet.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ class FuzzySet extends FuzzyTerm {

}

/**
* Unique ID, primarily used in context of serialization/deserialization.
* @type {String}
* @readonly
*/
get uuid() {

if ( this._uuid === null ) {
Expand Down

0 comments on commit 0eccf18

Please sign in to comment.