-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca8ce55
commit ac860cc
Showing
18 changed files
with
88 additions
and
793 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import { Position } from "@/types/position"; | ||
import { ID, StructureType } from "@bibliothecadao/eternum"; | ||
import * as THREE from "three"; | ||
|
||
export enum SceneName { | ||
WorldMap = "map", | ||
Hexception = "hex", | ||
} | ||
|
||
export enum HyperstructureTypesNames { | ||
STAGE_1 = "hyperstructure_stage0", | ||
STAGE_2 = "hyperstructure_stage1", | ||
STAGE_3 = "hyperstructure_stage2", | ||
} | ||
|
||
export enum StructureProgress { | ||
STAGE_1 = 0, | ||
STAGE_2 = 1, | ||
STAGE_3 = 2, | ||
} | ||
|
||
export interface StructureInfo { | ||
entityId: ID; | ||
hexCoords: { col: number; row: number }; | ||
stage: number; | ||
level: number; | ||
isMine: boolean; | ||
owner: { address: bigint }; | ||
structureType: StructureType; | ||
hasWonder: boolean; | ||
} | ||
|
||
export interface ArmyData { | ||
entityId: ID; | ||
matrixIndex: number; | ||
hexCoords: Position; | ||
isMine: boolean; | ||
owner: { address: bigint; ownerName: string; guildName: string }; | ||
order: string; | ||
color: string; | ||
} | ||
|
||
export interface MovingArmyData { | ||
startPos: THREE.Vector3; | ||
endPos: THREE.Vector3; | ||
progress: number; | ||
matrixIndex: number; | ||
currentPathIndex: number; | ||
} | ||
|
||
export interface MovingLabelData { | ||
startPos: THREE.Vector3; | ||
endPos: THREE.Vector3; | ||
progress: number; | ||
} | ||
|
||
export interface RenderChunkSize { | ||
width: number; | ||
height: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from "./common"; | ||
export * from "./systems"; |
2 changes: 1 addition & 1 deletion
2
client/apps/game/src/types/systems.ts → client/apps/game/src/three/types/systems.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.