void ProcessReceivedMessage_NotifyPlayerLeave(Nettention.Proud.Message __msg, Nettention.Proud.ReceivedMessage pa, Object hostTag, Nettention.Proud.HostID remote)
        {
            Nettention.Proud.RmiContext ctx = new Nettention.Proud.RmiContext();
            ctx.sentFrom     = pa.RemoteHostID;
            ctx.relayed      = pa.IsRelayed;
            ctx.hostTag      = hostTag;
            ctx.encryptMode  = pa.EncryptMode;
            ctx.compressMode = pa.CompressMode;

            int  groupID; SngClient.Marshaler.Read(__msg, out groupID);
            int  idx; SngClient.Marshaler.Read(__msg, out idx);
            bool changeMaster; SngClient.Marshaler.Read(__msg, out changeMaster);
            int  newMasterID; SngClient.Marshaler.Read(__msg, out newMasterID);

            core.PostCheckReadMessage(__msg, RmiName_NotifyPlayerLeave);
            if (enableNotifyCallFromStub == true)
            {
                string parameterString = "";
                parameterString += groupID.ToString() + ",";
                parameterString += idx.ToString() + ",";
                parameterString += changeMaster.ToString() + ",";
                parameterString += newMasterID.ToString() + ",";
                NotifyCallFromStub(Common.NotifyPlayerLeave, RmiName_NotifyPlayerLeave, parameterString);
            }

            if (enableStubProfiling)
            {
                Nettention.Proud.BeforeRmiSummary summary = new Nettention.Proud.BeforeRmiSummary();
                summary.rmiID   = Common.NotifyPlayerLeave;
                summary.rmiName = RmiName_NotifyPlayerLeave;
                summary.hostID  = remote;
                summary.hostTag = hostTag;
                BeforeRmiInvocation(summary);
            }

            long t0 = Nettention.Proud.PreciseCurrentTime.GetTimeMs();

            // Call this method.
            bool __ret = NotifyPlayerLeave(remote, ctx, groupID, idx, changeMaster, newMasterID);

            if (__ret == false)
            {
                // Error: RMI function that a user did not create has been called.
                core.ShowNotImplementedRmiWarning(RmiName_NotifyPlayerLeave);
            }

            if (enableStubProfiling)
            {
                Nettention.Proud.AfterRmiSummary summary = new Nettention.Proud.AfterRmiSummary();
                summary.rmiID       = Common.NotifyPlayerLeave;
                summary.rmiName     = RmiName_NotifyPlayerLeave;
                summary.hostID      = remote;
                summary.hostTag     = hostTag;
                summary.elapsedTime = Nettention.Proud.PreciseCurrentTime.GetTimeMs() - t0;
                AfterRmiInvocation(summary);
            }
        }
Example #2
0
        public bool RefuseTradeAsk(Nettention.Proud.HostID[] remotes, Nettention.Proud.RmiContext rmiContext)
        {
            Nettention.Proud.Message __msg = new Nettention.Proud.Message();
            __msg.SimplePacketMode = core.IsSimplePacketMode();
            Nettention.Proud.RmiID __msgid = Common.RefuseTradeAsk;
            __msg.Write(__msgid);

            return(RmiSend(remotes, rmiContext, __msg,
                           RmiName_RefuseTradeAsk, Common.RefuseTradeAsk));
        }
Example #3
0
        public bool TradeRequest(Nettention.Proud.HostID[] remotes, Nettention.Proud.RmiContext rmiContext)
        {
            Nettention.Proud.Message __msg = new Nettention.Proud.Message();
            __msg.SimplePacketMode = core.IsSimplePacketMode();
            Nettention.Proud.RmiID __msgid = Common.TradeRequest;
            __msg.Write(__msgid);

            return(RmiSend(remotes, rmiContext, __msg,
                           RmiName_TradeRequest, Common.TradeRequest));
        }
Example #4
0
        public bool MachingComplete(Nettention.Proud.HostID[] remotes, Nettention.Proud.RmiContext rmiContext)
        {
            Nettention.Proud.Message __msg = new Nettention.Proud.Message();
            __msg.SimplePacketMode = core.IsSimplePacketMode();
            Nettention.Proud.RmiID __msgid = Common.MachingComplete;
            __msg.Write(__msgid);

            return(RmiSend(remotes, rmiContext, __msg,
                           RmiName_MachingComplete, Common.MachingComplete));
        }
