@rpgjs/physic
Version:
A deterministic 2D top-down physics library for RPG, sandbox and MMO games
28 lines • 710 B
TypeScript
/**
* UUID generation utilities
*
* Generates UUID v4 for entity identification.
* Deterministic version can be used for testing.
*/
/**
* Generates a random UUID v4
*
* @returns UUID string
*
* @example
* ```typescript
* const id = generateUUID(); // "550e8400-e29b-41d4-a716-446655440000"
* ```
*/
export declare function generateUUID(): string;
/**
* Generates a deterministic UUID from a seed
*
* Simple hash-based UUID for testing and deterministic scenarios.
* Not cryptographically secure.
*
* @param seed - Seed value for generation
* @returns Deterministic UUID string
*/
export declare function generateDeterministicUUID(seed: number): string;
//# sourceMappingURL=uuid.d.ts.map