Skip to content
This repository was archived by the owner on Oct 20, 2021. It is now read-only.

Commit 7a58843

Browse files
zeroZshadowPaul Balaji
authored andcommitted
Cleanup FPS Project for 0.3.0 (#239)
1 parent 4904e20 commit 7a58843

File tree

341 files changed

+1775
-1903
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

341 files changed

+1775
-1903
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions

schema/fps/common.schema

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package fps;
2+
3+
type Vector3Int {
4+
int32 x = 1;
5+
int32 y = 2;
6+
int32 z = 3;
7+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package improbable.gdk.guns;
1+
package fps;
22

33
component GunComponent {
44
id = 2051;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package improbable.gdk.health;
1+
package fps;
22

33
component HealthRegenComponent {
44
id = 2041;
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
package improbable.gdk.health;
1+
package fps;
22

33
import "improbable/gdk/core/common.schema";
4-
import "improbable/gdk/standardtypes/standardtypes.schema";
4+
import "fps/common.schema";
55

66
type HealthModifier {
77
uint32 type = 1;
88
float amount = 2;
9-
improbable.gdk.standardtypes.IntAbsolute applied_location = 3;
10-
improbable.gdk.standardtypes.IntAbsolute origin = 4;
11-
int64 owner = 5;
9+
fps.Vector3Int applied_location = 3;
10+
fps.Vector3Int origin = 4;
11+
EntityId owner = 5;
1212
}
1313

1414
type HealthModifiedInfo {
1515
HealthModifier modifier = 1;
1616
float health_before = 2;
1717
float health_after = 3;
1818
bool died = 4;
19-
int64 owner = 5;
19+
EntityId owner = 5;
2020
}
2121

2222
component HealthComponent {
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
package improbable.gdk.movement;
1+
package fps;
22

3-
import "improbable/gdk/standardtypes/standardtypes.schema";
3+
import "fps/common.schema";
44

55
type ClientRequest {
6-
improbable.gdk.standardtypes.IntDelta movement = 1;
6+
fps.Vector3Int movement = 1;
77
int32 timestamp = 2;
88
float time_delta = 3;
99
bool includes_jump = 4;
1010
}
1111

1212
type ServerResponse {
13-
improbable.gdk.standardtypes.IntAbsolute position = 1;
13+
fps.Vector3Int position = 1;
1414
int32 timestamp = 2;
1515
float time_delta = 3;
1616
bool includes_jump = 4;

schema/fps/shooting.schema

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package fps;
2+
3+
import "fps/common.schema";
4+
5+
type ShotInfo {
6+
bool hit_something = 1;
7+
EntityId entity_id = 2;
8+
fps.Vector3Int hit_location = 3;
9+
fps.Vector3Int hit_origin = 4;
10+
}
11+
12+
component ShootingComponent {
13+
id = 2050;
14+
15+
event ShotInfo shots;
16+
}

0 commit comments

Comments
 (0)