test pc 3 年 前
コミット
85bfa68a11
3 ファイル変更3 行追加8 行削除
  1. 0 2
      src/move/move.service.ts
  2. 3 3
      src/rotate/rotate.service.ts
  3. 0 3
      src/scene/scene.service.ts

+ 0 - 2
src/move/move.service.ts

@@ -47,7 +47,6 @@ export class MoveService implements OnModuleInit {
     Joystick: 15,
     Joystick: 15,
   };
   };
   public users = this.rotateService.users;
   public users = this.rotateService.users;
-  //public users = ShareData.users;
 
 
   private reply = {
   private reply = {
     traceIds: [],
     traceIds: [],
@@ -1458,7 +1457,6 @@ export class MoveService implements OnModuleInit {
   }
   }
 
 
   complementFrame(userId) {
   complementFrame(userId) {
-    debugger;
     const user = this.users[userId];
     const user = this.users[userId];
     user.walkState = 0;
     user.walkState = 0;
     user.IDRCount = 0;
     user.IDRCount = 0;

+ 3 - 3
src/rotate/rotate.service.ts

@@ -35,8 +35,7 @@ export class RotateService {
     Rotation: 1014,
     Rotation: 1014,
     Joystick: 15,
     Joystick: 15,
   };
   };
-  // private users = ShareData.users;
-  // private replys = ShareData.replys;
+
   public users = {};
   public users = {};
   private replys = {};
   private replys = {};
   private firstPoint = {
   private firstPoint = {
@@ -485,8 +484,9 @@ export class RotateService {
         code: 0,
         code: 0,
         msg: '',
         msg: '',
       };
       };
-
+      
       const userIds = Object.keys(this.users);
       const userIds = Object.keys(this.users);
+      console.log('getNewUserStateRequest'+userIds);
       for (let i = 0; i < userIds.length; ++i) {
       for (let i = 0; i < userIds.length; ++i) {
         const _user = this.users[userIds[i]];
         const _user = this.users[userIds[i]];
         const newUserState = {
         const newUserState = {

+ 0 - 3
src/scene/scene.service.ts

@@ -123,9 +123,6 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
   private isJoystickHasStream = false;
   private isJoystickHasStream = false;
   private hasJoystickFocusRepeat = false;
   private hasJoystickFocusRepeat = false;
   private startSub: any;
   private startSub: any;
-
-  //public users = ShareData.users;
-
   public sleep = (ms: number) => new Promise((r) => setTimeout(r, ms));
   public sleep = (ms: number) => new Promise((r) => setTimeout(r, ms));
 
 
   private globalOptLock = false;
   private globalOptLock = false;