コード例 #1
0
 public void OnRecvRoomPosition(int id, Vector3 targetPos, LOUNGE_ACTION_TYPE type)
 {
     //IL_0019: Unknown result type (might be due to invalid IL or missing references)
     if (!(HomePeople == null))
     {
         HomePeople.SetInitialPositionLoungePlayer(id, targetPos, type);
     }
 }
コード例 #2
0
 private void LateUpdate()
 {
     if (MonoBehaviourSingleton <LoungeManager> .IsValid() && actionType != player.CurrentActionType)
     {
         actionType = player.CurrentActionType;
         RefreshUI();
     }
 }
コード例 #3
0
    public bool OnRecvRoomJoined(Lounge_Model_RoomJoined model)
    {
        //IL_00b0: Unknown result type (might be due to invalid IL or missing references)
        //IL_00b5: Unknown result type (might be due to invalid IL or missing references)
        //IL_00d2: Unknown result type (might be due to invalid IL or missing references)
        Logd("OnRecvRoomJoined. cid={0}", model.cid);
        if (MonoBehaviourSingleton <LoungeManager> .IsValid())
        {
            MonoBehaviourSingleton <LoungeManager> .I.OnRecvRoomJoined(model.cid);
        }
        if (model.cid != MonoBehaviourSingleton <UserInfoManager> .I.userInfo.id && MonoBehaviourSingleton <LoungeManager> .IsValid())
        {
            if (!MonoBehaviourSingleton <LoungeManager> .IsValid())
            {
                return(true);
            }
            if (MonoBehaviourSingleton <LoungeManager> .I.HomePeople == null)
            {
                return(true);
            }
            if (MonoBehaviourSingleton <LoungeManager> .I.HomePeople.selfChara == null)
            {
                return(true);
            }
            Vector3 position = MonoBehaviourSingleton <LoungeManager> .I.HomePeople.selfChara._transform.get_position();

            LOUNGE_ACTION_TYPE actionType = MonoBehaviourSingleton <LoungeManager> .I.HomePeople.selfChara.GetActionType();

            RoomPosition(model.cid, position, actionType);
        }
        if (FieldManager.IsValidInGame())
        {
            Protocol.Try(delegate
            {
                MonoBehaviourSingleton <LoungeMatchingManager> .I.SendInfo(delegate
                {
                }, false);
            });
        }
        string empty = string.Empty;

        LoungeModel.SlotInfo slotInfoByUserId = MonoBehaviourSingleton <LoungeMatchingManager> .I.GetSlotInfoByUserId(model.cid);

        if (slotInfoByUserId != null)
        {
            empty = slotInfoByUserId.userInfo.name;
        }
        else if (MonoBehaviourSingleton <InGameRecorder> .IsValid())
        {
            InGameRecorder.PlayerRecord playerByUserId = MonoBehaviourSingleton <InGameRecorder> .I.GetPlayerByUserId(model.cid);

            if (playerByUserId != null)
            {
                empty = playerByUserId.charaInfo.name;
            }
        }
        return(true);
    }
コード例 #4
0
    public void RoomPosition(int targetUserId, Vector3 position, LOUNGE_ACTION_TYPE type)
    {
        //IL_0027: Unknown result type (might be due to invalid IL or missing references)
        //IL_0028: Unknown result type (might be due to invalid IL or missing references)
        Lounge_Model_RoomPosition lounge_Model_RoomPosition = new Lounge_Model_RoomPosition();

        lounge_Model_RoomPosition.id  = 1005;
        lounge_Model_RoomPosition.cid = MonoBehaviourSingleton <UserInfoManager> .I.userInfo.id;
        lounge_Model_RoomPosition.pos = position;
        lounge_Model_RoomPosition.aid = (int)type;
        Send(targetUserId, lounge_Model_RoomPosition, typeof(Lounge_Model_RoomPosition), true, null, null);
    }
コード例 #5
0
 private void SendRoomPosition(int cid)
 {
     //IL_0039: Unknown result type (might be due to invalid IL or missing references)
     //IL_003e: Unknown result type (might be due to invalid IL or missing references)
     //IL_0056: Unknown result type (might be due to invalid IL or missing references)
     if (!(HomePeople == null) && !(HomePeople.selfChara == null))
     {
         Vector3            position   = HomePeople.selfChara._transform.get_position();
         LOUNGE_ACTION_TYPE actionType = HomePeople.selfChara.GetActionType();
         MonoBehaviourSingleton <LoungeNetworkManager> .I.RoomPosition(cid, position, actionType);
     }
 }
コード例 #6
0
 public void SetInitialPosition(Vector3 pos, LOUNGE_ACTION_TYPE type)
 {
     //IL_0001: Unknown result type (might be due to invalid IL or missing references)
     //IL_001b: Unknown result type (might be due to invalid IL or missing references)
     //IL_002f: Unknown result type (might be due to invalid IL or missing references)
     InitialPos = pos;
     base._transform.set_position(InitialPos.Value);
     base.moveTargetPos = InitialPos.Value;
     if (type == LOUNGE_ACTION_TYPE.SIT)
     {
         OnRecvSit();
     }
 }
コード例 #7
0
    private IEnumerator DoSetInitialPositionLoungePlayer(int id, Vector3 pos, LOUNGE_ACTION_TYPE type)
    {
        //IL_000e: Unknown result type (might be due to invalid IL or missing references)
        //IL_000f: Unknown result type (might be due to invalid IL or missing references)
        //IL_0023: Unknown result type (might be due to invalid IL or missing references)
        //IL_0024: Unknown result type (might be due to invalid IL or missing references)
        LoungePlayer target = GetLoungePlayer(id);

        while (target == null || target.get_gameObject() == null)
        {
            target = GetLoungePlayer(id);
            yield return((object)null);
        }
        while (target.isLoading)
        {
            yield return((object)null);
        }
        target.SetInitialPosition(pos, type);
    }
コード例 #8
0
 public void SetInitialPositionLoungePlayer(int id, Vector3 initialPos, LOUNGE_ACTION_TYPE type)
 {
     //IL_0003: Unknown result type (might be due to invalid IL or missing references)
     //IL_000a: Unknown result type (might be due to invalid IL or missing references)
     this.StartCoroutine(DoSetInitialPositionLoungePlayer(id, initialPos, type));
 }
コード例 #9
0
 public void SetPlayer(LoungePlayer player)
 {
     this.player = player;
     actionType  = player.CurrentActionType;
 }