コード例 #1
0
        /// <summary>
        /// Sends a packet to create a SimulationObject on ter server.
        /// Assumes the player is on a lot that he owns.
        /// </summary>
        /// <param name="CreatedObject">The SimulationObject to create.</param>
        public static void SendCreatedSimulationObject(SimulationObject CreatedObject)
        {
            //TODO: Change this ID!
            PacketStream CreateSimulationObjectPacket = new PacketStream(0x11, 0);

            BinaryFormatter BinFormatter = new BinaryFormatter();
            BinFormatter.Serialize(CreateSimulationObjectPacket, CreatedObject);

            PlayerAccount.Client.Send(FinalizePacket(0x11, new DESCryptoServiceProvider(),
                CreateSimulationObjectPacket.ToArray()));
        }
コード例 #2
0
        public VirtualThread(SimulationObject ObjectToRun)
        {
            m_CurrentObject = ObjectToRun;

            RunInitFunction();
        }
コード例 #3
0
        public VirtualThread(SimulationObject ObjectToRun)
        {
            m_CurrentObject = ObjectToRun;

            RunInitFunction();
        }