Example #5
0
        public bool ConfirmTradeCard(Nettention.Proud.HostID[] remotes, Nettention.Proud.RmiContext rmiContext)
        {
            Nettention.Proud.Message __msg = new Nettention.Proud.Message();
            __msg.SimplePacketMode = core.IsSimplePacketMode();
            Nettention.Proud.RmiID __msgid = Common.ConfirmTradeCard;
            __msg.Write(__msgid);

            return(RmiSend(remotes, rmiContext, __msg,
                           RmiName_ConfirmTradeCard, Common.ConfirmTradeCard));
        }
Example #6
0
        void ProcessReceivedMessage_Player_2Point(Nettention.Proud.Message __msg, Nettention.Proud.ReceivedMessage pa, Object hostTag, Nettention.Proud.HostID remote)
        {
            Nettention.Proud.RmiContext ctx = new Nettention.Proud.RmiContext();
            ctx.sentFrom     = pa.RemoteHostID;
            ctx.relayed      = pa.IsRelayed;
            ctx.hostTag      = hostTag;
            ctx.encryptMode  = pa.EncryptMode;
            ctx.compressMode = pa.CompressMode;

            UnityEngine.Vector3 point; SngClient.Marshaler.Read(__msg, out point);
            float rotation; SngClient.Marshaler.Read(__msg, out rotation);
            int   run; SngClient.Marshaler.Read(__msg, out run);

            core.PostCheckReadMessage(__msg, RmiName_Player_2Point);
            if (enableNotifyCallFromStub == true)
            {
                string parameterString = "";
                parameterString += point.ToString() + ",";
                parameterString += rotation.ToString() + ",";
                parameterString += run.ToString() + ",";
                NotifyCallFromStub(Common.Player_2Point, RmiName_Player_2Point, parameterString);
            }

            if (enableStubProfiling)
            {
                Nettention.Proud.BeforeRmiSummary summary = new Nettention.Proud.BeforeRmiSummary();
                summary.rmiID   = Common.Player_2Point;
                summary.rmiName = RmiName_Player_2Point;
                summary.hostID  = remote;
                summary.hostTag = hostTag;
                BeforeRmiInvocation(summary);
            }

            long t0 = Nettention.Proud.PreciseCurrentTime.GetTimeMs();

            // Call this method.
            bool __ret = Player_2Point(remote, ctx, point, rotation, run);

            if (__ret == false)
            {
                // Error: RMI function that a user did not create has been called.
                core.ShowNotImplementedRmiWarning(RmiName_Player_2Point);
            }

            if (enableStubProfiling)
            {
                Nettention.Proud.AfterRmiSummary summary = new Nettention.Proud.AfterRmiSummary();
                summary.rmiID       = Common.Player_2Point;
                summary.rmiName     = RmiName_Player_2Point;
                summary.hostID      = remote;
                summary.hostTag     = hostTag;
                summary.elapsedTime = Nettention.Proud.PreciseCurrentTime.GetTimeMs() - t0;
                AfterRmiInvocation(summary);
            }
        }
Example #7
0
        void ProcessReceivedMessage_RequestLogon(Nettention.Proud.Message __msg, Nettention.Proud.ReceivedMessage pa, Object hostTag, Nettention.Proud.HostID remote)
        {
            Nettention.Proud.RmiContext ctx = new Nettention.Proud.RmiContext();
            ctx.sentFrom     = pa.RemoteHostID;
            ctx.relayed      = pa.IsRelayed;
            ctx.hostTag      = hostTag;
            ctx.encryptMode  = pa.EncryptMode;
            ctx.compressMode = pa.CompressMode;

            String villeName; SngClient.Marshaler.Read(__msg, out villeName);
            String nickName; SngClient.Marshaler.Read(__msg, out nickName);
            bool   isNewVille; SngClient.Marshaler.Read(__msg, out isNewVille);

            core.PostCheckReadMessage(__msg, RmiName_RequestLogon);
            if (enableNotifyCallFromStub == true)
            {
                string parameterString = "";
                parameterString += villeName.ToString() + ",";
                parameterString += nickName.ToString() + ",";
                parameterString += isNewVille.ToString() + ",";
                NotifyCallFromStub(Common.RequestLogon, RmiName_RequestLogon, parameterString);
            }

            if (enableStubProfiling)
            {
                Nettention.Proud.BeforeRmiSummary summary = new Nettention.Proud.BeforeRmiSummary();
                summary.rmiID   = Common.RequestLogon;
                summary.rmiName = RmiName_RequestLogon;
                summary.hostID  = remote;
                summary.hostTag = hostTag;
                BeforeRmiInvocation(summary);
            }

            long t0 = Nettention.Proud.PreciseCurrentTime.GetTimeMs();

            // Call this method.
            bool __ret = RequestLogon(remote, ctx, villeName, nickName, isNewVille);

            if (__ret == false)
            {
                // Error: RMI function that a user did not create has been called.
                core.ShowNotImplementedRmiWarning(RmiName_RequestLogon);
            }

            if (enableStubProfiling)
            {
                Nettention.Proud.AfterRmiSummary summary = new Nettention.Proud.AfterRmiSummary();
                summary.rmiID       = Common.RequestLogon;
                summary.rmiName     = RmiName_RequestLogon;
                summary.hostID      = remote;
                summary.hostTag     = hostTag;
                summary.elapsedTime = Nettention.Proud.PreciseCurrentTime.GetTimeMs() - t0;
                AfterRmiInvocation(summary);
            }
        }
Example #8
0
        public bool RequestRemoveTree(Nettention.Proud.HostID[] remotes, Nettention.Proud.RmiContext rmiContext, int treeID)
        {
            Nettention.Proud.Message __msg = new Nettention.Proud.Message();
            __msg.SimplePacketMode = core.IsSimplePacketMode();
            Nettention.Proud.RmiID __msgid = Common.RequestRemoveTree;
            __msg.Write(__msgid);
            SngClient.Marshaler.Write(__msg, treeID);

            return(RmiSend(remotes, rmiContext, __msg,
                           RmiName_RequestRemoveTree, Common.RequestRemoveTree));
        }
Example #9
0
        public bool ChangeState(Nettention.Proud.HostID[] remotes, Nettention.Proud.RmiContext rmiContext, int state)
        {
            Nettention.Proud.Message __msg = new Nettention.Proud.Message();
            __msg.SimplePacketMode = core.IsSimplePacketMode();
            Nettention.Proud.RmiID __msgid = Common.ChangeState;
            __msg.Write(__msgid);
            TakeClient.Marshaler.Write(__msg, state);

            return(RmiSend(remotes, rmiContext, __msg,
                           RmiName_ChangeState, Common.ChangeState));
        }
Example #10
0
        public bool GainPower(Nettention.Proud.HostID[] remotes, Nettention.Proud.RmiContext rmiContext, float gainPower)
        {
            Nettention.Proud.Message __msg = new Nettention.Proud.Message();
            __msg.SimplePacketMode = core.IsSimplePacketMode();
            Nettention.Proud.RmiID __msgid = Common.GainPower;
            __msg.Write(__msgid);
            TakeClient.Marshaler.Write(__msg, gainPower);

            return(RmiSend(remotes, rmiContext, __msg,
                           RmiName_GainPower, Common.GainPower));
        }
Example #11
0
        public bool CardInfo(Nettention.Proud.HostID[] remotes, Nettention.Proud.RmiContext rmiContext, CardInfo_send info)
        {
            Nettention.Proud.Message __msg = new Nettention.Proud.Message();
            __msg.SimplePacketMode = core.IsSimplePacketMode();
            Nettention.Proud.RmiID __msgid = Common.CardInfo;
            __msg.Write(__msgid);
            CardClient.Marshaler.Write(__msg, info);

            return(RmiSend(remotes, rmiContext, __msg,
                           RmiName_CardInfo, Common.CardInfo));
        }
        public bool PlayerInput(Nettention.Proud.HostID[] remotes, Nettention.Proud.RmiContext rmiContext, nan2.LocalCharacterInput player_input_packet)
        {
            Nettention.Proud.Message __msg = new Nettention.Proud.Message();
            __msg.SimplePacketMode = core.IsSimplePacketMode();
            Nettention.Proud.RmiID __msgid = Common.PlayerInput;
            __msg.Write(__msgid);
            nan2.ProudMarshaler.Write(__msg, player_input_packet);

            return(RmiSend(remotes, rmiContext, __msg,
                           RmiName_PlayerInput, Common.PlayerInput));
        }
