2.0.4 • Published 3 years ago

@mcbe/system_shared v2.0.4

Weekly downloads
17
License
ISC
Repository
-
Last release
3 years ago

About this

it contains system instance for sharing
Almost of my modules are dependent on this module
You can override system instance with setSystem function before it created

Example

import { createServerSystem } from '@mcbe/system_shared';
const system = createServerSystem(0,0);

// or

import { registerSystem } from '@mcbe/system_shared';
const system = client.registerSystem(0,0);
setSystem(system);

References

// system shared, it can be client or server
let systemShared:IVanillaClientSystem|IVanillaServerSystem;

// set system from external
function setSystem(system:IVanillaClientSystem|IVanillaServerSystem):void;

// get system object
// It will create system with (0,0) if it does not exist
function getSystem():IVanillaClientSystem|IVanillaServerSystem;

// create client system
// if system is already exists it will that
function createClientSystem(majorVersion: number, minorVersion: number):IVanillaClientSystem;

// create server system
// if system is already exists it will that
function createServerSystem(majorVersion: number, minorVersion: number):IVanillaServerSystem;
2.0.2

3 years ago

2.0.4

3 years ago

2.0.1

3 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago