Advertisement
Guest User

Vietnam slide

a guest
Jul 9th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.15 KB | None | 0 0
  1. /*
  2.     data.nut
  3.  
  4.     Copyright ©  2017 Ice Flake
  5.  
  6.     This program is free software: you can redistribute it and/or modify
  7.     it under the terms of the GNU Affero General Public License as published by
  8.     the Free Software Foundation, either version 3 of the License, or
  9.     (at your option) any later version.
  10.  
  11.     This program is distributed in the hope that it will be useful,
  12.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.     GNU Affero General Public License for more details.
  15.  
  16.     You should have received a copy of the GNU Affero General Public License
  17.     along with this program.  If not, see <http://www.gnu.org/licenses/>.
  18. */
  19.  
  20. function Server::ServerData(stream)
  21. {
  22.     local identifier = stream.ReadInt();
  23.  
  24.     switch (identifier)
  25.     {
  26.         //other identifiers ommitted; not neccessary for this
  27.  
  28.         case CPacketsIncoming.Process:
  29.             ::Sliding                = stream.ReadByte();
  30.             ::Angle                  = stream.ReadFloat();
  31.  
  32.             break;
  33.  
  34.         //other identifiers ommitted; not neccessary for this
  35.     }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement