1.2.13 • Published 5 years ago

@latel88/job v1.2.13

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Job

how to use

  • install
npm install @latel88/job
- CJS
```javascript
const { Job, Child, Collection } = require( "@latel88/job" ).default;
  • ESM
import { Job, Child, Collection } from "@latel88/job";

exsample

  • extend
class Entity extends Job
{
	constructor ()
	{
		super( "enemy" );

	}

};

const entity = new Entity();

entity.begin();
	
getFile( () =>
{
	entity.done();

} );

const id = setInterval( () =>
{
	if (entity.hasComplete())
	{
		callback();

		clearInterval( id );

	}
	else
	{
		if (hasError())
		{
			entity.skip();

		}
		else
		{
			sleep();

		}

	}

} );
class Entity extends Child
{
	constructor ()
	{
		super( "child#enemy.entity" );//css query selector

	}

};

const collection = new Collection();
const entity = new Entity();

collection.set( entity );
collection.find( ".entity" );
1.2.12

5 years ago

1.2.13

5 years ago

1.2.11

5 years ago

1.2.10

5 years ago

1.2.9

5 years ago

1.2.8

5 years ago

1.2.7

5 years ago

1.2.6

6 years ago

1.2.5

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.15

6 years ago

1.1.14

6 years ago

1.1.13

6 years ago

1.1.12

6 years ago

1.1.11

6 years ago

1.1.10

6 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.20

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

1.0.8

7 years ago