public ICommand[] DeserializeInput(IDeserializer deserializer) { var commandsLength = deserializer.GetInt(); var result = new ICommand[commandsLength]; for (var i = 0; i < commandsLength; i++) { var command = _createCommandDelegate.Invoke(deserializer); if (command != null) { result[i] = command; } } return(result); }
public void Deserialize(IDeserializer reader) { Seed = reader.GetInt(); PlayerID = reader.GetByte(); TargetFPS = reader.GetInt(); }
public void Deserialize(IDeserializer reader) { EntityConfigId = reader.GetInt(); Position.X = reader.GetLong(); Position.Y = reader.GetLong(); }