Skip to content

Commit

Permalink
New utils. Kill object in debug. Animation manager adjustments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Neloreck committed Jul 25, 2023
1 parent ef4b97c commit ba49a7b
Show file tree
Hide file tree
Showing 11 changed files with 256 additions and 166 deletions.
1 change: 1 addition & 0 deletions cli/utils/fs/get_game_paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type TGamePaths = typeof GAME_PATHS;

/**
* Get absolute paths to the game assets/executables/directories.
* todo: Memoize paths?
*/
export async function getGamePaths(): Promise<TGamePaths> {
const { path: gamePath } = await getAppPath(config.targets.stalker_game_steam_id).catch(() => {
Expand Down
17 changes: 11 additions & 6 deletions src/engine/core/objects/animation/animation_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,21 @@ export type TAnimationSequenceElement =
*/
export type TAnimationSequenceElements = TAnimationSequenceElement | LuaArray<TAnimationSequenceElement>;

/**
* List of properties configuring animation.
*/
export interface IAnimationDescriptorProperties {
maxidle: TDuration;
sumidle: TDuration;
rnd: Optional<TRate>;
moving: Optional<boolean>;
}

/**
* Descriptor of in-game animation.
*/
export interface IAnimationDescriptor {
prop: {
maxidle: TDuration;
sumidle: TDuration;
rnd: Optional<TRate>;
moving: Optional<boolean>;
};
prop: IAnimationDescriptorProperties;
into: Optional<LuaArray<TAnimationSequenceElements>>;
out: Optional<LuaArray<TAnimationSequenceElements>>;
idle: Optional<LuaArray<TAnimationSequenceElements>>;
Expand Down
Loading

0 comments on commit ba49a7b

Please sign in to comment.