Example #13
0
        public bool PlayerEntireChat(Nettention.Proud.HostID[] remotes, Nettention.Proud.RmiContext rmiContext, String message)
        {
            Nettention.Proud.Message __msg = new Nettention.Proud.Message();
            __msg.SimplePacketMode = core.IsSimplePacketMode();
            Nettention.Proud.RmiID __msgid = Common.PlayerEntireChat;
            __msg.Write(__msgid);
            TakeClient.Marshaler.Write(__msg, message);

            return(RmiSend(remotes, rmiContext, __msg,
                           RmiName_PlayerEntireChat, Common.PlayerEntireChat));
        }
        public bool JoinTeam(Nettention.Proud.HostID[] remotes, Nettention.Proud.RmiContext rmiContext, int team)
        {
            Nettention.Proud.Message __msg = new Nettention.Proud.Message();
            __msg.SimplePacketMode = core.IsSimplePacketMode();
            Nettention.Proud.RmiID __msgid = Common.JoinTeam;
            __msg.Write(__msgid);
            nan2.ProudMarshaler.Write(__msg, team);

            return(RmiSend(remotes, rmiContext, __msg,
                           RmiName_JoinTeam, Common.JoinTeam));
        }
Example #15
0
        public bool RequestAddTree(Nettention.Proud.HostID[] remotes, Nettention.Proud.RmiContext rmiContext, UnityEngine.Vector3 position)
        {
            Nettention.Proud.Message __msg = new Nettention.Proud.Message();
            __msg.SimplePacketMode = core.IsSimplePacketMode();
            Nettention.Proud.RmiID __msgid = Common.RequestAddTree;
            __msg.Write(__msgid);
            SngClient.Marshaler.Write(__msg, position);

            return(RmiSend(remotes, rmiContext, __msg,
                           RmiName_RequestAddTree, Common.RequestAddTree));
        }
Example #16
0
        public bool SendCardData(Nettention.Proud.HostID[] remotes, Nettention.Proud.RmiContext rmiContext, CardData cardData)
        {
            Nettention.Proud.Message __msg = new Nettention.Proud.Message();
            __msg.SimplePacketMode = core.IsSimplePacketMode();
            Nettention.Proud.RmiID __msgid = Common.SendCardData;
            __msg.Write(__msgid);
            CardClient.CardMarshaler.Write(__msg, cardData);

            return(RmiSend(remotes, rmiContext, __msg,
                           RmiName_SendCardData, Common.SendCardData));
        }
Example #17
0
        public bool JoyStick_Vertical_PS2(Nettention.Proud.HostID[] remotes, Nettention.Proud.RmiContext rmiContext, float Vertical)
        {
            Nettention.Proud.Message __msg = new Nettention.Proud.Message();
            __msg.SimplePacketMode = core.IsSimplePacketMode();
            Nettention.Proud.RmiID __msgid = Common.JoyStick_Vertical_PS2;
            __msg.Write(__msgid);
            SngClient.Marshaler.Write(__msg, Vertical);

            return(RmiSend(remotes, rmiContext, __msg,
                           RmiName_JoyStick_Vertical_PS2, Common.JoyStick_Vertical_PS2));
        }
Example #18
0
        public bool ScribblePoint(Nettention.Proud.HostID[] remotes, Nettention.Proud.RmiContext rmiContext, UnityEngine.Vector3 point)
        {
            Nettention.Proud.Message __msg = new Nettention.Proud.Message();
            __msg.SimplePacketMode = core.IsSimplePacketMode();
            Nettention.Proud.RmiID __msgid = Common.ScribblePoint;
            __msg.Write(__msgid);
            SngClient.Marshaler.Write(__msg, point);

            return(RmiSend(remotes, rmiContext, __msg,
                           RmiName_ScribblePoint, Common.ScribblePoint));
        }
Example #19
0
        public bool ReplyClientCount(Nettention.Proud.HostID[] remotes, Nettention.Proud.RmiContext rmiContext, int clientCount)
        {
            Nettention.Proud.Message __msg = new Nettention.Proud.Message();
            __msg.SimplePacketMode = core.IsSimplePacketMode();
            Nettention.Proud.RmiID __msgid = Common.ReplyClientCount;
            __msg.Write(__msgid);
            CardClient.CardMarshaler.Write(__msg, clientCount);

            return(RmiSend(remotes, rmiContext, __msg,
                           RmiName_ReplyClientCount, Common.ReplyClientCount));
        }
Example #20
0
        public bool Init(Nettention.Proud.HostID[] remotes, Nettention.Proud.RmiContext rmiContext, int hostNum)
        {
            Nettention.Proud.Message __msg = new Nettention.Proud.Message();
            __msg.SimplePacketMode = core.IsSimplePacketMode();
            Nettention.Proud.RmiID __msgid = Common.Init;
            __msg.Write(__msgid);
            CardClient.Marshaler.Write(__msg, hostNum);

            return(RmiSend(remotes, rmiContext, __msg,
                           RmiName_Init, Common.Init));
        }
Example #21
0
        public bool JoinWorld(Nettention.Proud.HostID[] remotes, Nettention.Proud.RmiContext rmiContext, System.Collections.Generic.List <Nettention.Proud.HostID> player_ids)
        {
            Nettention.Proud.Message __msg = new Nettention.Proud.Message();
            __msg.SimplePacketMode = core.IsSimplePacketMode();
            Nettention.Proud.RmiID __msgid = Common.JoinWorld;
            __msg.Write(__msgid);
            nan2.ProudMarshaler.Write(__msg, player_ids);

            return(RmiSend(remotes, rmiContext, __msg,
                           RmiName_JoinWorld, Common.JoinWorld));
        }
Example #22
0
        public bool Snapshot(Nettention.Proud.HostID[] remotes, Nettention.Proud.RmiContext rmiContext, nan2.module.TeamModule.Snapshot snapshot)
        {
            Nettention.Proud.Message __msg = new Nettention.Proud.Message();
            __msg.SimplePacketMode = core.IsSimplePacketMode();
            Nettention.Proud.RmiID __msgid = Common.Snapshot;
            __msg.Write(__msgid);
            nan2.ProudMarshaler.Write(__msg, snapshot);

            return(RmiSend(remotes, rmiContext, __msg,
                           RmiName_Snapshot, Common.Snapshot));
        }
        public bool FlagCaptured(Nettention.Proud.HostID[] remotes, Nettention.Proud.RmiContext rmiContext, Nettention.Proud.HostID player_id)
        {
            Nettention.Proud.Message __msg = new Nettention.Proud.Message();
            __msg.SimplePacketMode = core.IsSimplePacketMode();
            Nettention.Proud.RmiID __msgid = Common.FlagCaptured;
            __msg.Write(__msgid);
            nan2.ProudMarshaler.Write(__msg, player_id);

            return(RmiSend(remotes, rmiContext, __msg,
                           RmiName_FlagCaptured, Common.FlagCaptured));
        }
Example #24
0
        public bool TeamLeft(Nettention.Proud.HostID[] remotes, Nettention.Proud.RmiContext rmiContext, Nettention.Proud.HostID player_id, int team)
        {
            Nettention.Proud.Message __msg = new Nettention.Proud.Message();
            __msg.SimplePacketMode = core.IsSimplePacketMode();
            Nettention.Proud.RmiID __msgid = Common.TeamLeft;
            __msg.Write(__msgid);
            nan2.ProudMarshaler.Write(__msg, player_id);
            nan2.ProudMarshaler.Write(__msg, team);

            return(RmiSend(remotes, rmiContext, __msg,
                           RmiName_TeamLeft, Common.TeamLeft));
        }
Example #25
0
        public bool GetBall(Nettention.Proud.HostID[] remotes, Nettention.Proud.RmiContext rmiContext, long ballIndex, int changeIndex)
        {
            Nettention.Proud.Message __msg = new Nettention.Proud.Message();
            __msg.SimplePacketMode = core.IsSimplePacketMode();
            Nettention.Proud.RmiID __msgid = Common.GetBall;
            __msg.Write(__msgid);
            TakeClient.Marshaler.Write(__msg, ballIndex);
            TakeClient.Marshaler.Write(__msg, changeIndex);

            return(RmiSend(remotes, rmiContext, __msg,
                           RmiName_GetBall, Common.GetBall));
        }
Example #26
0
        public bool PlayerSnapshots(Nettention.Proud.HostID[] remotes, Nettention.Proud.RmiContext rmiContext, nan2.LocalCharacterSnapshot local_character_snapshot, System.Collections.Generic.List <nan2.RemoteCharacterSnapshot> remote_character_snapshot)
        {
            Nettention.Proud.Message __msg = new Nettention.Proud.Message();
            __msg.SimplePacketMode = core.IsSimplePacketMode();
            Nettention.Proud.RmiID __msgid = Common.PlayerSnapshots;
            __msg.Write(__msgid);
            nan2.ProudMarshaler.Write(__msg, local_character_snapshot);
            nan2.ProudMarshaler.Write(__msg, remote_character_snapshot);

            return(RmiSend(remotes, rmiContext, __msg,
                           RmiName_PlayerSnapshots, Common.PlayerSnapshots));
        }
Example #27
0
        public bool CharacterSpawned(Nettention.Proud.HostID[] remotes, Nettention.Proud.RmiContext rmiContext, Nettention.Proud.HostID player_id, UnityEngine.Vector2 position)
        {
            Nettention.Proud.Message __msg = new Nettention.Proud.Message();
            __msg.SimplePacketMode = core.IsSimplePacketMode();
            Nettention.Proud.RmiID __msgid = Common.CharacterSpawned;
            __msg.Write(__msgid);
            nan2.ProudMarshaler.Write(__msg, player_id);
            nan2.ProudMarshaler.Write(__msg, position);

            return(RmiSend(remotes, rmiContext, __msg,
                           RmiName_CharacterSpawned, Common.CharacterSpawned));
        }
Example #28
0
        public bool SkillCasted(Nettention.Proud.HostID[] remotes, Nettention.Proud.RmiContext rmiContext, Nettention.Proud.HostID player_id, nan2.SkillCastSnapshot snapshot)
        {
            Nettention.Proud.Message __msg = new Nettention.Proud.Message();
            __msg.SimplePacketMode = core.IsSimplePacketMode();
            Nettention.Proud.RmiID __msgid = Common.SkillCasted;
            __msg.Write(__msgid);
            nan2.ProudMarshaler.Write(__msg, player_id);
            nan2.ProudMarshaler.Write(__msg, snapshot);

            return(RmiSend(remotes, rmiContext, __msg,
                           RmiName_SkillCasted, Common.SkillCasted));
        }
Example #29
0
        public bool StopPosition(Nettention.Proud.HostID[] remotes, Nettention.Proud.RmiContext rmiContext, byte stoper, UnityEngine.Vector3 position)
        {
            Nettention.Proud.Message __msg = new Nettention.Proud.Message();
            __msg.SimplePacketMode = core.IsSimplePacketMode();
            Nettention.Proud.RmiID __msgid = Common.StopPosition;
            __msg.Write(__msgid);
            TakeClient.Marshaler.Write(__msg, stoper);
            TakeClient.Marshaler.Write(__msg, position);

            return(RmiSend(remotes, rmiContext, __msg,
                           RmiName_StopPosition, Common.StopPosition));
        }
Example #30
0
        public bool TeamPassBall(Nettention.Proud.HostID[] remotes, Nettention.Proud.RmiContext rmiContext, Nettention.Proud.HostID receiverID, long balluID)
        {
            Nettention.Proud.Message __msg = new Nettention.Proud.Message();
            __msg.SimplePacketMode = core.IsSimplePacketMode();
            Nettention.Proud.RmiID __msgid = Common.TeamPassBall;
            __msg.Write(__msgid);
            TakeClient.Marshaler.Write(__msg, receiverID);
            TakeClient.Marshaler.Write(__msg, balluID);

            return(RmiSend(remotes, rmiContext, __msg,
                           RmiName_TeamPassBall, Common.TeamPassBall));
        }