コード例 #1
0
ファイル: MySyncThrower.cs プロジェクト: caomw/SpaceEngineers
 public static void RequestThrow(MyObjectBuilder_CubeGrid grid, Vector3D position, Vector3D linearVelocity, float mass, MyStringId throwSound)
 {
     ThrowMsg msg = new ThrowMsg();
     msg.Grid = grid;
     msg.Position = position;
     msg.LinearVelocity = linearVelocity;
     msg.Mass = mass;
     msg.ThrowSound = throwSound;
     MySession.Static.SyncLayer.SendMessageToServer(ref msg);
 }
コード例 #2
0
        public static void RequestThrow(MyObjectBuilder_CubeGrid grid, Vector3D position, Vector3D linearVelocity, float mass, MyStringId throwSound)
        {
            ThrowMsg msg = new ThrowMsg();

            msg.Grid           = grid;
            msg.Position       = position;
            msg.LinearVelocity = linearVelocity;
            msg.Mass           = mass;
            msg.ThrowSound     = throwSound;
            MySession.Static.SyncLayer.SendMessageToServer(ref msg);
        }
コード例 #3
0
ファイル: MySyncThrower.cs プロジェクト: caomw/SpaceEngineers
 static void OnThrowMessageSuccess(ref ThrowMsg msg, MyNetworkClient sender)
 {
     MySessionComponentThrower.Static.Throw(msg.Grid, msg.Position, msg.LinearVelocity, msg.Mass, msg.ThrowSound);
 }
コード例 #4
0
ファイル: MySyncThrower.cs プロジェクト: caomw/SpaceEngineers
 static void OnThrowMessageRequest(ref ThrowMsg msg, MyNetworkClient sender)
 {
     MySession.Static.SyncLayer.SendMessageToAllAndSelf(ref msg, MyTransportMessageEnum.Success);
 }
コード例 #5
0
 static void OnThrowMessageSuccess(ref ThrowMsg msg, MyNetworkClient sender)
 {
     MySessionComponentThrower.Static.Throw(msg.Grid, msg.Position, msg.LinearVelocity, msg.Mass, msg.ThrowSound);
 }
コード例 #6
0
 static void OnThrowMessageRequest(ref ThrowMsg msg, MyNetworkClient sender)
 {
     MySession.Static.SyncLayer.SendMessageToAllAndSelf(ref msg, MyTransportMessageEnum.Success);
 }